The overwrited method setFocus nerver be called, why? a bug? [message #9896] |
Tue, 08 August 2006 13:15 |
Eclipse User |
|
|
|
Originally posted by: dzhpingbo.sohu.com
I overwrite setFocus method in ProcessDiagramEditor which is generated by
gmf, but it was never called when I switch the Editors.
As you know, In GEF, the method setFocus() can be called normally if I
overwrite it in myEditor which inherits from EditorPart class, I don't know
why it did not work in gmf? I tried it many times, is it a bug?
How can I be notified when I switch the Editors?
/**
* @generated
*/
public class ProcessDiagramEditor extends FileDiagramEditor implements
IGotoMarker {
@Override
public void setFocus() {
// TODO Auto-generated method stub
super.setFocus();
ProcessModelViewPart.getRootModel();
ProcessModelViewPart.myTreeViewer.refresh();
}
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.02375 seconds