Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Reopen Editor
Reopen Editor [message #302645] Wed, 26 April 2006 06:41 Go to next message
Eclipse UserFriend
Originally posted by: chris.lenz.infpro.com

Hello,
I have the need to close and reopen the editor.
so I have in my editor the following code

public void closeAndOpen() {

close(true);

final FileEditorInput file = new FileEditorInput(((IFileEditorInput)
getEditorInput()).getFile());

try {

getSite().getPage().openEditor(file,"com.cbrflow.ve.mpe.CBRFlowMultiPageEditor ");

} catch (PartInitException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

but this only closes the editor.

Thanx Chris
Re: Reopen Editor [message #302675 is a reply to message #302645] Thu, 27 April 2006 07:16 Go to previous message
Eclipse UserFriend
Are there any errors in your error log? Window>Show View>Error Log or
<workspace>/.metadata/.log

Does it matter if you get your editor input before you try and close the
editor?


Why are you closing and opening your editor? Why not just update the
editor input (or not, in your case) and reset your editor model/composite?


Later,
PW
Previous Topic:dynamic extensions in Eclipse 3.2
Next Topic:Figuring out what plugin contributes what UI element
Goto Forum:
  


Current Time: Wed Jul 23 04:38:30 EDT 2025

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

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

Back to the top