Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launching "Virtual" editors from a view
Launching "Virtual" editors from a view [message #147868] Wed, 22 October 2003 15:21 Go to next message
Eclipse UserFriend
Hello,

I have created a tree based view. I would like to double click on a
node and launch an editor that will retrieve it's input from a "virtual"
source. The problem is that I do not know how to launch the editor from
the double click event in the view. Any help would be greatly appreciated.

Marc Boorshtein
Octet String
Re: Launching "Virtual" editors from a view [message #148046 is a reply to message #147868] Thu, 23 October 2003 03:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Marc Boorshtein wrote:

> Hello,
>
> I have created a tree based view. I would like to double click on a
> node and launch an editor that will retrieve it's input from a
> "virtual" source. The problem is that I do not know how to launch the
> editor from the double click event in the view. Any help would be
> greatly appreciated.

When you register your editor in plugin.xml you can tell which files
(extensions) it can work on and whether it is the default editor (i.e.
used when opening files of that kind). This can be changed by the user
via Window > Preferences > Workbench > File Associations.

Dani

>
> Marc Boorshtein
> Octet String
>
Re: Launching "Virtual" editors from a view [message #148052 is a reply to message #147868] Thu, 23 October 2003 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Marc Boorshtein wrote:
> I have created a tree based view. I would like to double click on a
> node and launch an editor that will retrieve it's input from a "virtual"
> source. The problem is that I do not know how to launch the editor from
> the double click event in the view. Any help would be greatly appreciated.

Hi Marc,

You probably want to start by looking at IStorageEditorInput,
IEditorInput & IEditorPart - there's several threads on eclipse.tools
discussing their use, and there is sample code out there if you search
on the interfaces...

e.g. see:
news://news.eclipse.org:119/aesosd$hrh$1@rogue.oti.com
news://news.eclipse.org:119/a7q4p3$rb3$1@rogue.oti.com

HTH
rich
Re: Launching "Virtual" editors from a view [message #148430 is a reply to message #147868] Thu, 23 October 2003 09:53 Go to previous message
Eclipse UserFriend
I actually ended up implementing IFileInput. It works quite well for
what I need. THanks for the help!

Marc Boorshtein
Octet String
Marc Boorshtein wrote:

> Hello,
>
> I have created a tree based view. I would like to double click on a
> node and launch an editor that will retrieve it's input from a "virtual"
> source. The problem is that I do not know how to launch the editor from
> the double click event in the view. Any help would be greatly appreciated.
>
> Marc Boorshtein
> Octet String
>
Previous Topic:Managing platform specific classpath entries
Next Topic:classpath to properties files - nested libraries
Goto Forum:
  


Current Time: Thu Jul 17 23:31:58 EDT 2025

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

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

Back to the top