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

public class INSDComponentPage extends org.eclipse.jface.wizard.WizardPage implements InsdConstants
This is wizard page to edit UIMA component basic information.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The comp descriptor path.
    The comp ID.
    The comp type.

    Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

    ERROR, INFORMATION, NONE, WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    INSDComponentPage(org.eclipse.core.resources.IContainer currentContainer, InstallationDescriptor insd, Hashtable wizardData)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 button
    protected org.eclipse.swt.widgets.Button
    addRadioButton(org.eclipse.swt.widgets.Composite parent, String label, boolean initialSelection)
    Creates a new Radio button.
    org.eclipse.swt.widgets.Text
    addTextField(org.eclipse.swt.widgets.Composite parent, String strLabel, String strText, boolean editable)
    Adds the text field.
    void
    createControl(org.eclipse.swt.widgets.Composite parent)
    See IDialogPage#createControl(Composite).
    static String
    Removes the $main_root macro from the given String.
    void
    setVisible(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, toString

    Methods 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, setMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage

    dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
  • Field Details

    • compID

      public String compID
      The comp ID.
    • compDescriptorPath

      public String compDescriptorPath
      The comp descriptor path.
    • compType

      public String compType
      The comp type.
  • Constructor Details

    • INSDComponentPage

      public 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

    • removeMacros

      public static String removeMacros(String s)
      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 parent
      strLabel - the str label
      strText - the str text
      editable - the editable
      Returns:
      the text
    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite parent)
      See IDialogPage#createControl(Composite).
      Specified by:
      createControl in interface org.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 button

      The Dialog implementation 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 - true if the button is to be the default button, and false otherwise
      text - 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 composite
      label - the label from the button
      initialSelection - true if the button is to be the default button, and false otherwise
      Returns:
      the button
    • setVisible

      public void setVisible(boolean visible)
      Specified by:
      setVisible in interface org.eclipse.jface.dialogs.IDialogPage
      Overrides:
      setVisible in class org.eclipse.jface.dialogs.DialogPage