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 65049 Details for
Bug 143025
[build path] Derived attribute on default output folder of Java project doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
ui fix
fix_143025.txt (text/plain), 3.73 KB, created by
Benno Baumgartner
on 2007-04-26 11:17:47 EDT
(
hide
)
Description:
ui fix
Filename:
MIME Type:
Creator:
Benno Baumgartner
Created:
2007-04-26 11:17:47 EDT
Size:
3.73 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java,v >retrieving revision 1.157 >diff -u -r1.157 BuildPathsBlock.java >--- ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java 1 Feb 2007 15:41:40 -0000 1.157 >+++ ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java 26 Apr 2007 15:17:09 -0000 >@@ -763,7 +763,7 @@ > //create and set the output path first > if (!fWorkspaceRoot.exists(outputLocation)) { > IFolder folder= fWorkspaceRoot.getFolder(outputLocation); >- CoreUtility.createFolder(folder, true, true, new SubProgressMonitor(monitor, 1)); >+ CoreUtility.createDerivedFolder(folder, true, true, new SubProgressMonitor(monitor, 1)); > folder.setDerived(true); > } else { > monitor.worked(1); >@@ -794,7 +794,7 @@ > IPath folderOutput= (IPath) entry.getAttribute(CPListElement.OUTPUT); > if (folderOutput != null && folderOutput.segmentCount() > 1) { > IFolder folder= fWorkspaceRoot.getFolder(folderOutput); >- CoreUtility.createFolder(folder, true, true, new SubProgressMonitor(monitor, 1)); >+ CoreUtility.createDerivedFolder(folder, true, true, new SubProgressMonitor(monitor, 1)); > } else { > monitor.worked(1); > } >Index: ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java,v >retrieving revision 1.39 >diff -u -r1.39 JavaProjectWizardSecondPage.java >--- ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java 5 Mar 2007 20:47:24 -0000 1.39 >+++ ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardSecondPage.java 26 Apr 2007 15:17:09 -0000 >@@ -206,7 +206,7 @@ > > if (binPath.segmentCount() > 0 && !binPath.equals(srcPath)) { > IFolder folder= fCurrProject.getFolder(binPath); >- CoreUtility.createFolder(folder, true, true, new SubProgressMonitor(monitor, 1)); >+ CoreUtility.createDerivedFolder(folder, true, true, new SubProgressMonitor(monitor, 1)); > } else { > monitor.worked(1); > } >Index: ui/org/eclipse/jdt/internal/ui/util/CoreUtility.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/CoreUtility.java,v >retrieving revision 1.22 >diff -u -r1.22 CoreUtility.java >--- ui/org/eclipse/jdt/internal/ui/util/CoreUtility.java 9 Nov 2006 11:43:37 -0000 1.22 >+++ ui/org/eclipse/jdt/internal/ui/util/CoreUtility.java 26 Apr 2007 15:17:09 -0000 >@@ -23,6 +23,7 @@ > import org.eclipse.core.resources.IContainer; > import org.eclipse.core.resources.IFolder; > import org.eclipse.core.resources.IProject; >+import org.eclipse.core.resources.IResource; > import org.eclipse.core.resources.IWorkspace; > import org.eclipse.core.resources.IWorkspaceDescription; > import org.eclipse.core.resources.IncrementalProjectBuilder; >@@ -40,7 +41,15 @@ > > public class CoreUtility { > >- >+ public static void createDerivedFolder(IFolder folder, boolean force, boolean local, IProgressMonitor monitor) throws CoreException { >+ if (!folder.exists()) { >+ IContainer parent= folder.getParent(); >+ if (parent instanceof IFolder) { >+ createDerivedFolder((IFolder)parent, force, local, null); >+ } >+ folder.create(IResource.FORCE | IResource.DERIVED, local, monitor); >+ } >+ } > > /** > * Creates a folder and all parent folders if not existing.
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 143025
:
65049
|
65051
|
65945