public interface IUIUtility
TaurusUIUtilityProcessor.getMyUIUtility().
Not intended to be implemented by clients.
| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIRM_DIALOG
Constant for opening a confirm dialog
|
static int |
ERROR_DIALOG
Constant for opening a error dialog
|
static int |
INFO_DIALOG
Constant for opening a info dialog
|
static int |
QUESTION_DIALOG
Constant for opening a question dialog
|
static int |
WARNING_DIALOG
Constant for opening a warning dialog
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeEditorParts()
Close all open editor parts registered by Taurus.
|
void |
expandInTreeView(java.lang.Object pObject,
int pLevel)
Expands the object in the main AWM tree view.
|
java.lang.String |
getActiveEditorContents()
Gets the contents of the active text editor.
|
java.lang.String |
getViewTitle(java.lang.String pViewID,
java.lang.String pSecondaryID)
Gets the title of the view.
|
void |
loadOpenFiles()
Load the open files saved in the file ft_openfiles.xml.
|
org.eclipse.core.resources.IFile |
openFile(FileDescriptor pFD,
IExecutionContext pContext,
boolean pReadOnly)
Opens the given Content in editor.
|
void |
refreshElementListEntryInViews(IElementListEntry pEntry)
Refreshes visual representations of the element list entry in AWM views.
|
void |
refreshElementViews()
Refreshes all AWM views which contain AWM elements.
|
void |
refreshInTreeView(java.lang.Object pObject)
Refreshes the object in the tree view.
|
void |
restoreDefaultAWMViews(boolean pRestoreSecondaryTableViews)
Restores (shows) all default AWM views and optionally all secondary table
views.
|
boolean |
sendMessageDialog(int pDialogTyp,
java.lang.String pTitle,
java.lang.String pMsg)
Open a message dialog.
|
void |
showTaurusErrorView()
Opens or reveals the TAURUS Error View (in a UI Thread).
|
void |
showView(java.lang.String pViewID)
Opens or reveals the view with the given ID (in a UI Thread).
|
static final int INFO_DIALOG
static final int WARNING_DIALOG
static final int ERROR_DIALOG
static final int CONFIRM_DIALOG
static final int QUESTION_DIALOG
void closeEditorParts()
throws TaurusCoreException
TaurusCoreException - if closing of the editor parts fails.void loadOpenFiles()
throws TaurusCoreException
TaurusCoreException - if opening the saved files fails.boolean sendMessageDialog(int pDialogTyp,
java.lang.String pTitle,
java.lang.String pMsg)
pDialogTyp - type of the dialog (info, warning, confirmation, error,
question)pTitle - dialog titlepMsg - dialog messagevoid showTaurusErrorView()
void showView(java.lang.String pViewID)
pViewID - the ID of the view to be shown.java.lang.String getActiveEditorContents()
throws TaurusCoreException
TaurusCoreException - if the active editor is not a text editor.java.lang.String getViewTitle(java.lang.String pViewID,
java.lang.String pSecondaryID)
null if the view
reference with the given ID was not found (which also occurs if the view
is not opened).pViewID - the view ID.pSecondaryID - (optional) the secondary view ID (can be null).null.void restoreDefaultAWMViews(boolean pRestoreSecondaryTableViews)
pRestoreSecondaryTableViews - whether to restore secondary table views.ActionDescriptor.getTableViewID(),
ActionDescriptor.getTableViewLabel()void expandInTreeView(java.lang.Object pObject,
int pLevel)
pObject - the object that should be expanded.pLevel - the expand levelvoid refreshInTreeView(java.lang.Object pObject)
pObject - the object to refreshorg.eclipse.core.resources.IFile openFile(FileDescriptor pFD, IExecutionContext pContext, boolean pReadOnly) throws TaurusCoreException
pFD - the file descriptor for the file to openpContext - The execution contextpReadOnly - if true the file is opened in read only modusTaurusCoreException - if an Exception of any kind occursvoid refreshElementListEntryInViews(IElementListEntry pEntry) throws TaurusCoreException
pEntry - the entry to be refreshedTaurusCoreException - if refreshing the entries children was executed but failedvoid refreshElementViews()
throws TaurusCoreException
refreshElementListEntryInViews(IElementListEntry) for existing
elements.TaurusCoreException - if an exception occurs during the attempt to refresh viewsCopyright © 2015 Micro Focus GmbH. All rights reserved.