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 SummaryFieldsModifier and TypeFieldDescriptionThe comp descriptor path.The comp ID.The comp type.Fields inherited from interface org.eclipse.jface.dialogs.IMessageProviderERROR, INFORMATION, NONE, WARNINGFields inherited from interface org.apache.uima.pear.insd.edit.InsdConstantsCAS_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 SummaryConstructorsConstructorDescriptionINSDComponentPage(org.eclipse.core.resources.IContainer currentContainer, InstallationDescriptor insd, Hashtable wizardData) Constructor.
- 
Method SummaryModifier 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.WizardPagecanFlipToNextPage, 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.DialogPageconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPagedispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
- 
Field Details- 
compIDThe comp ID.
- 
compDescriptorPathThe comp descriptor path.
- 
compTypeThe comp type.
 
- 
- 
Constructor Details- 
INSDComponentPagepublic INSDComponentPage(org.eclipse.core.resources.IContainer currentContainer, InstallationDescriptor insd, Hashtable wizardData) Constructor.- Parameters:
- currentContainer- the current container
- insd- the insd
- wizardData- the wizard data
 
 
- 
- 
Method Details- 
removeMacrosRemoves the $main_root macro from the given String.- Parameters:
- s- A String instance
- Returns:
- The given String after removing the $main_root macro.
 
- 
addTextFieldpublic 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 parent
- strLabel- the str label
- strText- the str text
- editable- the editable
- Returns:
- the text
 
- 
createControlpublic void createControl(org.eclipse.swt.widgets.Composite parent) See IDialogPage#createControl(Composite).- Specified by:
- createControlin interface- org.eclipse.jface.dialogs.IDialogPage
- Parameters:
- parent- the parent
 
- 
addButtonprotected 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 composite
- label- the label from the button
- defaultButton-- trueif the button is to be the default button, and- falseotherwise
- text- the text
- Returns:
- the button
 
- 
addRadioButtonprotected 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 composite
- label- the label from the button
- initialSelection-- trueif the button is to be the default button, and- falseotherwise
- Returns:
- the button
 
- 
setVisiblepublic void setVisible(boolean visible) - Specified by:
- setVisiblein interface- org.eclipse.jface.dialogs.IDialogPage
- Overrides:
- setVisiblein class- org.eclipse.jface.dialogs.DialogPage
 
 
-