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 117575 Details for
Bug 254887
Error in .log after deleting project
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
254887.txt (text/plain), 2.08 KB, created by
Chuck Bridgham
on 2008-11-11 13:20:48 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Chuck Bridgham
Created:
2008-11-11 13:20:48 EST
Size:
2.08 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.common.modulecore >Index: modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java >=================================================================== >RCS file: /cvsroot/webtools/common/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java,v >retrieving revision 1.38 >diff -u -r1.38 VirtualResource.java >--- modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java 1 Apr 2008 19:49:41 -0000 1.38 >+++ modulecore-src/org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java 11 Nov 2008 18:20:13 -0000 >@@ -298,19 +298,22 @@ > try { > moduleCore = StructureEdit.getStructureEditForWrite(getProject()); > WorkbenchComponent component = moduleCore.getComponent(); >- ResourceTreeRoot root = ResourceTreeRoot.getDeployResourceTreeRoot(component); >- ComponentResource[] resources = root.findModuleResources(getRuntimePath(), ResourceTreeNode.CREATE_NONE); >- if (resources.length > 0) { >- for (int resourceIndx = 0; resourceIndx < resources.length; resourceIndx++) { >- if (aProjectRelativeLocation.makeAbsolute().equals(resources[resourceIndx].getSourcePath())) { >- component.getResources().remove(resources[resourceIndx]); >+ if (component != null) { >+ ResourceTreeRoot root = ResourceTreeRoot.getDeployResourceTreeRoot(component); >+ ComponentResource[] resources = root.findModuleResources(getRuntimePath(), ResourceTreeNode.CREATE_NONE); >+ if (resources.length > 0) { >+ for (int resourceIndx = 0; resourceIndx < resources.length; resourceIndx++) { >+ if (aProjectRelativeLocation.makeAbsolute().equals(resources[resourceIndx].getSourcePath())) { >+ component.getResources().remove(resources[resourceIndx]); >+ } > } > } > } > } > finally { > if (moduleCore != null) { >- moduleCore.saveIfNecessary(monitor); >+ if (component != null) >+ moduleCore.saveIfNecessary(monitor); > moduleCore.dispose(); > } > }
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 254887
: 117575