public class NewTabDialog extends TabDialog
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
colCountStr
String representation of the number of columns of a table tab.
|
private org.eclipse.jface.viewers.ComboViewer |
numCombo |
private org.eclipse.swt.widgets.Label |
numLabel |
private java.lang.String |
tabTypeStr
The type of the tab, i.e.
|
private org.eclipse.jface.viewers.ComboViewer |
typeCombo |
area, container, tabTitleText
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
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 |
---|
NewTabDialog(org.eclipse.swt.widgets.Shell parent)
Creates a dialog which is opened, when a user wants to create an new
notice-tab.
|
Modifier and Type | Method and Description |
---|---|
void |
create() |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
java.lang.String |
getColCount() |
protected org.eclipse.swt.graphics.Point |
getInitialSize() |
java.lang.String |
getType() |
void |
okPressed() |
protected void |
saveInput() |
private void |
setNumComboVisibitity(org.eclipse.jface.viewers.IStructuredSelection sel)
Manages the visibility of the number combo box used to select the number
of table columns.
|
configureShell, getTitle, isResizable
createContents, getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, 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
private org.eclipse.jface.viewers.ComboViewer typeCombo
private org.eclipse.jface.viewers.ComboViewer numCombo
private org.eclipse.swt.widgets.Label numLabel
private java.lang.String tabTypeStr
Text, Liste, Tabelle
.private java.lang.String colCountStr
public NewTabDialog(org.eclipse.swt.widgets.Shell parent)
parent
- Shell
, the shell of the workspace site.protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class TabDialog
private void setNumComboVisibitity(org.eclipse.jface.viewers.IStructuredSelection sel)
sel
- IStructuredSelection
, the selection defining the
tab type.public java.lang.String getType()
public java.lang.String getColCount()
protected org.eclipse.swt.graphics.Point getInitialSize()
getInitialSize
in class org.eclipse.jface.dialogs.TitleAreaDialog
public void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog