|
TPTP 4.2.0 Monitoring Tools 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.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.tptp.monitoring.logui.internal.wizards.ImportMultiLogFilesDialog
| Nested Class Summary |
|---|
| Nested classes inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.Button |
deselectAllButton
|
static java.lang.String |
DLG_IMG_TITLE_BANNER
|
static java.lang.String |
DLG_IMG_TITLE_ERROR
|
protected org.eclipse.swt.widgets.Text |
messageLabel
|
protected org.eclipse.swt.widgets.Button |
selectAllButton
|
protected java.util.List |
selectedTypes
|
protected static int |
SIZING_TEXT_FIELD_WIDTH
|
protected org.eclipse.swt.widgets.Button |
sourceBrowseButton
|
protected org.eclipse.swt.widgets.Combo |
sourceNameField
|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
protected |
ImportMultiLogFilesDialog(org.eclipse.swt.widgets.Shell parent)
|
| Method Summary | |
|---|---|
protected void |
createButtonsGroup(org.eclipse.swt.widgets.Composite parent)
Creates the buttons for selecting specific types or selecting all or none of the elements. |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
|
protected void |
createFileSelectionGroup(org.eclipse.swt.widgets.Composite parent)
Create the import source selection widget |
protected void |
createRootDirectoryGroup(org.eclipse.swt.widgets.Composite parent)
Create the group for creating the root directory |
protected MinimizedLogFileSystemElement |
createRootElement(java.lang.Object fileSystemObject,
org.eclipse.ui.wizards.datatransfer.IImportStructureProvider provider)
Creates and returns a FileSystemElement if the specified
file system object merits one. |
protected void |
createSourceGroup(org.eclipse.swt.widgets.Composite parent)
Create the import source specification widgets |
protected void |
enableButtonGroup(boolean enable)
Enable or disable the button group. |
protected org.eclipse.jface.viewers.ITreeContentProvider |
getFileProvider()
Returns a content provider for FileSystemElements that returns
only files as children. |
java.util.List |
getFileSystemObjects()
|
protected MinimizedLogFileSystemElement |
getFileSystemTree()
Answer the root FileSystemElement that represents the contents of the currently-specified source. |
protected org.eclipse.jface.viewers.ITreeContentProvider |
getFolderProvider()
Returns a content provider for FileSystemElements that returns
only folders as children. |
protected java.util.List |
getSelectedResources()
Returns this page's list of currently-specified resources to be imported. |
protected java.io.File |
getSourceDirectory()
Returns a File object representing the currently-named source directory iff it exists as a valid directory, or null otherwise. |
protected java.lang.String |
getSourceLabel()
Answer the string to display as the label for the source specification field |
protected java.util.List |
getTypesToImport()
Returns a collection of the currently-specified resource types for use by the type selection dialog. |
void |
handleEvent(org.eclipse.swt.widgets.Event event)
|
protected void |
handleSourceBrowseButtonPressed()
Open an appropriate source browser so that the user can specify a source to import from |
protected boolean |
isExportableExtension(java.lang.String extension)
Returns whether the extension provided is an extension that has been specified for export by the user. |
protected void |
okPressed()
|
protected void |
resetSelection()
Repopulate the view based on the currently entered directory. |
protected void |
restoreWidgetValues()
|
protected void |
saveWidgetValues()
Since Finish was pressed, write widget values to the dialog store so that they will persist into the next invocation of this wizard page |
protected MinimizedLogFileSystemElement |
selectFiles(java.lang.Object rootFileSystemObject,
org.eclipse.ui.wizards.datatransfer.IImportStructureProvider structureProvider)
Invokes a file selection operation using the specified file system and structure provider. |
protected void |
setAllSelections(boolean value)
Set all of the selections in the selection group to value. |
protected void |
setButtonLayoutData(org.eclipse.swt.widgets.Button button)
|
void |
setErrorMessage(java.lang.String newErrorMessage)
|
void |
setMessage(java.lang.String newMessage)
|
void |
setMessage(java.lang.String newMessage,
int newType)
|
protected void |
setSourceName(java.lang.String path)
Sets the source name of the import to be the supplied path. |
void |
setTitle(java.lang.String newTitle)
|
void |
setTitleImage(org.eclipse.swt.graphics.Image newTitleImage)
|
protected void |
updateSelections(java.util.Map map)
Update the selections with those in map . |
protected void |
updateWidgetEnablements()
Check if widgets are enabled or disabled by a change in the dialog. |
protected boolean |
validateSourceGroup()
Answer a boolean indicating whether self's source specification widgets currently all contain valid values. |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createDialogArea, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DLG_IMG_TITLE_ERROR
protected static final int SIZING_TEXT_FIELD_WIDTH
protected java.util.List selectedTypes
protected org.eclipse.swt.widgets.Combo sourceNameField
protected org.eclipse.swt.widgets.Button sourceBrowseButton
protected org.eclipse.swt.widgets.Button selectAllButton
protected org.eclipse.swt.widgets.Button deselectAllButton
public static final java.lang.String DLG_IMG_TITLE_BANNER
protected org.eclipse.swt.widgets.Text messageLabel
| Constructor Detail |
protected ImportMultiLogFilesDialog(org.eclipse.swt.widgets.Shell parent)
| Method Detail |
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
protected void createSourceGroup(org.eclipse.swt.widgets.Composite parent)
protected final void createButtonsGroup(org.eclipse.swt.widgets.Composite parent)
parent - the parent controlprotected boolean isExportableExtension(java.lang.String extension)
extension - the resource name
true if the resource name is suitable for export based
upon its extensionprotected void updateSelections(java.util.Map map)
map - Map - key tree elements, values Lists of list elementsprotected java.util.List getSelectedResources()
IResource)protected java.util.List getTypesToImport()
protected void setAllSelections(boolean value)
value - booleanprotected void restoreWidgetValues()
protected void createRootDirectoryGroup(org.eclipse.swt.widgets.Composite parent)
protected void setSourceName(java.lang.String path)
path - the path to be addedprotected void resetSelection()
protected MinimizedLogFileSystemElement getFileSystemTree()
protected java.io.File getSourceDirectory()
null otherwise.
protected java.lang.String getSourceLabel()
protected MinimizedLogFileSystemElement selectFiles(java.lang.Object rootFileSystemObject,
org.eclipse.ui.wizards.datatransfer.IImportStructureProvider structureProvider)
protected MinimizedLogFileSystemElement createRootElement(java.lang.Object fileSystemObject,
org.eclipse.ui.wizards.datatransfer.IImportStructureProvider provider)
FileSystemElement if the specified
file system object merits one. The criteria for this are:
Also create the children.
protected void createFileSelectionGroup(org.eclipse.swt.widgets.Composite parent)
protected void updateWidgetEnablements()
protected boolean validateSourceGroup()
protected void enableButtonGroup(boolean enable)
protected org.eclipse.jface.viewers.ITreeContentProvider getFileProvider()
FileSystemElements that returns
only files as children.
protected org.eclipse.jface.viewers.ITreeContentProvider getFolderProvider()
FileSystemElements that returns
only folders as children.
public void setTitle(java.lang.String newTitle)
public void setMessage(java.lang.String newMessage)
public void setMessage(java.lang.String newMessage,
int newType)
public void setTitleImage(org.eclipse.swt.graphics.Image newTitleImage)
public void setErrorMessage(java.lang.String newErrorMessage)
public void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent in interface org.eclipse.swt.widgets.Listenerprotected void handleSourceBrowseButtonPressed()
protected void okPressed()
protected void setButtonLayoutData(org.eclipse.swt.widgets.Button button)
public java.util.List getFileSystemObjects()
protected void saveWidgetValues()
|
TPTP 4.2.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||