Can a view and editor share the same space? [message #299438] |
Thu, 16 February 2006 19:10  |
Eclipse User |
|
|
|
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 #299557 is a reply to message #299438] |
Mon, 20 February 2006 10:50  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds