Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Open Web Page Designer(org.eclipse.jst.pagedesigner.PageDesignerEditor) in RCP app
Open Web Page Designer(org.eclipse.jst.pagedesigner.PageDesignerEditor) in RCP app [message #875824] Wed, 23 May 2012 07:45 Go to next message
Slawek L is currently offline Slawek L
Messages: 21
Registered: May 2012
Junior Member
Hello, I would like to create RCP application. Application should create/edit html pages and xml files. I made draft app, it means few view, menu and text editor. And now i found problem. How can I open Web Page Editor (org.eclipse.jst.pagedesigner.PageDesignerEditor) in my own RCP application? I have checkouted this plugin as eclipse project and add in plugin.xml dependency. I added in plugin.xml/extensions org.eclipse.ui.editor, create new editor (id and class same like in org.eclipse.jst.pagedesigner) and Open File from Command, and when call IWorkbenchPage.pageEditor(IEditorInput,editorID),where editorId is the same like above, eclipse shows org.eclipse.ui.PartInitException: Text editor does not have a document provider
Is my attempt generally correct?If not how use one plugin in other?(especially Web Page Editor)
Re: Open Web Page Designer(org.eclipse.jst.pagedesigner.PageDesignerEditor) in RCP app [message #876309 is a reply to message #875824] Thu, 24 May 2012 06:56 Go to previous message
Slawek L is currently offline Slawek L
Messages: 21
Registered: May 2012
Junior Member
Ok, I found what was wrong. First parameter in IWorkbenchPage.pageEditor(IEditorInput,editorID) i put PathEditorInput, my stupid mistake.
Previous Topic:js editor templates - custom variable doesn't resolve
Next Topic:is using html tags in upper case bad
Goto Forum:
  


Current Time: Tue Sep 02 02:49:46 EDT 2014

Powered by FUDForum. Page generated in 0.12535 seconds