Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 122974 Details for
Bug 260459
Changing our refactoring capability to use the LTK refactoring framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
wtppatch304.txt (text/plain), 4.31 KB, created by
Hari Shankar
on 2009-01-19 13:44:56 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Hari Shankar
Created:
2009-01-19 13:44:56 EST
Size:
4.31 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee >Index: j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/IJ2EEModuleConstants.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/IJ2EEModuleConstants.java,v >retrieving revision 1.7 >diff -u -r1.7 IJ2EEModuleConstants.java >--- j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/IJ2EEModuleConstants.java 7 Jun 2007 19:28:19 -0000 1.7 >+++ j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/IJ2EEModuleConstants.java 19 Jan 2009 18:42:14 -0000 >@@ -29,4 +29,7 @@ > public static final String JST_WEB_TEMPLATE = "template.jst.web"; //$NON-NLS-1$ > public static final String WST_WEB_TEMPLATE = "template.wst.web"; //$NON-NLS-1$ > public static final String JST_COMPONENT_FILE = "org.eclipse.wst.common.component";//$NON-NLS-1$ >+ public static final String USE_LTK_REFACTORING = "org.eclipse.jst.j2ee.useltkrefactoring";//$NON-NLS-1$ >+ public static final String TRUE_STRING = "true";//$NON-NLS-1$ >+ public static final String FALSE_STRING = "false";//$NON-NLS-1$ > } >Index: j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/J2EEPlugin.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/J2EEPlugin.java,v >retrieving revision 1.48.4.1 >diff -u -r1.48.4.1 J2EEPlugin.java >--- j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/J2EEPlugin.java 21 Oct 2008 16:37:30 -0000 1.48.4.1 >+++ j2eeplugin/org/eclipse/jst/j2ee/internal/plugin/J2EEPlugin.java 19 Jan 2009 18:42:14 -0000 >@@ -517,15 +517,22 @@ > > final ProjectRefactoringListener listener = new ProjectRefactoringListener();//ProjectDependencyCache.getCache()); > // register the project rename/delete refactoring listener >- ResourcesPlugin.getWorkspace().addResourceChangeListener(listener, >- IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_DELETE); >- >- // register the IElementChangedLister that updates the .component file in >- // response to .classpath changes >- JavaCore.addElementChangedListener(new J2EEElementChangedListener(), ElementChangedEvent.POST_CHANGE); >- >- ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEComponentClasspathUpdater.getInstance(), IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE); >- ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEDependencyListener.INSTANCE, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE); >+ String ltkRefactoring = System.getProperty(IJ2EEModuleConstants.USE_LTK_REFACTORING); >+ if(ltkRefactoring != null && ltkRefactoring.equals(IJ2EEModuleConstants.TRUE_STRING)){ >+ ResourcesPlugin.getWorkspace().addResourceChangeListener(listener, IResourceChangeEvent.POST_CHANGE); >+ // register the IElementChangedLister that updates the .component file in >+ // response to .classpath changes >+ JavaCore.addElementChangedListener(new J2EEElementChangedListener(), ElementChangedEvent.POST_CHANGE); >+ ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEComponentClasspathUpdater.getInstance(), IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE); >+ ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEDependencyListener.INSTANCE, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE); >+ } else{ >+ ResourcesPlugin.getWorkspace().addResourceChangeListener(listener, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_DELETE); >+ // register the IElementChangedLister that updates the .component file in >+ // response to .classpath changes >+ JavaCore.addElementChangedListener(new J2EEElementChangedListener(), ElementChangedEvent.POST_CHANGE); >+ ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEComponentClasspathUpdater.getInstance(), IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE); >+ ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEDependencyListener.INSTANCE, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE); >+ } > } > > public void stop(BundleContext context) throws Exception {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260459
:
122018
|
122566
| 122974