Refreh triggering stylesFilter
Posted: Mon Oct 01, 2012 3:56 pm
Hallo,
I am using the Oxygen Eclipse Plugin and I am trying to refresh the editoPage after downloading a graphic from my CMS.
My usecase is following:
If I use the F5 shortcut everything works fine but not with the refresh method of the editorPage.
Am I doing something wrong?
Best Regards
Stefan
I am using the Oxygen Eclipse Plugin and I am trying to refresh the editoPage after downloading a graphic from my CMS.
My usecase is following:
- I queried a graphic publicID from my CMS (without real content).
- I dragged the Graphic Item into the Oxygen Editor Page and added the Image tag with the publicID of the image.
- I download the Image on Drop
If I use the F5 shortcut everything works fine but not with the refresh method of the editorPage.
Code: Select all
IEditorPart activeEditor = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage()
.getActiveEditor();
if (activeEditor instanceof WSEditor) {
WSEditor editor = (WSEditor) activeEditor;
WSEditorPage editorPage = editor.getCurrentPage();
if (editorPage instanceof WSAuthorEditorPage) {
WSAuthorEditorPage authorEditorPage = (WSAuthorEditorPage) editorPage;
authorEditorPage.refresh();
}
}
Best Regards
Stefan