Refreh triggering stylesFilter
Oxygen general issues.
-
- Posts: 51
- Joined: Mon Oct 01, 2012 3:05 pm
Refreh triggering stylesFilter
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
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH
Senior Solution Architect
KGU-Consulting GmbH
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refreh triggering stylesFilter
Hi Stefan,
Does the StylesFilter provide the means to resolve the image?
Could you try two things?
1) Call the refresh API a little bit later using Display.getDefault().asyncExec
2) Also call this code:
before calling the refresh API.
Regards,
Radu
Does the StylesFilter provide the means to resolve the image?
Could you try two things?
1) Call the refresh API a little bit later using Display.getDefault().asyncExec
2) Also call this code:
Code: Select all
ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().clearImageCache();
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 51
- Joined: Mon Oct 01, 2012 3:05 pm
Re: Refresh triggering stylesFilter
Hi Radu,
thanx very much for your quick answer!!
Your advise 2) calling the clearImageCache() works fine and triggers the reload of my images.
My call to to the refresh is already late enough so i just had to call the clearImageCache before.
We use the stylesfilter to retrieve the graphics absolute path.
Best Regards,
Stefan
thanx very much for your quick answer!!
Your advise 2) calling the clearImageCache() works fine and triggers the reload of my images.
My call to to the refresh is already late enough so i just had to call the clearImageCache before.
We use the stylesfilter to retrieve the graphics absolute path.
Best Regards,
Stefan
Stefan Nöbauer
Senior Solution Architect
KGU-Consulting GmbH
Senior Solution Architect
KGU-Consulting GmbH
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service