2012-03-17 9 views
1

私はEclipse RCPアプリケーションでWYSIWYG HTMLエディタを提供するために使用できるEclipseプラグインを探しています。eclipse rcpのための単純なWYSIWYG HTML editpart?

私はこの質問を入力するために使用しているエディタと同様の機能を備えた何かが十分であるとは思えません。

What is the best HTML editor for Eclipse?への回答に基づいて、Web Tools Platformプロジェクトによって提供されるものがあります。Web Page Editor。しかし、ビューの中で使うためにクラス名を理解できませんでした。

小さなコード例を使用すると特に便利です。

答えて

0
Quick tutorial: 
In eclipise: 
-import project from cvs, host: dev.eclipse.org, repository path:/cvsroot/webtools, user:anonymous, connection type:pserver 
-click next, find and choose plugin org.eclipse.jst.pagedesigner and import it to your workspace 
-create Hello RCP 
-in plugin.xml tab extension add new: org.eclipse.ui.editor 
-in this extension point add new element, editor and set: id- no matter what, but remember it for future (e.g. "editorId"), extensions: xml,html,xhtml class:org.eclipse.jst.pagedesigner.editors.HTMLEditor, contributorClass: org.eclipse.jst.pagedesigner.editors.actions.PageDesignerActionBarContributor2, default: false. 
-Now you have to open a file, "transform" to IEditorInput 
-call method IWorkbenchPage.openEditor(iEditorInput,"editorId") 
Should work!