Project: Eclipse_Platform_UI
Bug 287139 [CommonNavigator] Add core expression to determine initial activation for NCE
Reported: 2009-08-20 01:49:05 | Status: verified fixed

Build ID: 20090619-0625 Steps To Reproduce: Currently, the definition of the Navigator Content Extension via plugin.xml allows to specify the boolean attribute allowByDefault which controls if the contributed content is active by default. It makes sence to change the type of the attribute from boolean to core expression, which will allow to evaluate the default context and show content depending on it. This will ease the control of content and enhance the declarative configuration of CNF and NCEs. More information:

Files changed in fix:
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/INavigatorContentExtPtConstants.java bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/NavigatorContentDescriptor.java bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/INavigatorContentDescriptor.java tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/InitialActivationTest.java tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/LabelProviderTest.java tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/NavigatorTestBase.java tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/NavigatorTestSuite.java