sk.uniba.euromath.editor.dialogs
Class ProcessingInstructionDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
sk.uniba.euromath.editor.dialogs.ProcessingInstructionDialog
- All Implemented Interfaces:
- IShellProvider
public class ProcessingInstructionDialog
- extends Dialog
Dialog to insert or modify processing instruction.
- Author:
- Tomáš Studva 22.8.2006
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
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 |
Fields inherited from class org.eclipse.jface.window.Window |
CANCEL, OK |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessingInstructionDialog
public ProcessingInstructionDialog(Shell parentShell,
String dialogTitle,
String initialTarget,
String initialData)
- Creates dialog to insert or modify processing instruction.
- Parameters:
parentShell
- the parent shell, or null
to create a
top-level shelldialogTitle
- the dialog title, or null
if noneinitialTarget
- initial target of processing instructioninitialData
- initial data of processing instruction
configureShell
protected void configureShell(Shell shell)
- Overrides:
configureShell
in class Window
buttonPressed
protected void buttonPressed(int buttonId)
- Overrides:
buttonPressed
in class Dialog
createButtonsForButtonBar
protected void createButtonsForButtonBar(Composite parent)
- Overrides:
createButtonsForButtonBar
in class Dialog
createDialogArea
protected Control createDialogArea(Composite parent)
- Overrides:
createDialogArea
in class Dialog
getTarget
public String getTarget()
- Getter.
- Returns:
- target of processing instruction
getData
public String getData()
- Getter.
- Returns:
- data of processing instruction
validateInput
protected void validateInput()
- Validates the input. Restriction is on target, it can be gene-ref
target.
setErrorMessage
public void setErrorMessage(String errorMessage)
- Sets or clears the error message. If not
""
, the OK
button is disabled.
- Parameters:
errorMessage
- the error message- Since:
- 3.0
Copyright © 2003-2006 null. All Rights Reserved.