Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFileCreationWizardPage.java')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFileCreationWizardPage.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFileCreationWizardPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFileCreationWizardPage.java
index 70eeec8d1e0..855ab51e9a2 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFileCreationWizardPage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFileCreationWizardPage.java
@@ -58,6 +58,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
/**
* Sets the focus on the starting input field.
*/
+ @Override
protected void setFocus() {
fNewFileDialogField.setFocus();
}
@@ -69,6 +70,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
* @param parent the parent composite
* @param nColumns number of columns to span
*/
+ @Override
protected void createFileControls(Composite parent, int nColumns) {
fNewFileDialogField.doFillIntoGrid(parent, nColumns);
Text textControl = fNewFileDialogField.getTextControl(null);
@@ -76,6 +78,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
textControl.addFocusListener(new StatusFocusListener(NEW_FILE_ID));
}
+ @Override
public IPath getFileFullPath() {
String str = fNewFileDialogField.getText();
IPath path = null;
@@ -90,6 +93,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
return path;
}
+ @Override
protected IStatus fileNameChanged() {
StatusInfo status = new StatusInfo();
@@ -136,6 +140,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
return status;
}
+ @Override
public void createFile(IProgressMonitor monitor) throws CoreException {
IPath filePath = getFileFullPath();
if (filePath != null) {
@@ -164,6 +169,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.ui.wizards.filewizard.AbstractFileCreationWizardPage#getCreatedFileTU()
*/
+ @Override
public ITranslationUnit getCreatedFileTU() {
return fNewFileTU;
}
@@ -171,6 +177,7 @@ public class NewSourceFileCreationWizardPage extends AbstractFileCreationWizardP
/*
* @see org.eclipse.cdt.internal.ui.wizards.filewizard.AbstractFileCreationWizardPage#getApplicableTemplates()
*/
+ @Override
protected Template[] getApplicableTemplates() {
return StubUtility.getFileTemplatesForContentTypes(
new String[] { CCorePlugin.CONTENT_TYPE_CXXSOURCE, CCorePlugin.CONTENT_TYPE_CSOURCE }, null);

Back to the top