Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » The editpart match problem between different two editors after editor reloading
The editpart match problem between different two editors after editor reloading [message #187011] Fri, 08 July 2005 03:15
Eclipse UserFriend
Originally posted by: penzhan8451.yahoo.com

Dear all:

While i startup two editors, the mapping of relative editpart works
fine.

But after i reload one editor, the mapping of editpart doesn't work. (for

example, i select a editpart in one editor, the editpart in another editor

will be selected in normally, but now it doesn't work).

Below is my code in the method reload() :


===============================================

public void reload() {

setEditorContent(IniFile);
initializeGraphicalViewer();
initializePaletteViewer();
popupMenuProvider = new MyPopupMenuProvider(this,
this.getGraphicalViewer());
getGraphicalViewer().setContextMenu(getPopupMenuProvider());
getSite().registerContextMenu(
"CHAE", //$NON-NLS-1$
getPopupMenuProvider(), getSite().getSelectionProvider());
if(outlinePage != null ){
try{
((OutlinePage) getOutlinePage ()).initializeOutlineViewer();

((OutlinePage) getOutlinePage()).configureOutlineViewer();

}catch(Exception e){
e.printStackTrace();
}
}

}

============================================================ =======

Any suggestion or solutions, i will be appreciate.



Thanks & best regards.
Previous Topic:a way to restrict the size of Labels?
Next Topic:Problems with images
Goto Forum:
  


Current Time: Thu Dec 26 15:32:25 GMT 2024

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

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

Back to the top