Author: akazakov
Date: 2007-07-27 07:42:48 -0400 (Fri, 27 Jul 2007)
New Revision: 2696
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java
Log:
http://jira.jboss.org/jira/browse/EXIN-225 Added log of some exceptions
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java 2007-07-27
09:41:56 UTC (rev 2695)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java 2007-07-27
11:42:48 UTC (rev 2696)
@@ -26,15 +26,13 @@
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.jboss.tools.common.log.BaseUIPlugin;
import org.osgi.framework.BundleContext;
-
-
/**
* The main plugin class to be used in the desktop.
*/
-public class ViewPlugin extends AbstractUIPlugin {
+public class ViewPlugin extends BaseUIPlugin {
//The shared instance.
private static ViewPlugin plugin;
//Resource bundle.
@@ -165,9 +163,8 @@
try {
properties.load(bain);
} catch (IOException e) {
-// ExceptionHandler.logThrowableError(e, null);
+ getDefault().logError("Can't load preference store propertyes", e);
}
}
}
-
-}
+}
\ No newline at end of file
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java 2007-07-27
09:41:56 UTC (rev 2695)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OpenDiagramActionDelegate.java 2007-07-27
11:42:48 UTC (rev 2696)
@@ -41,11 +41,10 @@
try {
IDE.openEditor(ViewPlugin.getPage(),input
,"org.jboss.tools.hibernate.ui.veditor.editors.visualeditor");
} catch (PartInitException e) {
-// ExceptionHandler.logThrowableError(e,"OpenEditor");
+ ViewPlugin.getDefault().logError("Can't open mapping view.", e);
}
}
public void selectionChanged(IAction action, ISelection selection) {
}
-
-}
+}
\ No newline at end of file