Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Reload Eclipse Editor(Reloading of Editor in Eclipse plugin development is not showing workbench status bar)
Reload Eclipse Editor [message #1735543] Tue, 21 June 2016 05:34 Go to next message
chavi   is currently offline chavi Friend
Messages: 67
Registered: April 2011
I have a requirement to close/open an Editor. To open an Editor I am using page.closeEditor(..) and to open it again I am using page.openEditor(...) but page is not loading workbench status bar. Please provide your input.

IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
final int MATCH_BOTH = IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID;
part=page.openEditor(input, input.getEditorid(), true, MATCH_BOTH);
part = page.getActiveEditor();
page.closeEditor(part, true);
part = page.openEditor(input,"com.editors.OnlyJavaEditor", true, MATCH_BOTH);
Re: Reload Eclipse Editor [message #1741021 is a reply to message #1735543] Mon, 22 August 2016 11:54 Go to previous message
Mickael Istria - away until August 14th is currently offline Mickael Istria - away until August 14thFriend
Messages: 832
Registered: July 2009
Location: Grenoble, France
Senior Member

What's the relationship between the editor and the status bar. AFAIK, there is no reason to expect some editor to show status bar automatically.
As an alternative API, you could try IDE.openEditor (not sure it would help though).
Previous Topic:Opening .java files
Next Topic:Sharing/contributing a launch configuration in a plugin
Goto Forum:

Current Time: Tue Sep 25 22:56:33 GMT 2018

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

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

Back to the top