Revision 243e2b8e
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java | ||
---|---|---|
65 | 65 |
import org.eclipse.ui.PlatformUI; |
66 | 66 |
import org.eclipse.ui.handlers.IHandlerService; |
67 | 67 |
import org.eclipse.ui.ide.undo.WorkspaceUndoUtil; |
68 |
import org.eclipse.ui.part.EditorPart; |
|
69 | 68 |
import org.eclipse.ui.progress.IProgressConstants; |
70 | 69 |
import org.eclipse.ui.progress.IProgressService; |
71 | 70 |
import org.eclipse.ui.progress.IWorkbenchSiteProgressService; |
... | ... | |
121 | 120 |
return false; |
122 | 121 |
} |
123 | 122 |
|
124 |
/** |
|
125 |
* Close the given editor. |
|
126 |
* |
|
127 |
* @param editor |
|
128 |
* The <tt>MultipageTaxonEditor</tt> to close. |
|
129 |
* @return <tt>true</tt> on success |
|
130 |
*/ |
|
131 |
public static boolean close(EditorPart editor) { |
|
132 |
return getActivePage() != null ? getActivePage().closeEditor(editor, true):false; |
|
133 |
} |
|
134 |
|
|
135 | 123 |
public static Shell getShell() { |
136 | 124 |
|
137 | 125 |
return TaxeditorStorePlugin.getDefault().getWorkbench() |
Also available in: Unified diff
ref #6913 Remove e3 dependencies from AbstractUtility