Author: vrubezhny
Date: 2007-09-11 13:11:37 -0400 (Tue, 11 Sep 2007)
New Revision: 3567
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesGuiEditor.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-894 Clean out jst component
Code clean up is performed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java 2007-09-11
17:11:25 UTC (rev 3566)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java 2007-09-11
17:11:37 UTC (rev 3567)
@@ -74,7 +74,11 @@
public void dispose() {
if(input != null) {
selectionProvider.setHost(null);
- try { getSite().setSelectionProvider(null); } catch (Exception e) {}
+ try {
+ getSite().setSelectionProvider(null);
+ } catch (Exception e) {
+ // Ignore
+ }
}
super.dispose();
if(guiEditor != null) {
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesGuiEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesGuiEditor.java 2007-09-11
17:11:25 UTC (rev 3566)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesGuiEditor.java 2007-09-11
17:11:37 UTC (rev 3567)
@@ -18,6 +18,7 @@
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.IFileEditorInput;
+import org.jboss.tools.common.log.LogHelper;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.ui.editor.IModelObjectEditorInput;
@@ -95,7 +96,11 @@
if(gui != null) {
gui.dispose();
gui = null;
- try { control.dispose(); } catch (Exception e) {}
+ try {
+ control.dispose();
+ } catch (Exception e) {
+ TilesUIPlugin.getPluginLog().logError(e);
+ }
control = null;
}
}