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 156919 Details for
Bug 297478
IFile#create(..) and IFolder#create(..) fail if parent is a virtual folder
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]
Fix v01
297478_20100121.txt (text/plain), 4.62 KB, created by
Szymon Brandys
on 2010-01-22 07:03:25 EST
(
hide
)
Description:
Fix v01
Filename:
MIME Type:
Creator:
Szymon Brandys
Created:
2010-01-22 07:03:25 EST
Size:
4.62 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.core.resources >Index: src/org/eclipse/core/resources/IFile.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.resources/src/org/eclipse/core/resources/IFile.java,v >retrieving revision 1.62 >diff -u -r1.62 IFile.java >--- src/org/eclipse/core/resources/IFile.java 19 Nov 2009 10:54:48 -0000 1.62 >+++ src/org/eclipse/core/resources/IFile.java 22 Jan 2010 12:02:59 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 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 >@@ -240,6 +240,7 @@ > * <ul> > * <li> This resource already exists in the workspace.</li> > * <li> The parent of this resource does not exist.</li> >+ * <li> The parent of this resource is a virtual folder.</li> > * <li> The project of this resource is not accessible.</li> > * <li> The parent contains a resource of a different type > * at the same path as this resource.</li> >@@ -314,6 +315,7 @@ > * <ul> > * <li> This resource already exists in the workspace.</li> > * <li> The parent of this resource does not exist.</li> >+ * <li> The parent of this resource is a virtual folder.</li> > * <li> The project of this resource is not accessible.</li> > * <li> The parent contains a resource of a different type > * at the same path as this resource.</li> >Index: src/org/eclipse/core/resources/IFolder.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.resources/src/org/eclipse/core/resources/IFolder.java,v >retrieving revision 1.34 >diff -u -r1.34 IFolder.java >--- src/org/eclipse/core/resources/IFolder.java 20 Jan 2010 17:02:26 -0000 1.34 >+++ src/org/eclipse/core/resources/IFolder.java 22 Jan 2010 12:02:59 -0000 >@@ -66,6 +66,7 @@ > * <li> The parent of this resource is a project that is not open.</li> > * <li> The parent contains a resource of a different type > * at the same path as this resource.</li> >+ * <li> The parent of this resource is virtual, but this resource is not.</li> > * <li> The name of this resource is not valid (according to > * <code>IWorkspace.validateName</code>).</li> > * <li> The corresponding location in the local file system is occupied >@@ -142,6 +143,7 @@ > * <li> The parent of this resource is a project that is not open.</li> > * <li> The parent contains a resource of a different type > * at the same path as this resource.</li> >+ * <li> The parent of this resource is virtual, but this resource is not.</li> > * <li> The name of this resource is not valid (according to > * <code>IWorkspace.validateName</code>).</li> > * <li> The corresponding location in the local file system is occupied >#P org.eclipse.platform.doc.isv >Index: porting/3.6/recommended.html >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.platform.doc.isv/porting/3.6/recommended.html,v >retrieving revision 1.1 >diff -u -r1.1 recommended.html >--- porting/3.6/recommended.html 22 Sep 2009 10:46:09 -0000 1.1 >+++ porting/3.6/recommended.html 22 Jan 2010 12:03:01 -0000 >@@ -18,6 +18,7 @@ > > <ol> > <li><a href="#setDerived">Use IResource#setDerived(boolean, IProgressMonitor)</a></li> >+ <li><a href="#createResourceInVirtualFolderException">A new reason of IFile#create and IFolder#create failure</a></li> > </ol> > > <hr> >@@ -29,5 +30,12 @@ > As of 3.6, the <code>IResource#setDerived(boolean)</code> is deprecated. <code>IResource#setDerived(boolean, IProgressMonitor)</code> > should be used instead and this change will be reported in a subsequent resource change event.</p> > >+<h2>1. <a name="createResourceInVirtualFolderException">A new reason of IFile#create and IFolder#create failure</a></h2> >+<p> >+As of 3.6, there is a new reason when <code>IFile#create</code> and <code>IFolder#create</code> fail, i.e. when a non-virtual resource >+is created in a virtual folder. Callers of this API that do preliminary verification before <code>#create</code> is called, >+should adapt to this change and support the new case. In particular wizards that create new resources and show errors in the title area >+when <code>#create</code> may fail, should handle the case by showing a new error rather than failing and writing to the log.</p> >+ > </body> > </html>
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 297478
: 156919