Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » embedding Mylyn WikiText MarkupViewer
embedding Mylyn WikiText MarkupViewer [message #889961] Wed, 20 June 2012 12:12 Go to next message
Tarun Telang is currently offline 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 Go to previous message
David Green is currently offline David Green
Messages: 135
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
Previous Topic:"Failed to download project list: Premature end of file" error while creating a new JIRA Q
Next Topic:Generating toc in pdf via WikiText and xslfo and fop
Goto Forum:
  


Current Time: Thu Oct 23 05:12:32 GMT 2014

Powered by FUDForum. Page generated in 0.28822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software