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 87648 Details for
Bug 128709
Need an openRule to support concurrent project checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Proposal 02
128709_20030123b.txt (text/plain), 2.47 KB, created by
Szymon Brandys
on 2008-01-23 09:06:39 EST
(
hide
)
Description:
Proposal 02
Filename:
MIME Type:
Creator:
Szymon Brandys
Created:
2008-01-23 09:06:39 EST
Size:
2.47 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.core.resources >Index: src/org/eclipse/core/internal/resources/Project.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Project.java,v >retrieving revision 1.146 >diff -u -r1.146 Project.java >--- src/org/eclipse/core/internal/resources/Project.java 6 Dec 2007 20:38:15 -0000 1.146 >+++ src/org/eclipse/core/internal/resources/Project.java 23 Jan 2008 13:13:05 -0000 >@@ -980,7 +980,11 @@ > monitor = Policy.monitorFor(monitor); > try { > monitor.beginTask(Messages.resources_setDesc, Policy.totalWork); >- final ISchedulingRule rule = workspace.getRoot(); >+ ISchedulingRule rule = null; >+ if ((updateFlags & IResource.AVOID_NATURE_CONFIG) != 0) >+ rule = workspace.getRuleFactory().modifyRule(this); >+ else >+ rule = workspace.getRoot(); > try { > //need to use root rule because nature configuration calls third party code > workspace.prepareOperation(rule, monitor); >Index: src/org/eclipse/core/resources/team/ResourceRuleFactory.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.resources/src/org/eclipse/core/resources/team/ResourceRuleFactory.java,v >retrieving revision 1.11 >diff -u -r1.11 ResourceRuleFactory.java >--- src/org/eclipse/core/resources/team/ResourceRuleFactory.java 1 Mar 2007 19:47:55 -0000 1.11 >+++ src/org/eclipse/core/resources/team/ResourceRuleFactory.java 23 Jan 2008 13:13:05 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2004, 2007 IBM Corporation and others. >+ * Copyright (c) 2004, 2008 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -145,9 +145,6 @@ > * @see IProjectDescription#DESCRIPTION_FILE_NAME > */ > public ISchedulingRule modifyRule(IResource resource) { >- //modifying the project description requires the root >- if (resource.getType() == IResource.PROJECT) >- return workspace.getRoot(); > IPath path = resource.getFullPath(); > //modifying the project description may cause linked resources to be created or deleted > if (path.segmentCount() == 2 && path.segment(1).equals(IProjectDescription.DESCRIPTION_FILE_NAME))
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 Raw
Actions:
View
Attachments on
bug 128709
:
87634
|
87648
|
87650
|
87653
|
87853