|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.ui.dialogs.WizardDataTransferPage
org.eclipse.hyades.trace.ui.internal.wizard.ImportTracePage1
public class ImportTracePage1
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 |
|---|
protected org.eclipse.swt.widgets.Button sourceBrowseButton
protected java.lang.String fError
protected java.lang.String fInputLog
protected org.eclipse.hyades.models.hierarchy.TRCMonitor fMonitor
protected org.eclipse.swt.widgets.Text sourceNameField
protected TraceLocationUI _location
protected double fStartPercentage
protected double fStopPercentage
protected org.eclipse.swt.widgets.TabFolder details
protected org.eclipse.swt.widgets.TabItem rangeTab
protected ImportTraceRangeUI rangeUI
protected org.eclipse.swt.widgets.TabItem filterTab
protected ImportTraceFilterUI filterUI
| Constructor Detail |
|---|
public ImportTracePage1(org.eclipse.ui.IWorkbench aWorkbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
aWorkbench - IWorkbenchselection - IStructuredSelection| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl in interface org.eclipse.jface.dialogs.IDialogPagepublic boolean finish()
false is returned then the
wizard will not close.
public void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent in interface org.eclipse.swt.widgets.Listenerevent - Eventpublic void modifyText(org.eclipse.swt.events.ModifyEvent e)
modifyText in interface org.eclipse.swt.events.ModifyListenere - an event containing information about the modifypublic void run(org.eclipse.core.runtime.IProgressMonitor mon)
run in interface org.eclipse.jface.operation.IRunnableWithProgresspublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerprotected boolean allowNewContainerName()
allowNewContainerName in class org.eclipse.ui.dialogs.WizardDataTransferPage
protected org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent,
int id,
java.lang.String label,
boolean defaultButton)
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.
parent - the parent compositeid - the id of the button (see
IDialogConstants.*_ID constants
for standard dialog button ids)label - the label from the buttondefaultButton - true if the button is to be the
default button, and false otherwiseprotected void createSourceGroup(org.eclipse.swt.widgets.Composite parent)
protected boolean determinePageCompletion()
validateSourceGroup and/or validateOptionsGroup.
determinePageCompletion in class org.eclipse.ui.dialogs.WizardDataTransferPagetrue if this page is complete, and false if
incompletevalidateSourceGroup(),
validateOptionsGroup()protected void handleSourceBrowseButtonPressed()
protected void updateWidgetEnablements()
updateWidgetEnablements in class org.eclipse.ui.dialogs.WizardDataTransferPageevent - Eventprotected boolean validateOptionsGroup()
The WizardDataTransferPage implementation of this method returns
true. Subclasses may reimplement this hook method.
validateOptionsGroup in class org.eclipse.ui.dialogs.WizardDataTransferPagetrue indicating validity of all controls in the options
groupprotected boolean validateSourceGroup()
The WizardDataTransferPage implementation of this method returns
true. Subclasses may reimplement this hook method.
validateSourceGroup in class org.eclipse.ui.dialogs.WizardDataTransferPagetrue indicating validity of all controls in the
source specification grouppublic void setTraceFile(java.lang.String fullPath)
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||