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
setSelection(new TreeNode[] {treeNodes[0], treeNodes[1]});
        TabbedPropertyList tabbedPropertyList = getTabbedPropertyList();
        /**
         * First tab is Information
         */
        assertEquals(tabbedPropertyList.getElementAt(0).toString(),
            "Information");
        /**
         * Second tab is Message
         */
        assertEquals(tabbedPropertyList.getElementAt(1).toString(), "Message");
        /**
         * No other tab
         */
        assertNull(tabbedPropertyList.getElementAt(2));
    }
    /**
     * When Two Information Node is selected, two section displayed on Name tab.
     * Tests filter, afterSection attribute.
     */
    public void test_sectionInformationTwoFilter() {
        /**
         * select nodes
         */
        setSelection(new TreeNode[] {treeNodes[1]});
        TabbedPropertyList tabbedPropertyList = getTabbedPropertyList();
        /**
         * First tab is Information
         */
        assertEquals(tabbedPropertyList.getElementAt(0).toString(), "Name");