public abstract class IlrAbstractRESConfigurationSelectionDialog
extends org.eclipse.ui.dialogs.SelectionStatusDialog
isRESConfigurationSupported(IlrExecutionServer)
method.
The list of allowed application server types proposed in the creation wizard can be limited by
implementing the isApplicationServerSupported(String) method.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 |
|---|
IlrAbstractRESConfigurationSelectionDialog(org.eclipse.swt.widgets.Shell parentShell)
Constructs an instance of
IlrAbstractServerConfigurationSelectionDialog. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
access$setResult(java.util.List<java.lang.Object> result)
Set the result using the super class implementation of
setResult.
|
protected void |
access$superButtonPressed(int id)
Set the result using the super class implementation of
buttonPressed.
|
void |
addFilter(org.eclipse.jface.viewers.ViewerFilter filter)
Adds a filter to the tree viewer.
|
protected void |
cancelPressed()
Handles cancel button pressed event.
|
void |
create()
Creates widgetry for this window in a new top-level shell.
|
protected org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent)
Creates the tree viewer.
|
protected java.lang.String |
getDestinationProjectLocation()
Returns the destination directory of the client project to use as
the destination directory for the file persistence if the RuleApp is not
deployed on an application server.
|
protected java.lang.String |
getProjectName()
Returns the client project name.
|
ilog.rules.studio.res.server.IlrExecutionServer |
getSelection()
Gets the Rule Execution Server configuration selected in the wizard.
|
protected org.eclipse.jface.viewers.TreeViewer |
getTreeViewer()
Returns the tree viewer.
|
protected void |
handleShellCloseEvent()
Handles a shell close event.
|
protected abstract boolean |
isApplicationServerEnvironmentSupported()
Returns true if the configuration created through the dialog is for an application
server.
|
protected abstract boolean |
isApplicationServerSupported(java.lang.String type)
Returns true if the specified application server can be created through the dialog.
|
protected abstract boolean |
isRESConfigurationSupported(ilog.rules.studio.res.server.IlrExecutionServer configuration)
Returns true if the specified configuration can be selected through the dialog.
|
void |
setAllowMultiple(boolean allowMultiple)
Specifies if multiple selection is allowed.
|
void |
setComparator(org.eclipse.jface.viewers.ViewerComparator comparator)
Sets the comparator used by the tree viewer.
|
void |
setDoubleClickSelects(boolean doubleClickSelects)
Specifies if default selected events (double click) are created.
|
void |
setEmptyListMessage(java.lang.String message)
Sets the message to be displayed if the list is empty.
|
void |
setInitialSelection(java.lang.Object selection)
Sets the initial selection.
|
void |
setInput(java.lang.Object input)
Sets the tree input.
|
protected void |
setProjectName(java.lang.String name)
Stores the client project name.
|
void |
setSize(int width,
int height)
Sets the size of the tree in unit of characters.
|
void |
setValidator(org.eclipse.ui.dialogs.ISelectionStatusValidator validator)
Sets an optional validator to check if the selection is valid.
|
protected void |
updateOKStatus()
Validate the receiver and update the ok status.
|
computeResult, configureShell, createButtonBar, getFirstResult, okPressed, setImage, setResult, setStatusLineAboveButtons, updateButtonsEnableState, updateStatuscreateButtonsForButtonBar, createMessageArea, getDialogBoundsSettings, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitleclose, closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableapplyDialogFont, buttonPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, createDialogArea, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerpublic IlrAbstractRESConfigurationSelectionDialog(org.eclipse.swt.widgets.Shell parentShell)
IlrAbstractServerConfigurationSelectionDialog.parentShell - The parent shell for the dialog.public void setInitialSelection(java.lang.Object selection)
selection - the initial selection.public void setEmptyListMessage(java.lang.String message)
message - the message to be displayed.public void setAllowMultiple(boolean allowMultiple)
allowMultiple - public void setDoubleClickSelects(boolean doubleClickSelects)
doubleClickSelects - public void setComparator(org.eclipse.jface.viewers.ViewerComparator comparator)
comparator - public void addFilter(org.eclipse.jface.viewers.ViewerFilter filter)
filter - a filter.public void setValidator(org.eclipse.ui.dialogs.ISelectionStatusValidator validator)
validator - the validator to validate the selection.public void setInput(java.lang.Object input)
input - the tree input.public void setSize(int width,
int height)
width - the width of the tree.height - the height of the tree.protected void updateOKStatus()
protected void cancelPressed()
cancelPressed in class org.eclipse.jface.dialogs.Dialogprotected org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent)
parent - the parent compositeprotected org.eclipse.jface.viewers.TreeViewer getTreeViewer()
protected void access$superButtonPressed(int id)
id - protected void access$setResult(java.util.List<java.lang.Object> result)
result - protected void handleShellCloseEvent()
handleShellCloseEvent in class org.eclipse.jface.window.Windowpublic ilog.rules.studio.res.server.IlrExecutionServer getSelection()
public void create()
create in class org.eclipse.ui.dialogs.SelectionStatusDialogprotected java.lang.String getDestinationProjectLocation()
protected abstract boolean isRESConfigurationSupported(ilog.rules.studio.res.server.IlrExecutionServer configuration)
configuration - A configuration found in the workspace.protected abstract boolean isApplicationServerEnvironmentSupported()
protected abstract boolean isApplicationServerSupported(java.lang.String type)
IlrRESConfiguration interface.
Returns false otherwise. This method is only called if the method
isApplicationServerEnvironmentSupported() returns true to the J2EE environment.type - A supported application server type.protected void setProjectName(java.lang.String name)
name - The project name.protected java.lang.String getProjectName()
© Copyright IBM Corp. 1987, 2017