Method Summary |
|
protected void | createAdvancedControls(Composite parent) Creates the widget for advanced options. |
public void | createControl(Composite parent) (non-Javadoc) Method declared on IDialogPage. |
protected void | createFile(IFile fileHandle, InputStream contents, IProgressMonitor monitor) Creates a file resource given the file handle and contents. |
protected IFile | createFileHandle(IPath filePath) Creates a file resource handle for the file with the given workspace
path. |
protected void | createLinkTarget() Creates the link target path if a link target has been specified. |
public IFile | createNewFile() Creates a new file resource in the selected container and with the
selected name. |
protected ISchedulingRule | createRule(IResource resource) Returns the scheduling rule to use when creating the resource at the
given container path. |
public IPath | getContainerFullPath() Returns the current full path of the containing resource as entered or
selected by the user, or its anticipated initial value. |
public String | getFileExtension() Returns the file extension to use when creating the new file. |
public String | getFileName() Returns the current file name as entered by the user, or its anticipated
initial value. |
protected InputStream | getInitialContents() Returns a stream containing the initial contents to be given to new file
resource instances. |
protected String | getNewFileLabel() Returns the label to display in the file name specification visual
component group. |
protected void | handleAdvancedButtonSelect() Shows/hides the advanced option widgets. |
public void | handleEvent(Event event) The WizardNewFileCreationPage implementation of this
Listener method handles all events and enablements for
controls on this page. |
protected void | initialPopulateContainerNameField() Sets the initial contents of the container name entry field, based upon
either a previously-specified initial value or the ability to determine
such a value. |
public void | setContainerFullPath(IPath path) Sets the value of this page's container name field, or stores it for
future use if this page's controls do not exist yet. |
public void | setFileExtension(String value) Set the only file extension allowed for this page's file name field.
If this page's controls do not exist yet, store it for future use.
If a file extension is specified, then it will always be
appended with a '.' to the text from the file name field for
validation when the following conditions are met:
(1) File extension length is greater than 0
(2) File name field text length is greater than 0
(3) File name field text does not already end with a '.' and the file
extension specified (case sensitive)
The file extension will not be reflected in the actual file
name field until the file name field loses focus.
Parameters: value - The file extension without the '.' prefix (e.g. |
public void | setFileName(String value) Sets the value of this page's file name field, or stores it for future
use if this page's controls do not exist yet. |
public void | setVisible(boolean visible) |
protected IStatus | validateLinkedResource() Checks whether the linked resource target is valid. |
protected boolean | validatePage() Returns whether this page's controls currently all contain valid values. |