Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Reusing an existing editor
Reusing an existing editor [message #276525] Wed, 24 November 2004 22:57 Go to next message
Eclipse UserFriend
Originally posted by: bvkiran.hotmail.com

How can I reuse an existing editor part instead of opening another one. I
want a pinned editor. I was thinking of locating the editor and changing
the editor input. But again IEditorPart has no way of refreshing. Here I
will be forced to cast it to my MyEditorPart and work with it. Looks
clumpsy if I have many editor types. Is there a better solution
Re: Reusing an existing editor [message #276610 is a reply to message #276525] Fri, 26 November 2004 11:08 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Hello BVK,

BVK schrieb:

> How can I reuse an existing editor part instead of opening another one.
> I want a pinned editor. I was thinking of locating the editor and
> changing the editor input. But again IEditorPart has no way of
> refreshing. Here I will be forced to cast it to my MyEditorPart and work
> with it. Looks clumpsy if I have many editor types. Is there a better
> solution

You can make your IEditorPart reusable by implementing the
IReusableEditor interface (which provides a setInput method).

HTH,

Daniel Krügler
Previous Topic:Add a new package by the code
Next Topic:classpath manifest
Goto Forum:
  


Current Time: Tue Jul 16 11:34:03 GMT 2024

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

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

Back to the top