public class EditOutletDialog
extends org.eclipse.jface.dialogs.StatusDialog
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.sphinx.xtendxpand.ui.dialogs.EditOutletDialog.Listener |
listener |
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
Constructor and Description |
---|
EditOutletDialog(org.eclipse.swt.widgets.Shell parent,
ExtendedOutlet outlet,
boolean edit,
boolean editableName,
OutletProvider outletProvider)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
create()
Sets validation buttons state before dialog is displayed.
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite ancestor) |
ExtendedOutlet |
getOutlet() |
protected void |
handleBrowseFileSystem()
This method is called when user clicks on file system button.
|
protected void |
handleBrowseWorkspace()
This method is called when user clicks on Workspace button.
|
protected void |
handleInsertVariable() |
protected void |
handleLocationChanged()
This method is called when user changes outlet location.
|
protected void |
handleNameChanged()
This method is called when user changes outlet name.
|
protected boolean |
isResizable() |
protected org.eclipse.core.runtime.IStatus |
validateOutletInputs()
Checks that all outlet properties are valid, by checking its name and its location.
|
protected org.eclipse.core.runtime.IStatus |
validateOutletLocation()
Validates that the location is not empty and Is a valid path.
|
protected org.eclipse.core.runtime.IStatus |
validateOutletName()
Checks outlet name by checking it is not empty, or name is not already used by other ones.
|
configureShell, createButtonBar, createButtonsForButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle, updateButtonsEnableState, updateStatus
closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
protected org.eclipse.sphinx.xtendxpand.ui.dialogs.EditOutletDialog.Listener listener
public EditOutletDialog(org.eclipse.swt.widgets.Shell parent, ExtendedOutlet outlet, boolean edit, boolean editableName, OutletProvider outletProvider)
parent
- the parent shell, or null
to create a top-level shelloutlet
- the outlet to editedit
- set to true is outlet is being edited, false if it is a outlet creationeditableName
- set to true if outlet name can be editable, false otherwiseoutletProvider
- the OutletProvider
created for an OutletsPreference
and may refers to projectprotected boolean isResizable()
isResizable
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite ancestor)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
protected void handleNameChanged()
protected void handleLocationChanged()
validateOutletLocation()
protected void handleBrowseFileSystem()
protected void handleBrowseWorkspace()
protected void handleInsertVariable()
protected org.eclipse.core.runtime.IStatus validateOutletInputs()
validateOutletName()
,
validateOutletLocation()
protected org.eclipse.core.runtime.IStatus validateOutletName()
protected org.eclipse.core.runtime.IStatus validateOutletLocation()
public ExtendedOutlet getOutlet()
public void create()
create
in class org.eclipse.jface.dialogs.StatusDialog
StatusDialog.create()