Revision b057d1b2
Added by Niels Hoffmann over 14 years ago
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java | ||
---|---|---|
21 | 21 |
import org.eclipse.jface.dialogs.MessageDialog; |
22 | 22 |
import org.eclipse.jface.resource.ColorRegistry; |
23 | 23 |
import org.eclipse.jface.resource.FontRegistry; |
24 |
import org.eclipse.swt.SWT; |
|
25 |
import org.eclipse.swt.widgets.MessageBox; |
|
26 | 24 |
import org.eclipse.swt.widgets.Shell; |
27 | 25 |
import org.eclipse.ui.IWorkbenchPage; |
28 | 26 |
import org.eclipse.ui.ide.undo.WorkspaceUndoUtil; |
... | ... | |
95 | 93 |
MessageDialog.openWarning(getShell(), title, message); |
96 | 94 |
} |
97 | 95 |
|
96 |
public static void errorDialog(String title, String message){ |
|
97 |
MessageDialog.openError(getShell(), title, message); |
|
98 |
} |
|
99 |
|
|
98 | 100 |
public static IStatus executeOperation(IUndoableOperation operation){ |
99 | 101 |
if(getOperationHistory() == null){ |
100 | 102 |
throw new IllegalArgumentException("Ther is no operation history for this context"); |
Also available in: Unified diff
fixes #1016