Skip to main content



      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 01:34 Go to next message
Eclipse UserFriend
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 07:54 Go to previous message
Eclipse UserFriend
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: Mon Mar 24 10:09:26 EDT 2025

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

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

Back to the top