TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.hyades.trace.ui.internal.wizard
Class ImportTracePage1

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.ui.dialogs.WizardDataTransferPage
              extended by org.eclipse.hyades.trace.ui.internal.wizard.ImportTracePage1
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.operation.IRunnableWithProgress, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.swt.widgets.Listener, org.eclipse.ui.dialogs.IOverwriteQuery

public class ImportTracePage1
extends org.eclipse.ui.dialogs.WizardDataTransferPage
implements org.eclipse.swt.widgets.Listener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, org.eclipse.jface.operation.IRunnableWithProgress

Page 1 of the base resource import-from-zip Wizard. Note that importing from .jar is identical to importing from .zip, so all references to .zip in this class are equally applicable to .jar references.


Field Summary
protected  TraceLocationUI _location
           
protected  org.eclipse.swt.widgets.TabFolder details
           
protected  java.lang.String fError
           
protected  org.eclipse.swt.widgets.TabItem filterTab
           
protected  ImportTraceFilterUI filterUI
           
protected  java.lang.String fInputLog
           
protected  org.eclipse.hyades.models.hierarchy.TRCMonitor fMonitor
           
protected  double fStartPercentage
           
protected  double fStopPercentage
           
protected  org.eclipse.swt.widgets.TabItem rangeTab
           
protected  ImportTraceRangeUI rangeUI
           
protected  org.eclipse.swt.widgets.Button sourceBrowseButton
           
protected  org.eclipse.swt.widgets.Text sourceNameField
           
 
Fields inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage
COMBO_HISTORY_LENGTH, SIZING_TEXT_FIELD_WIDTH
 
Fields inherited from interface org.eclipse.ui.dialogs.IOverwriteQuery
ALL, CANCEL, NO, NO_ALL, YES
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ImportTracePage1(org.eclipse.ui.IWorkbench aWorkbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Creates an instance of this class
 
Method Summary
protected  boolean allowNewContainerName()
           
protected  org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent, int id, java.lang.String label, boolean defaultButton)
          Creates a new button with the given id.
 void createControl(org.eclipse.swt.widgets.Composite parent)
          (non-Javadoc) Method declared on IDialogPage.
protected  void createSourceGroup(org.eclipse.swt.widgets.Composite parent)
          Create the import source specification widgets
protected  boolean determinePageCompletion()
          Returns whether this page is complete.
 boolean finish()
          The Finish button was pressed.
 void handleEvent(org.eclipse.swt.widgets.Event event)
          Handle all events and enablements for widgets in this dialog
protected  void handleSourceBrowseButtonPressed()
          Open an appropriate source browser so that the user can specify a source to import from
 void modifyText(org.eclipse.swt.events.ModifyEvent e)
          Sent when the text is modified.
 void run(org.eclipse.core.runtime.IProgressMonitor mon)
           
 void setTraceFile(java.lang.String fullPath)
           
protected  void updateWidgetEnablements()
          Check if widgets are enabled or disabled by a change in the dialog.
protected  boolean validateOptionsGroup()
          Returns whether this page's options group's controls currently all contain valid values.
protected  boolean validateSourceGroup()
          Returns whether this page's source specification controls currently all contain valid values.
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
           
 
Methods inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage
addToHistory, addToHistory, createBoldLabel, createOptionsGroup, createOptionsGroupButtons, createPlainLabel, createSpacer, displayErrorDialog, displayErrorDialog, getErrorDialogTitle, getPathFromText, queryForContainer, queryForContainer, queryOverwrite, queryYesNoQuestion, restoreWidgetValues, saveWidgetValues, updatePageCompletion, validateDestinationGroup
 
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, setVisible
 
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, setVisible
 

Field Detail

sourceBrowseButton

protected org.eclipse.swt.widgets.Button sourceBrowseButton

fError

protected java.lang.String fError

fInputLog

protected java.lang.String fInputLog

fMonitor

protected org.eclipse.hyades.models.hierarchy.TRCMonitor fMonitor

sourceNameField

protected org.eclipse.swt.widgets.Text sourceNameField

_location

protected TraceLocationUI _location

fStartPercentage

protected double fStartPercentage

fStopPercentage

protected double fStopPercentage

details

protected org.eclipse.swt.widgets.TabFolder details

rangeTab

protected org.eclipse.swt.widgets.TabItem rangeTab

rangeUI

protected ImportTraceRangeUI rangeUI

filterTab

protected org.eclipse.swt.widgets.TabItem filterTab

filterUI

protected ImportTraceFilterUI filterUI
Constructor Detail

ImportTracePage1

public ImportTracePage1(org.eclipse.ui.IWorkbench aWorkbench,
                        org.eclipse.jface.viewers.IStructuredSelection selection)
Creates an instance of this class

Parameters:
aWorkbench - IWorkbench
selection - IStructuredSelection
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
(non-Javadoc) Method declared on IDialogPage.

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage

finish

public boolean finish()
The Finish button was pressed. Try to do the required work now and answer a boolean indicating success. If false is returned then the wizard will not close.

Returns:
boolean

handleEvent

public void handleEvent(org.eclipse.swt.widgets.Event event)
Handle all events and enablements for widgets in this dialog

Specified by:
handleEvent in interface org.eclipse.swt.widgets.Listener
Parameters:
event - Event

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent e)
Sent when the text is modified.

Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener
Parameters:
e - an event containing information about the modify

run

public void run(org.eclipse.core.runtime.IProgressMonitor mon)
Specified by:
run in interface org.eclipse.jface.operation.IRunnableWithProgress

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener

allowNewContainerName

protected boolean allowNewContainerName()
Specified by:
allowNewContainerName in class org.eclipse.ui.dialogs.WizardDataTransferPage

createButton

protected org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent,
                                                      int id,
                                                      java.lang.String label,
                                                      boolean defaultButton)
Creates a new button with the given id.

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
id - the id of the button (see IDialogConstants.*_ID constants for standard dialog button ids)
label - the label from the button
defaultButton - true if the button is to be the default button, and false otherwise

createSourceGroup

protected void createSourceGroup(org.eclipse.swt.widgets.Composite parent)
Create the import source specification widgets


determinePageCompletion

protected boolean determinePageCompletion()
Returns whether this page is complete. This determination is made based upon the current contents of this page's controls. Subclasses wishing to include their controls in this determination should override the hook methods validateSourceGroup and/or validateOptionsGroup.

Overrides:
determinePageCompletion in class org.eclipse.ui.dialogs.WizardDataTransferPage
Returns:
true if this page is complete, and false if incomplete
See Also:
validateSourceGroup(), validateOptionsGroup()

handleSourceBrowseButtonPressed

protected void handleSourceBrowseButtonPressed()
Open an appropriate source browser so that the user can specify a source to import from


updateWidgetEnablements

protected void updateWidgetEnablements()
Check if widgets are enabled or disabled by a change in the dialog.

Overrides:
updateWidgetEnablements in class org.eclipse.ui.dialogs.WizardDataTransferPage
Parameters:
event - Event

validateOptionsGroup

protected boolean validateOptionsGroup()
Returns whether this page's options group's controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true. Subclasses may reimplement this hook method.

Overrides:
validateOptionsGroup in class org.eclipse.ui.dialogs.WizardDataTransferPage
Returns:
true indicating validity of all controls in the options group

validateSourceGroup

protected boolean validateSourceGroup()
Returns whether this page's source specification controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true. Subclasses may reimplement this hook method.

Overrides:
validateSourceGroup in class org.eclipse.ui.dialogs.WizardDataTransferPage
Returns:
true indicating validity of all controls in the source specification group

setTraceFile

public void setTraceFile(java.lang.String fullPath)

TPTP 4.6.0 Platform Project
Internal API Specification