Revision 80313393
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/group/authority/e4/handler/EditCdmAuthoritiesHandlerE4.java | ||
---|---|---|
44 | 44 |
try { |
45 | 45 |
EditorUtil.openRightsEditor(CdmAuthorityEditorInput.NewInstance(((Group) selection).getUuid()), modelService, partService, application); |
46 | 46 |
} catch (Exception e) { |
47 |
// TODO Auto-generated catch block |
|
48 | 47 |
e.printStackTrace(); |
49 | 48 |
} |
50 |
// Job job = new Job(OPENING_CDM_AUTHORITIES) { |
|
51 |
// @Override |
|
52 |
// protected IStatus run(IProgressMonitor monitor) { |
|
53 |
// monitor.beginTask(OPENING_CDM_AUTHORITIES, 1);//selection.size()); |
|
54 |
// |
|
55 |
// if (selection instanceof Group) { |
|
56 |
// Display.getDefault().asyncExec(new Runnable() { |
|
57 |
// @Override |
|
58 |
// public void run() { |
|
59 |
// try { |
|
60 |
//// MPart part = partService.createPart("eu.etaxonomy.taxeditor.editor.group.authority.e4.CdmAuthorityEditorE4"); |
|
61 |
//// part = partService.showPart(part, PartState.ACTIVATE); |
|
62 |
//// CdmAuthorityEditorE4 editor = (CdmAuthorityEditorE4) part.getObject(); |
|
63 |
//// editor.init(CdmAuthorityEditorInput.NewInstance(((Group) selection).getUuid())); |
|
64 |
// |
|
65 |
// } catch (Exception e) { |
|
66 |
// MessagingUtils.warningDialog( |
|
67 |
// Messages.EditCdmAuthoritiesHandler_COULD_NOT_OPEN_AUTHORITIES, |
|
68 |
// EditorUtil.class, e.getMessage()); |
|
69 |
// } |
|
70 |
// } |
|
71 |
// |
|
72 |
// }); |
|
73 |
// monitor.worked(1); |
|
74 |
// } |
|
75 |
// monitor.done(); |
|
76 |
// return Status.OK_STATUS; |
|
77 |
// } |
|
78 |
// }; |
|
79 |
// job.setPriority(Job.SHORT); |
|
80 |
// job.schedule(); |
|
81 | 49 |
} |
82 | 50 |
|
83 | 51 |
@CanExecute |
Also available in: Unified diff
fix #7009 Replace part descriptor IDs in open handler with constants