Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Reload Eclipse Editor(Reloading of Editor in Eclipse plugin development is not showing workbench status bar)
Reload Eclipse Editor [message #1735063] Wed, 15 June 2016 07:20
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);

Previous Topic:Problem during product configuration
Next Topic:How to change the default folder icon to custom icon
Goto Forum:

Current Time: Mon Nov 12 18:22:30 GMT 2018

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

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

Back to the top