Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/PolytomousKeyViewPart.java | ||
---|---|---|
43 | 43 |
import eu.etaxonomy.taxeditor.model.ContextListenerAdapter; |
44 | 44 |
import eu.etaxonomy.taxeditor.model.DataChangeBridge; |
45 | 45 |
import eu.etaxonomy.taxeditor.model.IContextListener; |
46 |
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
|
|
46 |
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
|
47 | 47 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
48 | 48 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
49 | 49 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
164 | 164 |
if(command.isEnabled()) { |
165 | 165 |
IHandlerService handlerService = (IHandlerService)getSite().getService(IHandlerService.class); |
166 | 166 |
try { |
167 |
handlerService.executeCommand(OPEN_COMMAND_ID, null); |
|
167 |
handlerService.executeCommand(OPEN_COMMAND_ID, null);
|
|
168 | 168 |
} catch (NotDefinedException e) { |
169 | 169 |
throw new RuntimeException("Could not find open command: " + OPEN_COMMAND_ID); |
170 | 170 |
} catch (Exception e) { |
171 |
NavigationUtil.error(getClass(), "An exception occured while trying to open a selection", e);
|
|
171 |
MessagingUtils.error(getClass(), "An exception occured while trying to open a selection", e);
|
|
172 | 172 |
} |
173 | 173 |
} |
174 | 174 |
} |
Also available in: Unified diff
Moved all logging and dialog functionality to the new class MessagingUtils.
Refactoring code to adapt to above change.
Added new custom error dialog - CdmErrorDialog
Added runtime exception handling to the ApplicationWorkbenchAdvisor by adding a custom status handler