Author: scabanovich
Date: 2009-06-10 10:41:39 -0400 (Wed, 10 Jun 2009)
New Revision: 15862
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/palette/PaletteViewPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-831
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/palette/PaletteViewPart.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/palette/PaletteViewPart.java 2009-06-10
14:17:02 UTC (rev 15861)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/views/palette/PaletteViewPart.java 2009-06-10
14:41:39 UTC (rev 15862)
@@ -98,7 +98,9 @@
paletteAdapter = null;
}
- public void setFocus() {}
+ public void setFocus() {
+ if(palette != null && !palette.isDisposed()) palette.setFocus();
+ }
public void partActivated(IWorkbenchPart part) {
IEditorPart part1 =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();