Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Wikitext question
Wikitext question [message #926700] Fri, 28 September 2012 22:37 Go to next message
Fabio Mancinelli is currently offline Fabio MancinelliFriend
Messages: 8
Registered: August 2012
Junior Member
Hi everybody,

I am banging the head against this so I will ask to the experts for advice.

What I would like to accomplish is quite simple: open a wikitext editor
on some data that comes from the network and that is stored, let's say,
in a custom object.

Using
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(...,
"org.eclipse.mylyn.wikitext.ui.editor.markupEditor"); doesn't seem a
good idea beacuse apparently it accepts only FileEditorInput inputs.

WikitextSourceEditor seems and AFAIU, I should extend it, setting a
custom document provider that will create documents from my custom
objects, register it in plugin.xml and call it with openEditor.

Could you please tell me if this is correct or if I am missing anything?

Are there examples about applications using Wikitext on custom
not-necessarily-file-stored data?

Thanks,
Fabio
Re: Wikitext question [message #929027 is a reply to message #926700] Mon, 01 October 2012 06:44 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 124
Registered: November 2010
Senior Member
I do not know how it works, but what you are describing is what Mylyn does in the Task Editor. To my mind the "New Comment" editor uses WikiText.

Maybe you can have a look there.
Re: Wikitext question [message #987131 is a reply to message #926700] Fri, 23 November 2012 17:21 Go to previous message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
WikiTextSourceEditor is what you're looking for if you'd like to open an
editor using an IEditorInput. You should extend it and register your
class using the Eclipse org.eclipse.ui.editors extension point.
Unfortunately there are no examples of its use.

If you're interested in embedding a wikitext source editor somewhere
(ie: not using an IEditorInput) then you should have a look at
org.eclipse.mylyn.wikitext.tasks.ui.editor.MarkupTaskEditorExtension
which does this for the Mylyn task editor.

David

On 9/28/2012 3:37 PM, Fabio Mancinelli wrote:
> Hi everybody,
>
> I am banging the head against this so I will ask to the experts for advice.
>
> What I would like to accomplish is quite simple: open a wikitext editor
> on some data that comes from the network and that is stored, let's say,
> in a custom object.
>
> Using
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(...,
> "org.eclipse.mylyn.wikitext.ui.editor.markupEditor"); doesn't seem a
> good idea beacuse apparently it accepts only FileEditorInput inputs.
>
> WikitextSourceEditor seems and AFAIU, I should extend it, setting a
> custom document provider that will create documents from my custom
> objects, register it in plugin.xml and call it with openEditor.
>
> Could you please tell me if this is correct or if I am missing anything?
>
> Are there examples about applications using Wikitext on custom
> not-necessarily-file-stored data?
>
> Thanks,
> Fabio
>
Previous Topic:Mylyn 3.8.2?
Next Topic:Initialization of task failed.
Goto Forum:
  


Current Time: Fri Apr 19 11:43:57 GMT 2024

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

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

Back to the top