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 7895 Details for
Bug 51986
[Wizards][Jobs] Need to move file creation to extendable job.
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]
Patch with initial refactoring
51986patch.txt (text/plain), 1.78 KB, created by
Tod Creasey
on 2004-02-13 13:36:21 EST
(
hide
)
Description:
Patch with initial refactoring
Filename:
MIME Type:
Creator:
Tod Creasey
Created:
2004-02-13 13:36:21 EST
Size:
1.78 KB
patch
obsolete
>Index: WizardNewFileCreationPage.java >=================================================================== >retrieving revision 1.1 >diff -u -r1.1 WizardNewFileCreationPage.java >--- WizardNewFileCreationPage.java 2 Oct 2003 17:04:02 -0000 1.1 >+++ WizardNewFileCreationPage.java 13 Feb 2004 18:25:50 -0000 >@@ -257,14 +257,12 @@ > InterruptedException > { > try { >- monitor.beginTask(IDEWorkbenchMessages.getString("WizardNewFileCreationPage.progress"), 2000); //$NON-NLS-1$ >- ContainerGenerator generator = new ContainerGenerator(containerPath); >- generator.generateContainer(new SubProgressMonitor(monitor, 1000)); >- createFile(newFileHandle,initialContents, new SubProgressMonitor(monitor, 1000)); >+ createNewFile(containerPath, newFileHandle, initialContents, monitor); > } finally { > monitor.done(); > } > } >+ > }; > > try { >@@ -291,6 +289,23 @@ > > return newFile; > } >+ >+/** >+ * Create the new file with the supplied information within the >+ * IProgressMonitor supplied. >+ * @param containerPath >+ * @param newFileHandle >+ * @param initialContents >+ * @param monitor >+ * @throws CoreException >+ */ >+protected void createNewFile(final IPath containerPath, final IFile newFileHandle, final InputStream initialContents, IProgressMonitor monitor) throws CoreException { >+ monitor.beginTask(IDEWorkbenchMessages.getString("WizardNewFileCreationPage.progress"), 2000); //$NON-NLS-1$ >+ ContainerGenerator generator = new ContainerGenerator(containerPath); >+ generator.generateContainer(new SubProgressMonitor(monitor, 1000)); >+ createFile(newFileHandle,initialContents, new SubProgressMonitor(monitor, 1000)); >+} >+ > /** > * Returns the current full path of the containing resource as entered or > * selected by the user, or its anticipated initial value.
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 51986
: 7895