Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Can a view and editor share the same space?
Can a view and editor share the same space? [message #299438] Thu, 16 February 2006 19:10 Go to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

I'm playing around with creating a new perspective. I want to respect the fact that someone may be opening up some sort of editor. I actually want something that looks not to different from the standard java perspective, but instead of the package explorer and the outside views, I'll have my own new views. But the space that is used for the editor I'd like to be able to use both editors and/or views. So I don't want to hide the editor, but most of the time I'm wanting to put a view in that space and not an editor.

For example, I'll have one view that lists some graphics. When someone double-clicks on that graphic I want it to open up into the middle of the screen in a Graphics View component. They won't be editing that graphic, just looking at it. The code is very simple when I write it as a view. I do want there to be potentially multiple graphics open in separate tabs, so that's a different issue I believe. But I'd like it to occupy the same space that a text file or an xml file is that's being edited.

Another example is one view will have a listing of all users on one of the sides. Then when the user is double-clicked in the list, I want it to open up a form that will be editable in the primary window. But that form is going to be tied to a database and not an actual file. I already have it working fine as a view (except the fact that view is located on the outskirts of the screen rather than the central editor area where I'd like it to be).

I haven't played around with the Editors yet, but my initial impression is that Views are easier to create. Also, most of the things I'm going to be doing are going to be interfacing with a database or a server rather than actual files. Also, nearly all of the views I want to show in the middle spot are views that I'll want to be able to have multiple instances open.

Any ideas would be appreciated.
Thanks,
Matthew
Re: Can a view and editor share the same space? [message #299468 is a reply to message #299438] Fri, 17 February 2006 09:50 Go to previous messageGo to next message
Eclipse UserFriend
AFAIK, there is no way to get a View to appear in the sacred Editor space. What I would do if I had
your requirements is to set the Editor area to "unseen" (there's some way to do that in a
perspective), and then define everything as a View (Views are allowed to change data). This will
have the defect that there will be no built-in Eclipse-provided way to "link" your "EditView" with
the files/resources, but probably you can roll your own version of that.

Just a thought. Good luck!

HTH,
Paul
Re: Can a view and editor share the same space? [message #299471 is a reply to message #299468] Fri, 17 February 2006 10:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

As another option you might want to file an enhancement request and tell
them why you think this is a good idea. If you do enough lobbying and
get enough votes you might see it in 3.3 or 4 of the platform. Although
I think it is very unlikely that you will be happy with this approach...

Regards
Stefan

Paul Keyser wrote:
> AFAIK, there is no way to get a View to appear in the sacred Editor
> space. What I would do if I had your requirements is to set the Editor
> area to "unseen" (there's some way to do that in a perspective), and
> then define everything as a View (Views are allowed to change data).
> This will have the defect that there will be no built-in
> Eclipse-provided way to "link" your "EditView" with the files/resources,
> but probably you can roll your own version of that.
>
> Just a thought. Good luck!
>
> HTH,
> Paul
Re: Can a view and editor share the same space? [message #299531 is a reply to message #299471] Mon, 20 February 2006 07:54 Go to previous messageGo to next message
Eclipse UserFriend
Stefan Langer wrote:
> As another option you might want to file an enhancement request and tell
> them why you think this is a good idea. If you do enough lobbying and
> get enough votes you might see it in 3.3 or 4 of the platform. Although
> I think it is very unlikely that you will be happy with this approach...

I would imagine there's already a bug open about this :-)


Using editors and view interchangably is a valid request. We were
looking at some kind of component framework to replace stuff in
org.eclipse.ui.workbench (that's where all of the trouble is).

Of course big change == high risk. There's a really big chance that
making the components interchangeable would remove some editor or view
specific behaviour that, while not specified directly in the docs, might
have been in place since 2.1 and would therefore break downstream clients.

It's doable, but that means the work to make it so has to provide a lot
of value.

Later,
PW
Re: Can a view and editor share the same space? [message #299557 is a reply to message #299438] Mon, 20 February 2006 10:50 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Thanks for the ideas. I'm still too new to eclipse plugin/rcp development to know whether or not it's a good idea to be able to have editors and views share that same space. As such I would feel uncomfortable suggesting a new feature request until I knew better as to why it is the way it is. I've read a bit more on the differences between views and editors and I think I've decided to just go ahead and rework a few of my views as editors. It appears that editors are meant to be the primary focal point on the screen (by some of the articles/books I've read). The editors seem easier than I thought they would be to write, so this doesn't seem as big of a deal as it did to me when I originally posted this topic.
Previous Topic:resources in rcp
Next Topic:Dynamically replacing rules in a RuleBasedScanner?
Goto Forum:
  


Current Time: Mon Jul 14 10:18:45 EDT 2025

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

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

Back to the top