Bug 119085 [TabbedProperties] need getters and setters for the current Tab
We have some use cases where we need to remember the current active Tab and Section and later in the lifecycle we need to select those again. Currently there is no API for this functionality.
tests/org.eclipse.ui.tests.views.properties.tabbed/src/org/eclipse/ui/tests/views/properties/tabbed/TabbedPropertySheetPageTest.java
TabContents tabContents = testsView.getTabbedPropertySheetPage().getCurrentTab();
        /**
         * the tab has two sections.
         */
        ISection[] sections = tabContents.getSections();
        assertEquals(sections.length, 2);
        assertEquals(sections[0].getClass(), NameSection.class);
        assertEquals(sections[1].getClass(), InformationTwoSection.class);
    }
    /**
     * When Information, Error and Warning Nodes are selected, only the Message
     * tab displays. Tests input attribute.
     */
    public void test_selectThreeMessageNodes() {
        /**
         * select nodes
         */
        setSelection(new TreeNode[] {treeNodes[1], treeNodes[2], treeNodes[3],});
        TabbedPropertyList tabbedPropertyList = getTabbedPropertyList();
        /**
         * Only tab is Message
         */
        assertEquals(tabbedPropertyList.getElementAt(0).toString(), "Message");
        /**
         * No other tab
         */
        assertNull(tabbedPropertyList.getElementAt(1));
    }
    /**
     * When File, Folder and Project Nodes are selected, only the Resource tab