Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/CopyHandler.java | ||
---|---|---|
19 | 19 |
import org.eclipse.ui.handlers.HandlerUtil; |
20 | 20 |
|
21 | 21 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
22 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
22 | 23 |
import eu.etaxonomy.taxeditor.navigation.NavigationUtil; |
23 | 24 |
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator; |
24 | 25 |
import eu.etaxonomy.taxeditor.navigation.navigator.operation.CopyOperation; |
... | ... | |
59 | 60 |
IStatus status = NavigationUtil.executeOperation(operation); |
60 | 61 |
|
61 | 62 |
} catch (NotDefinedException e) { |
62 |
NavigationUtil.warn(getClass(), "Command name not set");
|
|
63 |
MessagingUtils.warn(getClass(), "Command name not set");
|
|
63 | 64 |
} |
64 | 65 |
} |
65 | 66 |
} |
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