public class ProjectNewOpen extends Dialog implements AwbProjectNewOpenDialog
Window.IExceptionHandler
AwbProjectNewOpenDialog.ProjectAction
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
CANCEL, OK, resizeHasOccurred
Constructor and Description |
---|
ProjectNewOpen(Shell parentShell,
java.lang.String title,
AwbProjectNewOpenDialog.ProjectAction currentAction)
Instantiates a new project new open dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cancelPressed() |
protected void |
configureShell(Shell newShell) |
protected Control |
createDialogArea(Composite parent) |
protected Point |
getInitialSize() |
java.lang.String |
getProjectDirectory()
Returns the project folder.
|
java.lang.String |
getProjectName()
Returns the project name.
|
ISelectionChangedListener |
getTreeViewerISelectionChangedListener()
Return the tree viewer I selection changed listener.
|
boolean |
isCanceled()
Checks if is canceled.
|
boolean |
isExportBeforeDelete()
Checks if a project is to export before it will be deleted.
|
boolean |
isProjectError()
Check for project errors.
|
protected void |
okPressed() |
void |
setProjectDirectory(java.lang.String projectDirectory)
Sets the project folder.
|
void |
setProjectName(java.lang.String projectName)
Sets the project name.
|
void |
setVisible(boolean isSetVisible)
Sets the dialog visible.
|
applyDialogFont, buttonPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public ProjectNewOpen(Shell parentShell, java.lang.String title, AwbProjectNewOpenDialog.ProjectAction currentAction)
parentShell
- the parent shelltitel
- the title of this dialogcurrentAction
- the current ProjectAction
protected void configureShell(Shell newShell)
configureShell
in class Window
protected Point getInitialSize()
getInitialSize
in class Dialog
public void setVisible(boolean isSetVisible)
AwbProjectNewOpenDialog
setVisible
in interface AwbProjectNewOpenDialog
isSetVisible
- the new visibleprotected Control createDialogArea(Composite parent)
createDialogArea
in class Dialog
public ISelectionChangedListener getTreeViewerISelectionChangedListener()
protected void cancelPressed()
cancelPressed
in class Dialog
public boolean isCanceled()
AwbProjectNewOpenDialog
isCanceled
in interface AwbProjectNewOpenDialog
public boolean isExportBeforeDelete()
AwbProjectNewOpenDialog
isExportBeforeDelete
in interface AwbProjectNewOpenDialog
public boolean isProjectError()
public void setProjectName(java.lang.String projectName)
AwbProjectNewOpenDialog
setProjectName
in interface AwbProjectNewOpenDialog
projectName
- the new project namepublic java.lang.String getProjectName()
AwbProjectNewOpenDialog
getProjectName
in interface AwbProjectNewOpenDialog
public void setProjectDirectory(java.lang.String projectDirectory)
AwbProjectNewOpenDialog
setProjectDirectory
in interface AwbProjectNewOpenDialog
projectDirectory
- the new projects sub-directorypublic java.lang.String getProjectDirectory()
AwbProjectNewOpenDialog
getProjectDirectory
in interface AwbProjectNewOpenDialog