opening a viewer on an EditPart? [message #16885] |
Fri, 16 August 2002 16:41  |
Eclipse User |
|
|
|
Originally posted by: mfrose.caredatasystems.com
Okay, I'm considering the next step in my project, and realized I'm not sure
of the best way to approach it.
What I want to have happen is to be able to double-click on an EditPart, or
perhaps pop up a menu and choose "Edit", and bring up a specialized
graphical editor specifically for details relating to (but too complex to be
drawn inside) that part. The question is, how to best go about that:
- A seperate EditorPart? Most of the EditorParts I've seen so far
correspond directly to something that appears in the Packages view, while
this one would have no such corresponding object. If this is the way to go,
where can I look for tips on how to programmatically open an EditorPart?
- Another EditPart to simply overlay in the current EditorPart? Perhaps the
existing EditorPart needs to become a tabbed view, with the "Edit" action
creating a new tab. I don't suppose there are any examples of adding and
removing MultiPageEditorPart pages on the fly anywhere...
- An independent Shell? ... No, that's a dumb idea, I don't want subwindows
getting lost underneath the main window.
Any suggestions? I get the feeling #2 is the Proper Course.
Martin Rose
Care Data Systems
|
|
|
Re: opening a viewer on an EditPart? [message #16970 is a reply to message #16885] |
Sun, 18 August 2002 23:29  |
Eclipse User |
|
|
|
Originally posted by: hudsonr.spam.com
I don't think a modal dialog is such a bad idea. It really depends on how
much information they are exposing on the double-click, and for how long
they need to work with it.
I hate MultiPage editors. It's a terrible UI. Tabs get created in some
random order based on when the user double-clicks on a node.
One other way to do this would be as you suggest another "EditPart", which
exposes the inside. You could present this EditPart in several ways. You
could create a new Viewer and place it on to of (as a sibling to) the
original viewer. The user would have to finish working on, and then go back
to the main viewer.
The other possibility is you could expand the item in-place. This could be
done a million ways, depending on your goal. You could rearrange the
original EditPart's figure, and reveal its children based on some state, or
float some new EditPart and figure on top of the diagram in some other
Layer.
"Martin Rose" <mfrose@caredatasystems.com> wrote in message
news:ajjnku$7kj$1@rogue.oti.com...
> Okay, I'm considering the next step in my project, and realized I'm not
sure
> of the best way to approach it.
>
> What I want to have happen is to be able to double-click on an EditPart,
or
> perhaps pop up a menu and choose "Edit", and bring up a specialized
> graphical editor specifically for details relating to (but too complex to
be
> drawn inside) that part. The question is, how to best go about that:
>
> - A seperate EditorPart? Most of the EditorParts I've seen so far
> correspond directly to something that appears in the Packages view, while
> this one would have no such corresponding object. If this is the way to
go,
> where can I look for tips on how to programmatically open an EditorPart?
>
> - Another EditPart to simply overlay in the current EditorPart? Perhaps
the
> existing EditorPart needs to become a tabbed view, with the "Edit" action
> creating a new tab. I don't suppose there are any examples of adding and
> removing MultiPageEditorPart pages on the fly anywhere...
>
> - An independent Shell? ... No, that's a dumb idea, I don't want
subwindows
> getting lost underneath the main window.
>
> Any suggestions? I get the feeling #2 is the Proper Course.
>
> Martin Rose
> Care Data Systems
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08725 seconds