Reload Eclipse Editor [message #1735543] |
Tue, 21 June 2016 01:34  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.08527 seconds