|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pvx.ooadide.views.UIManager
public class UIManager
Provides an Interface to the Eclipse GUI for ProvideX programs
Field Summary | |
---|---|
static java.lang.String |
CONSOLE_VIEW_ID
|
static java.lang.String |
IOLIST_VIEW_ID
|
static java.lang.String |
NOMADS_VIEW_ID
|
static java.lang.String |
PVCOUTLINE_VIEW_ID
|
Constructor Summary | |
---|---|
UIManager()
|
Method Summary | |
---|---|
void |
addRowToView(java.lang.String id,
java.lang.String text)
|
void |
clearView(java.lang.String id)
|
void |
closeAllEditors(boolean save)
Closes all open editors |
static void |
createDialProgressMonitor(java.lang.String taskName,
int toComplete,
MonitorState mState)
This method should not be called directly by ProvideX programs. |
void |
editFile(java.lang.String filePath,
java.lang.String projectName)
Opens the file specified in the ProvideX Editor |
int |
getNumberOfColumns(java.lang.String id)
|
int |
getNumberOfRows(java.lang.String id)
|
static MonitorState |
getProgressMonitor(java.lang.String taskName,
int toComplete)
Creates a progress monitor dialog. |
java.lang.String |
getRegisteredEditors(java.lang.String fileName)
Get a list of all of the editors associated with the specified file |
java.lang.String |
getRegisteredViews()
Return a list of views defined in the Eclipse registry. |
static void |
hideView(java.lang.String id)
Hides the view identified |
static boolean |
isPvxProgressMonitorDialogVisible()
|
static boolean |
isViewVisible(java.lang.String id)
Returns whether the specified Eclipse part is visible. |
void |
printLnToConsole(java.lang.String text)
Prints a line of text to the Console view |
static void |
setPvxProgressMonitorDialogVisible(boolean vis)
|
static void |
showView(java.lang.String id)
Shows the view identified by the given view id in this Eclipse page and gives it focus. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CONSOLE_VIEW_ID
public static java.lang.String PVCOUTLINE_VIEW_ID
public static java.lang.String IOLIST_VIEW_ID
public static java.lang.String NOMADS_VIEW_ID
Constructor Detail |
---|
public UIManager()
Method Detail |
---|
public void editFile(java.lang.String filePath, java.lang.String projectName)
filePath
- The file to editprojectName
- The project containing the filepublic void closeAllEditors(boolean save)
save
- If true save dirty files prior to closespublic void printLnToConsole(java.lang.String text)
text
- String to printpublic java.lang.String getRegisteredEditors(java.lang.String fileName)
fileName
- The file to
public java.lang.String getRegisteredViews()
public void clearView(java.lang.String id)
public static boolean isViewVisible(java.lang.String id)
id
- The id of the Eclipse part
true
if part is visiblepublic static void showView(java.lang.String id)
id
- The id of the view to showpublic void addRowToView(java.lang.String id, java.lang.String text)
public int getNumberOfRows(java.lang.String id)
public int getNumberOfColumns(java.lang.String id)
public static void hideView(java.lang.String id)
id
- The id of the view to hidepublic static MonitorState getProgressMonitor(java.lang.String taskName, int toComplete)
taskName
- toComplete
-
public static void createDialProgressMonitor(java.lang.String taskName, int toComplete, MonitorState mState)
taskName
- The title for the dialogtoComplete
- The amount of work to be donemState
- The Monitor state objectgetProgressMonitor(String, int)
public static boolean isPvxProgressMonitorDialogVisible()
public static void setPvxProgressMonitorDialogVisible(boolean vis)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |