Revision 5f709cc6
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java | ||
---|---|---|
166 | 166 |
} |
167 | 167 |
|
168 | 168 |
return partService.showPart(part, PartState.ACTIVATE); |
169 |
|
|
170 | 169 |
} |
171 | 170 |
|
172 | 171 |
public static MPart showPart(String partId, EModelService modelService, EPartService partService){ |
... | ... | |
275 | 274 |
|
276 | 275 |
public static Collection<MPart> checkForChanges(UUID taxonUUID, EPartService partService ){ |
277 | 276 |
Collection<MPart> parts = partService.getParts(); |
278 |
Collection<MPart> dirtyParts = new HashSet(); |
|
277 |
Collection<MPart> dirtyParts = new HashSet<>();
|
|
279 | 278 |
//check if part is already opened |
280 | 279 |
boolean isDirty = false; |
281 | 280 |
for (MPart part : parts) { |
... | ... | |
364 | 363 |
EditorUtil.mediaVisible = mediaVisible; |
365 | 364 |
} |
366 | 365 |
|
367 |
/** |
|
368 |
* <p> |
|
369 |
* forceUserSave |
|
370 |
* </p> |
|
371 |
* |
|
372 |
* @param editor |
|
373 |
* a {@link org.eclipse.ui.IEditorPart} object. |
|
374 |
* @param shell |
|
375 |
* a {@link org.eclipse.swt.widgets.Shell} object. |
|
376 |
* @return a boolean. |
|
377 |
*/ |
|
378 | 366 |
public static boolean forceUserSave(IEditorPart editor, Shell shell) { |
379 | 367 |
if (editor.isDirty()) { |
380 | 368 |
|
Also available in: Unified diff
cleanup