mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
file creation should throw and CoreException up
This commit is contained in:
parent
101d8a23ec
commit
397f32d6d2
3 changed files with 3 additions and 9 deletions
|
@ -570,7 +570,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
|
|||
* @throws CoreException Thrown when the creation failed.
|
||||
* @throws InterruptedException Thrown when the operation was cancelled.
|
||||
*/
|
||||
public abstract void createFile(IProgressMonitor monitor);
|
||||
public abstract void createFile(IProgressMonitor monitor) throws CoreException;
|
||||
|
||||
/**
|
||||
* Returns the created file. The method only returns a valid translation unit
|
||||
|
|
|
@ -139,7 +139,7 @@ public class NewHeaderFileCreationWizardPage extends AbstractFileCreationWizardP
|
|||
return status;
|
||||
}
|
||||
|
||||
public void createFile(IProgressMonitor monitor) {
|
||||
public void createFile(IProgressMonitor monitor) throws CoreException {
|
||||
IPath filePath = getFileFullPath();
|
||||
if (filePath != null) {
|
||||
if (monitor == null)
|
||||
|
@ -150,9 +150,6 @@ public class NewHeaderFileCreationWizardPage extends AbstractFileCreationWizardP
|
|||
if (newFile != null) {
|
||||
fNewFileTU = (ITranslationUnit) CoreModel.getDefault().create(newFile);
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
monitor.done();
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
|
|||
return status;
|
||||
}
|
||||
|
||||
public void createFile(IProgressMonitor monitor) {
|
||||
public void createFile(IProgressMonitor monitor) throws CoreException {
|
||||
IPath filePath = getFileFullPath();
|
||||
if (filePath != null) {
|
||||
if (monitor == null)
|
||||
|
@ -149,9 +149,6 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
|
|||
if (newFile != null) {
|
||||
fNewFileTU = (ITranslationUnit) CoreModel.getDefault().create(newFile);
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
monitor.done();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue