Community
Participate
Working Groups
If an extension to org.eclipse.wst.server.ui.editorPageSections specifies a property tester as per the enablement element, then the first time that a server editor is opened, the property tester is not called, and so the editorPageSection is unconditionally included in the server editor. If the server editor is closed, and then re-opened, the property tester is then called from then on. Tested against org.eclipse.wst.server.ui 1.1.207.v20110119.
Created attachment 189537 [details] Proposed patch It appears that this occurs if the plugin declaring the enablement test has not yet been activated. The expression framework does not auto-load bundles unless explicitly requested to do so. This has to be enabled both by the enablement test via the 'forcePluginActivation' attribute, e.g.: <enablement> <test property="org.myorg.myproperty" value="true" forcePluginActivation="true"/> </enablement> and this also has to be enabled on the EvaluationContext under which the expression is evaluated. If the EvaluationContext is not enabled then the forcePluginActivation attribute is ignored. Attached a proposed patch to enable this for each of the editor page extension points.
Angel, This is affecting an adopting product. Could you please target this to WTP 3.2.4 if possible? Thanks!
This problem is encountered by other adopting products as well. Raising severity. If this problem is not fixed, sections in the server editor that should not show up is showing up, causing confusion to the user. Since the target milestone of this defect is not set yet, I would like to confirm that this is still on target to be delivered in WTP 3.2.4.
The change is simple and provides for better product adoption. Testing didn't show any problems.
Changes committed to 32M
Code released to 32M
Changes committed to HEAD(3.3)
Changes released to HEAD(3.3)
New Gerrit change created: https://git.eclipse.org/r/109038