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 85719 Details for
Bug 200193
Cannot use Java project for BUJava
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]
New delta patch that fixes timing problem with classpath update
patch200193_1221.txt (text/plain), 2.65 KB, created by
Kathy Chan
on 2007-12-21 11:50:35 EST
(
hide
)
Description:
New delta patch that fixes timing problem with classpath update
Filename:
MIME Type:
Creator:
Kathy Chan
Created:
2007-12-21 11:50:35 EST
Size:
2.65 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.ws.consumption.ui >Index: src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/AddModuleDependenciesCommand.java >=================================================================== >RCS file: /cvsroot/webtools/webservices/plugins/org.eclipse.jst.ws.consumption.ui/src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/AddModuleDependenciesCommand.java,v >retrieving revision 1.18.8.1 >diff -u -r1.18.8.1 AddModuleDependenciesCommand.java >--- src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/AddModuleDependenciesCommand.java 18 Dec 2007 02:23:36 -0000 1.18.8.1 >+++ src/org/eclipse/jst/ws/internal/consumption/ui/widgets/test/wssample/AddModuleDependenciesCommand.java 21 Dec 2007 16:41:00 -0000 >@@ -17,6 +17,8 @@ > package org.eclipse.jst.ws.internal.consumption.ui.widgets.test.wssample; > > import java.io.IOException; >+import java.util.Collection; >+import java.util.Collections; > import java.util.List; > > import org.eclipse.core.resources.IProject; >@@ -32,6 +34,7 @@ > import org.eclipse.jdt.core.JavaModelException; > import org.eclipse.jem.util.emf.workbench.ProjectUtilities; > import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveManifest; >+import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater; > import org.eclipse.jst.j2ee.internal.plugin.IJ2EEModuleConstants; > import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; > import org.eclipse.jst.j2ee.project.facet.IJavaProjectMigrationDataModelProperties; >@@ -251,6 +254,7 @@ > ArchiveManifest manifest = J2EEProjectUtilities.readManifest(project); > manifest.mergeClassPath(new String[]{uri}); > J2EEProjectUtilities.writeManifest(project, manifest); >+ forceClasspathUpdate(project); > } > } > >@@ -274,11 +278,19 @@ > refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, targetCompList); > refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH, "/WEB-INF/lib"); > refdm.getDefaultOperation().execute(monitor, null); >+ >+ forceClasspathUpdate(earProject); > }catch (Exception e) { > > } > } > >+//Forcing classpath update >+ private void forceClasspathUpdate (IProject project) { >+ J2EEComponentClasspathUpdater classpathUpdater = J2EEComponentClasspathUpdater.getInstance(); >+ Collection projCollection = Collections.singleton(project); >+ classpathUpdater.forceUpdate(projCollection, false); >+ } > > public void addBuildPath(IProject referencingProject, IProject referencedProject) throws JavaModelException > {
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 200193
:
84451
|
84452
|
84671
|
85089
|
85138
|
85140
|
85141
|
85484
|
85688
| 85719 |
85747