Skip to main content



      Home
Home » Eclipse Projects » Mylyn » Wikitext question
Wikitext question [message #926700] Fri, 28 September 2012 18:37 Go to next message
Eclipse UserFriend
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 02:44 Go to previous messageGo to next message
Eclipse UserFriend
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 12:21 Go to previous message
Eclipse UserFriend
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: Tue Jun 24 16:47:10 EDT 2025

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

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

Back to the top