private ISelection selection;
- // the name of the file to create
- private String fFileName;
-
public HTMLFileWizard() {
super();
setNeedsProgressMonitor(true);
+ setWindowTitle(PHPWizardMessages.getString("WizardNewProjectCreationPage.html.windowTitle"));
}
/**
this.selection = selection;
}
- /**
- * Sets the name of the file to create (used to set the class name in the new file)
- */
- public void setFileName(String name) {
- fFileName = name;
- }
}
\ No newline at end of file
private static final String INITIAL_FILENAME = "file.html";
private Text containerText;
-
+
private Text fileText;
private ISelection selection;
/**
* Constructor for SampleNewWizardPage.
- *
+ *
* @param pageName
*/
public HTMLFileWizardPage(ISelection selection) {
.getString("WizardPage.fileAlreadyExists"));
return true;
}
-
- ((HTMLFileWizard) this.getWizard()).setFileName(fileText.getText()
- .trim());
}
return false;
}
private ISelection selection;
- // the name of the file to create
- private String fFileName;
-
public PHPFileWizard() {
super();
setNeedsProgressMonitor(true);
+ setWindowTitle(PHPWizardMessages.getString("WizardNewProjectCreationPage.windowTitle"));
}
/**
this.selection = selection;
}
- /**
- * Sets the name of the file to create (used to set the class name in the new file)
- */
- public void setFileName(String name) {
- fFileName = name;
- }
}
\ No newline at end of file
www.phpeclipse.de
**********************************************************************/
-import net.sourceforge.phpdt.core.ICompilationUnit;
-import net.sourceforge.phpdt.internal.corext.codemanipulation.StubUtility;
-
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.dialogs.IDialogPage;
this.setErrorMessage(PHPWizardMessages.getString("WizardPage.fileAlreadyExists"));
return true;
}
-
- ((PHPFileWizard) this.getWizard()).setFileName(fileText.getText().trim());
}
return false;
}
##
###################################
-WizardPage.title=PHP New File
+WizardPage.title=PHP file
WizardPage.description=This wizard creates a new PHP file.
-WizardPage.html.title=HTML New File
+WizardPage.html.title=HTML file
WizardPage.html.description=This wizard creates a new HTML file.
WizardPage.containerLabel=&Container:
WizardPage.fileLabel=&File name:
Wizard.error=An error occured
-Wizard.Monitor.creating=Creating
+Wizard.Monitor.creating=Creating
Wizard.Monitor.openingFile=Opening file for editing...
Wizard.Monitor.containerDoesNotExistException=The given container does not exist.
-NewProjectCreationWizard.windowTitle=New
+NewProjectCreationWizard.windowTitle=New PHP project
NewProjectCreationWizard.projectCreationMessage=Creating new PHP Project
+WizardNewProjectCreationPage.windowTitle=New PHP file
+WizardNewProjectCreationPage.html.windowTitle=New HTML file
WizardNewProjectCreationPage.pageName=Create PHP Project
WizardNewProjectCreationPage.pageTitle=PHP Project
WizardNewProjectCreationPage.pageDescription=Create a new PHP Project
\ No newline at end of file