Bug 149849 - [project explorer] Webservice UI plugin activated when opening Project Explorer
Summary: [project explorer] Webservice UI plugin activated when opening Project Explorer
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Chuck Bridgham CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2006-07-06 12:08 EDT by Linda Damus CLA
Modified: 2007-06-02 19:45 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linda Damus CLA 2006-07-06 12:08:18 EDT
The org.eclipse.jst.j2ee.webservice.ui plugin and some of its dependencies are activated when I open the Project Explorer in an workspace that has only simple projects (and even in an empty workspace). This seems to be because the WebServicesNavigatorContentProvider has a trigger point on the workspace root.

Is it possible to narrow the content provider criteria or rework things so that the content provider doesn't cause the plugin and its dependencies to be activated at this point?  It seems unnecessary for the jst and wst plugins to be activated at this time.

Steps to reproduce the problem:
1. Install Eclipse
2. Install the Web and J2EE Development feature (and its required dependencies) from the Callisto discovery site.
3. Enable the OSGI bundle tracing and launch a new runtime workspace.
4. Close the welcome page and open the Project Explorer view.

The following plugins are activated:
org.eclipse.ui.navigator
org.eclipse.ui.navigator.resources
org.eclipse.emf.common
org.eclipse.emf.ecore
org.eclipse.jem.util
org.eclipse.wst.common.frameworks
org.eclipse.jst.j2ee.webservice
org.eclipse.jst.j2ee.webservice.ui
org.eclipse.emf.common.ui
org.eclipse.emf.edit.ui
org.eclipse.emf.edit
org.eclipse.wst.common.emf
org.eclipse.emf.ecore.xmi
org.eclipse.wst.common.emfworkbench.integration
org.eclipse.wst.common.project.facet.core
Comment 1 Michael D. Elder CLA 2006-07-07 10:02:36 EDT
There has already been work to hone this down. Several plugins, including org.eclipse.jst.j2ee and org.eclipse.jst.j2ee.core were removed from this activation list. There is now a smart listening mechanism that waits before adding content to the explorer, but as it contributes content to the root of the viewer, there's no way to completely prevent it from loading. 
Comment 2 Linda Damus CLA 2006-07-07 10:19:52 EDT
In that case, would it be possible to at least delay the activation of those plugins that the org.eclipse.jst.j2ee.webservice.ui depends on that do work and other initialization in their #start methods?  I'm thinking of the following, in particular:

org.eclipse.wst.common.emf
org.eclipse.wst.common.emfworkbench.integration
Comment 3 Michael D. Elder CLA 2006-07-10 11:01:13 EDT
Can you provide a list of the classes that are touched that cause the activation of org.eclipse.wst.common.emf and org.eclipse.wst.common.emfworkbench.integration
in your scenario?
Comment 4 Linda Damus CLA 2006-07-10 16:20:24 EDT
Here's what I see happening when I open the Project Explorer in new, empty workspace using the following Web Standard Tools build:

  Version: 1.5.0.v200606092300-U4T922yjOWsGK5Y
  Build id: 200606281455


WebServiceNavigatorContentProvider's constructor calls #createAdapterFactory  which instantiates a new DynamicAdapterFactory and causes

     org.eclipse.wst.common.internal.emfworkbench.integration 

to be activated. Then, EMFWorkbenchEditPlugin#start instantiates a new ExtendedEcoreUtil.FileNotFoundDetector, which causes

     org.eclipse.wst.common.emf 

to be activated.
Comment 5 Michael D. Elder CLA 2006-07-18 13:29:04 EDT
The kind of changes required to prevent two plugins from loading is not merited in a point release. Therefore, this defect will be deferred to a post 1.5.1 WTP release. 
Comment 6 Michael D. Elder CLA 2006-07-19 16:34:41 EDT
Deferring to 2.0.
Comment 7 Werner Keil CLA 2007-06-02 19:45:34 EDT
Still persists in 2.0 (as of Europa RC2)
Having checked out a new project from an SVN repository there's a strange variation to it, that this project gets listed in the Project Explorer for a short period, but later dissapears again.

Is there any way to get rid of this without completely deactivating or uninstalling WebTools?