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 114334 Details for
Bug 220906
Default location of workflow files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch to fix default folder in New Workflow wizard
bug220906_patch061008.txt (text/plain), 3.48 KB, created by
David Johnson
on 2008-10-06 13:33:27 EDT
(
hide
)
Description:
patch to fix default folder in New Workflow wizard
Filename:
MIME Type:
Creator:
David Johnson
Created:
2008-10-06 13:33:27 EDT
Size:
3.48 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P eu.geclipse.ui >Index: plugin.xml >=================================================================== >--- plugin.xml (revision 20643) >+++ plugin.xml (working copy) >@@ -254,6 +254,14 @@ > name="Grid Connection Folder" > preset="true"> > </folder> >+ <folder >+ elementClass="eu.geclipse.workflow.IGridWorkflowDescription" >+ icon="icons/ovr16/connection_ovr.gif" >+ id="eu.geclipse.core.projectfolder.workflows" >+ label="Workflows" >+ name="Workflows Folder" >+ preset="true"> >+ </folder> > </extension> > <extension > point="eu.geclipse.core.reporting.problemReporting"> >#P eu.geclipse.workflow.ui >Index: src/eu/geclipse/workflow/ui/wizards/NewWorkflowCreationWizardPage.java >=================================================================== >--- src/eu/geclipse/workflow/ui/wizards/NewWorkflowCreationWizardPage.java (revision 20643) >+++ src/eu/geclipse/workflow/ui/wizards/NewWorkflowCreationWizardPage.java (working copy) >@@ -19,7 +19,6 @@ > import java.lang.reflect.InvocationTargetException; > import java.net.URI; > import java.net.URL; >-import java.util.Iterator; > > import org.eclipse.core.commands.ExecutionException; > import org.eclipse.core.resources.IFolder; >@@ -27,7 +26,6 @@ > import org.eclipse.core.resources.IWorkspace; > import org.eclipse.core.resources.ResourcesPlugin; > import org.eclipse.core.runtime.CoreException; >-import org.eclipse.core.runtime.IAdaptable; > import org.eclipse.core.runtime.IPath; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.IStatus; >@@ -53,6 +51,10 @@ > import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; > import org.eclipse.ui.internal.ide.misc.ResourceAndContainerGroup; > >+import eu.geclipse.core.model.IGridContainer; >+import eu.geclipse.core.model.IGridElement; >+import eu.geclipse.core.model.IGridProject; >+import eu.geclipse.workflow.IGridWorkflowDescription; > import eu.geclipse.workflow.ui.internal.WorkflowDiagramEditorPlugin; > import eu.geclipse.workflow.ui.part.Messages; > >@@ -309,25 +311,22 @@ > /** > * Initializes this page's controls. > */ >- protected void initializePage() { >- Iterator it = this.currentSelection.iterator(); >- if( it.hasNext() ) { >- Object next = it.next(); >- IResource selectedResource = null; >- if( next instanceof IResource ) { >- selectedResource = ( IResource )next; >- } else if( next instanceof IAdaptable ) { >- selectedResource = ( IResource )( ( IAdaptable )next ).getAdapter( IResource.class ); >- } >- if( selectedResource != null ) { >- if( selectedResource.getType() == IResource.FILE ) { >- selectedResource = selectedResource.getParent(); >- } >- if( selectedResource.isAccessible() ) { >- this.resourceGroup.setContainerFullPath( selectedResource.getFullPath() ); >+ protected void initializePage() { >+ Object o = this.currentSelection.getFirstElement(); >+ if (o instanceof IGridContainer) { >+ IGridElement e = (IGridElement)o; >+ IGridProject project = e.getProject(); >+ IPath path = null; >+ if (project != null) { >+ IGridElement workflows = project.getProjectFolder( IGridWorkflowDescription.class ); >+ if( workflows != null ) { >+ path = workflows.getPath(); >+ } else { >+ path = project.getPath(); > } > } >- } >+ this.resourceGroup.setContainerFullPath( path ); >+ } > setPageComplete( false ); > } >
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
Flags:
aog-ecl
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 220906
:
106263
|
106264
|
114334
|
120701
|
121257