Package org.apache.uima.pear.insd.edit
Class INSDComponentPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.apache.uima.pear.insd.edit.INSDComponentPage
- All Implemented Interfaces:
InsdConstants,org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
This is wizard page to edit UIMA component basic information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe comp descriptor path.The comp ID.The comp type.Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNINGFields inherited from interface org.apache.uima.pear.insd.edit.InsdConstants
CAS_CONSUMER_DESCRIPTOR_PATH, CAS_INITIALIZER_DESCRIPTOR_PATH, COLLECTION_ITERATOR_DESCRIPTOR_PATH, COMP_DESCRIPTOR_PATH, COMP_ID, COMP_NAME, COMP_TYPE_ANALYSIS_ENGINE, COMP_TYPE_CAS_CONSUMER, COMP_TYPE_CAS_INITIALIZER, COMP_TYPE_COLLECTION_READER, COMP_TYPE_CPE -
Constructor Summary
ConstructorsConstructorDescriptionINSDComponentPage(org.eclipse.core.resources.IContainer currentContainer, InstallationDescriptor insd, Hashtable wizardData) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.swt.widgets.ButtonaddButton(org.eclipse.swt.widgets.Composite parent, String label, boolean defaultButton, org.eclipse.swt.widgets.Text text) Creates a new buttonprotected org.eclipse.swt.widgets.ButtonaddRadioButton(org.eclipse.swt.widgets.Composite parent, String label, boolean initialSelection) Creates a new Radio button.org.eclipse.swt.widgets.TextaddTextField(org.eclipse.swt.widgets.Composite parent, String strLabel, String strText, boolean editable) Adds the text field.voidcreateControl(org.eclipse.swt.widgets.Composite parent) See IDialogPage#createControl(Composite).static StringRemoves the $main_root macro from the given String.voidsetVisible(boolean visible) Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
-
Field Details
-
compID
The comp ID. -
compDescriptorPath
The comp descriptor path. -
compType
The comp type.
-
-
Constructor Details
-
INSDComponentPage
public INSDComponentPage(org.eclipse.core.resources.IContainer currentContainer, InstallationDescriptor insd, Hashtable wizardData) Constructor.- Parameters:
currentContainer- the current containerinsd- the insdwizardData- the wizard data
-
-
Method Details
-
removeMacros
Removes the $main_root macro from the given String.- Parameters:
s- A String instance- Returns:
- The given String after removing the $main_root macro.
-
addTextField
public org.eclipse.swt.widgets.Text addTextField(org.eclipse.swt.widgets.Composite parent, String strLabel, String strText, boolean editable) Adds the text field.- Parameters:
parent- the parentstrLabel- the str labelstrText- the str texteditable- the editable- Returns:
- the text
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) See IDialogPage#createControl(Composite).- Specified by:
createControlin interfaceorg.eclipse.jface.dialogs.IDialogPage- Parameters:
parent- the parent
-
addButton
protected org.eclipse.swt.widgets.Button addButton(org.eclipse.swt.widgets.Composite parent, String label, boolean defaultButton, org.eclipse.swt.widgets.Text text) Creates a new buttonThe
Dialogimplementation of this framework method creates a standard push button, registers for selection events including button presses and registers default buttons with its shell. The button id is stored as the buttons client data. Note that the parent's layout is assumed to be a GridLayout and the number of columns in this layout is incremented. Subclasses may override.- Parameters:
parent- the parent compositelabel- the label from the buttondefaultButton-trueif the button is to be the default button, andfalseotherwisetext- the text- Returns:
- the button
-
addRadioButton
protected org.eclipse.swt.widgets.Button addRadioButton(org.eclipse.swt.widgets.Composite parent, String label, boolean initialSelection) Creates a new Radio button.- Parameters:
parent- the parent compositelabel- the label from the buttoninitialSelection-trueif the button is to be the default button, andfalseotherwise- Returns:
- the button
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
setVisiblein classorg.eclipse.jface.dialogs.DialogPage
-