org.eclipse.ptp.ui
Class UIUtils
java.lang.Object
org.eclipse.ptp.ui.UIUtils
public class UIUtils
- extends Object
Method Summary |
static void |
closeView(String viewID)
|
static void |
displayView(String viewID)
|
static org.eclipse.ui.IViewPart |
findView(String viewID)
|
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
|
static void |
safeRunAsyncInUIThread(org.eclipse.core.runtime.ISafeRunnable safeRunnable)
|
static void |
safeRunSyncInUIThread(org.eclipse.core.runtime.ISafeRunnable safeRunnable)
|
static void |
showDetailErrorDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
org.eclipse.core.runtime.IStatus status)
|
protected static void |
showDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int style)
|
protected static void |
showDialogAsync(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int style)
|
static void |
showErrorDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int flag)
|
static void |
showErrorDialog(String title,
String message,
org.eclipse.core.runtime.IStatus status)
|
static void |
showInformationDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int flag)
|
static boolean |
showQuestionDialog(String title,
String message)
|
static void |
showView(String viewID)
|
static void |
showWarningDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int flag)
|
static void |
switchPerspectiveTo(String perspectiveID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NORMAL
public static final int NORMAL
- See Also:
- Constant Field Values
ASYNC
public static final int ASYNC
- See Also:
- Constant Field Values
UIUtils
public UIUtils()
showDialog
protected static void showDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int style)
showDialogAsync
protected static void showDialogAsync(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int style)
showWarningDialog
public static void showWarningDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int flag)
showInformationDialog
public static void showInformationDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int flag)
showErrorDialog
public static void showErrorDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
int flag)
showDetailErrorDialog
public static void showDetailErrorDialog(org.eclipse.swt.widgets.Shell shell,
String title,
String message,
org.eclipse.core.runtime.IStatus status)
showErrorDialog
public static void showErrorDialog(String title,
String message,
org.eclipse.core.runtime.IStatus status)
showQuestionDialog
public static boolean showQuestionDialog(String title,
String message)
showView
public static void showView(String viewID)
switchPerspectiveTo
public static void switchPerspectiveTo(String perspectiveID)
getActivePage
public static org.eclipse.ui.IWorkbenchPage getActivePage()
displayView
public static void displayView(String viewID)
throws NullPointerException
- Throws:
NullPointerException
findView
public static org.eclipse.ui.IViewPart findView(String viewID)
closeView
public static void closeView(String viewID)
safeRunAsyncInUIThread
public static void safeRunAsyncInUIThread(org.eclipse.core.runtime.ISafeRunnable safeRunnable)
safeRunSyncInUIThread
public static void safeRunSyncInUIThread(org.eclipse.core.runtime.ISafeRunnable safeRunnable)
- Since:
- 5.0
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.