embedding Mylyn WikiText MarkupViewer [message #889961] |
Wed, 20 June 2012 12:12 |
Tarun Telang Messages: 2 Registered: July 2009 |
Junior Member |
|
|
Hello,
I went through the Mylyn Wiki Text Developer guide, but unable to achieve the following:
I want to embed Markup Viewer with Content Assist & Cheat Sheets with editing enabled for Textile Language in one our views extending ViewPart.
We are using the following code but we are seeing nothing more than a text editor
public void createPartControl(Composite parent) {
markupViewer = new MarkupViewer(parent, null, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);
markupViewer.setMarkupLanguage(new TextileLanguage());
MarkupViewerConfiguration configuration = new MarkupViewerConfiguration(markupViewer);
markupViewer.configure(configuration);
markupViewer.getTextWidget().setEditable(true);
}
Please advise how can I achieve this.
Best Regards,
Tarun
[Updated on: Wed, 20 June 2012 12:15] Report message to a moderator
|
|
|
Re: MarkupViewer [message #895581 is a reply to message #889961] |
Fri, 13 July 2012 16:51 |
David Green Messages: 136 Registered: July 2009 |
Senior Member |
|
|
Tarun,
Your code sample looks good, and is following the example from the
developer guide[1]. There is a very simple test application in the
tests bundle that you can use as an example:
org.eclipse.mylyn.wikitext.textile.core.Main
You should be getting a text editor that is configured for wiki editing
(you should get content-assist, wiki formatting etc.) What were you
expecting? Please file a bug if you think that something is not working
properly.
Regards,
David
[1]
http://help.eclipse.org/juno/topic/org.eclipse.mylyn.wikitext.help.ui/help/devguide/WikiText-and-the-UI.html?cp=31_3_2
On 6/20/2012 5:12 AM, Tarun Telang wrote:
> Hi,
>
> I went through the Mylyn Wiki Text Developer guide, but unable to
> achieve the following:
> * Embedding a Markup Viewer with Content Assist & Cheat Sheet with
> editing enabled for Textile Language in one our views extending ViewPart.
>
> We are using the following code but we are seeing nothing more than a
> text editor
> public void createPartControl(Composite parent) {
> markupViewer = new MarkupViewer(parent, null, SWT.BORDER
> | SWT.WRAP | SWT.V_SCROLL);
> markupViewer.setMarkupLanguage(new TextileLanguage());
> MarkupViewerConfiguration configuration = new
> MarkupViewerConfiguration(markupViewer);
> markupViewer.configure(configuration);
> markupViewer.getTextWidget().setEditable(true);
> }
>
> Please advise how do we achieve this.
>
> Best Regards,
> Tarun
|
|
|
Powered by
FUDForum. Page generated in 0.02029 seconds