Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » The overwrited method setFocus nerver be called, why? a bug?
The overwrited method setFocus nerver be called, why? a bug? [message #9896] Tue, 08 August 2006 13:15 Go to next message
Eclipse UserFriend
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();
}

}
Re: The overwrited method setFocus nerver be called, why? a bug? [message #9919 is a reply to message #9896] Tue, 08 August 2006 13:23 Go to previous message
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

Oh, I tried it again by restart my eclipse, and it works ok... I am too
slipshod.
Sorry to cancel this news.
"dzh" <dzhpingbo@sohu.com> д
Previous Topic:Rendering a tree based model
Next Topic:Add parent element while adding child
Goto Forum:
  


Current Time: Sun Oct 06 11:16:48 GMT 2024

Powered by FUDForum. Page generated in 0.02924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top