Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Editor - not based on resource
Editor - not based on resource [message #295503] Thu, 01 December 2005 06:05 Go to next message
Eclipse UserFriend
Originally posted by: jujuwie.hotmail.com

I want to show a datastructure in an editor which is not based on a single
resource. The datastructure is the result of merging several files.

How can I implement an editor that is not based on a resource?

My former editor which is based on one file extends the FormEditor.

Thanks,

Judith
Re: Editor - not based on resource [message #295510 is a reply to message #295503] Thu, 01 December 2005 07:42 Go to previous message
Eclipse UserFriend
Judith wrote:
> I want to show a datastructure in an editor which is not based on a
> single resource. The datastructure is the result of merging several files.
>
> How can I implement an editor that is not based on a resource?

You can use an action to open your editor with something like:

window.getActivePage().openEditor(editorInput, MyFormEditor.ID);

For your editor input, you can create a special one that holds the in
memory datastructure that you need.

As long as your input implements IEditorInput, it should open fine.
I've even opened editors using an anonymous IEditorInput class, ex:

window.getActivePage().openEditor(new IEditorInput() {
//... all the methods that need to be implemented
}, MyEditor.ID);

Later,
PW
Previous Topic:Re-Install Eclipse on Linux
Next Topic:How to read conf.xml in my plugin from another plugin
Goto Forum:
  


Current Time: Thu Jul 17 01:51:57 EDT 2025

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

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

Back to the top