\r
@Override\r
public void setFocus() {\r
- Composite c = getBaseComposite();\r
- if(c != null && !c.isDisposed()) {\r
- getBaseComposite().setFocus();\r
+ if(baseComposite != null && !baseComposite.isDisposed()) {\r
+ baseComposite.setFocus();\r
component.setFocus();\r
}\r
}\r
getSite().getWorkbenchWindow().getSelectionService().removePostSelectionListener(selectionListener);\r
disposed = true;\r
}\r
-\r
- private Composite getBaseComposite() {\r
- return this.baseComposite;\r
- }\r
-\r
}\r
canvas = new EditorCanvas(editor);\r
frame.add(canvas);\r
\r
- getFrameComposite().getDisplay().asyncExec(new Runnable() { \r
+ frameComposite.getDisplay().asyncExec(new Runnable() { \r
@Override\r
public void run() {\r
setFocus();\r
final ArrayList<Resource> resources = new ArrayList<Resource>(selection.size());\r
for(IElement element : selection)\r
resources.add(mapping.inverseGet(element));\r
- getFrameComposite().getDisplay().asyncExec(new Runnable() {\r
+ frameComposite.getDisplay().asyncExec(new Runnable() {\r
\r
@Override\r
public void run() {\r
- if(!getFrameComposite().isDisposed())\r
+ if(!frameComposite.isDisposed())\r
selectionProvider.setSelection(new StructuredSelection(resources));\r
}\r
\r
\r
@Override\r
public void setFocus() { \r
- Composite c = getFrameComposite();\r
- if(c != null && !c.isDisposed()) {\r
- getFrameComposite().setFocus();\r
+ if(frameComposite != null && !frameComposite.isDisposed()) {\r
+ frameComposite.setFocus();\r
if(canvas!=null)\r
canvas.requestFocus();\r
}\r
}\r
return super.getAdapter(adapter);\r
}\r
-\r
- private Composite getFrameComposite() {\r
- return this.frameComposite;\r
- }\r
-\r
}\r