The editpart match problem between different two editors after editor reloading [message #187011] |
Fri, 08 July 2005 03:15 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02646 seconds