4
4
* are made available under the terms of the Eclipse Public License v1.0
5
5
* which accompanies this distribution, and is available at
6
6
* http://www.eclipse.org/legal/epl-v10.html
9
9
* Red Hat - initial API and implementation
10
10
*******************************************************************************/
26
26
public class SystemTapUIErrorMessages extends UIJob {
27
private String title, message;
28
private static boolean active = true;
30
public SystemTapUIErrorMessages(String name, String title, String message) {
33
this.message = message;
37
public IStatus runInUIThread(IProgressMonitor monitor) {
39
return Status.CANCEL_STATUS;
41
//Test that this job is running in the UI thread
42
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
45
return Status.CANCEL_STATUS; //Something is wrong!
48
Shell sh = new Shell();
50
MessageDialog.openError(sh, title, message);
51
return Status.OK_STATUS;
55
public static boolean isActive() {
59
public static void setActive(boolean val) {
27
private String title, message;
28
private static boolean active = true;
30
public SystemTapUIErrorMessages(String name, String title, String message) {
33
this.message = message;
37
public IStatus runInUIThread(IProgressMonitor monitor) {
39
return Status.CANCEL_STATUS;
41
//Test that this job is running in the UI thread
42
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
45
return Status.CANCEL_STATUS; //Something is wrong!
48
Shell sh = new Shell();
50
MessageDialog.openError(sh, title, message);
51
return Status.OK_STATUS;
55
public static void setActive(boolean val) {