Skip to main content



      Home
Home » Eclipse Projects » GEF » property sheet on multi selection
property sheet on multi selection [message #115397] Tue, 03 February 2004 12:26 Go to next message
Eclipse UserFriend
Originally posted by: rschaefermeier.gmx.de

I am currently building a graphical editor using GEF. My model classes all
implement the IPropertySource interface, and I observed the following
behavior:

- If one edit part is selected in the editor, the appropriate properties
show up in the property sheet view, as expected.

- If I select multiple edit parts that correspond to model objects of the
same type, the properties of the first selected part are displayed (which
is fine with me, too).

- When I select edit parts of different types, the property sheet view
displays nothing.

I'd prefer if the property sheet always displayed the properties of the
model belonging to the first selected edit part, no matter of what types
the other selected parts are. Can someone give me a hint on where the
decision about which model's properties are displayed takes place?

Thanks a lot!

Regards, Ralph
Re: property sheet on multi selection [message #115495 is a reply to message #115397] Tue, 03 February 2004 14:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is done in PropertySheetEntry, an internal implemenation of the public
interface. Is it really common for users to select multiple object, but
only want to edit the properties of the first?

"Ralph Schaefermeier" <rschaefermeier@gmx.de> wrote in message
news:bvolkq$86r$1@eclipse.org...
> I am currently building a graphical editor using GEF. My model classes all
> implement the IPropertySource interface, and I observed the following
> behavior:
>
> - If one edit part is selected in the editor, the appropriate properties
> show up in the property sheet view, as expected.
>
> - If I select multiple edit parts that correspond to model objects of the
> same type, the properties of the first selected part are displayed (which
> is fine with me, too).
>
> - When I select edit parts of different types, the property sheet view
> displays nothing.
>
> I'd prefer if the property sheet always displayed the properties of the
> model belonging to the first selected edit part, no matter of what types
> the other selected parts are. Can someone give me a hint on where the
> decision about which model's properties are displayed takes place?
>
> Thanks a lot!
>
> Regards, Ralph
>
Re: property sheet on multi selection [message #115508 is a reply to message #115495] Tue, 03 February 2004 15:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rschaefermeier.gmx.de

Thank you for your quick reply.

> This is done in PropertySheetEntry, an internal implemenation of the public
> interface.

So, no luck here, I guess.

> Is it really common for users to select multiple object, but
> only want to edit the properties of the first?

You are right: in general, this is not what a user would expect. The
reason why I would like it to behave that way is the following: The editor
I am developing is an ER diagram editor. If the user selects a foreign key
edit part, I want the correspondent relationship (connection) part to be
highlighted aswell (programmatically), so that the user can see at a
glance which entity the foreign key comes from. I still want the selected
foreign key to appear in the property sheet, because this is what the user
selected.

Is it possible to highlight the connection's figure (a PolylineConnection)
without selecting it? I mean, to make the figure appear as if it was
selected without actually setting it's state to selected? I tried
requestFocus() in Figure, but the doc does not reveal too much about what
this method's for, and it did not do what I want anyway.


> "Ralph Schaefermeier" <rschaefermeier@gmx.de> wrote in message
> news:bvolkq$86r$1@eclipse.org...
> > I am currently building a graphical editor using GEF. My model classes all
> > implement the IPropertySource interface, and I observed the following
> > behavior:
> >
> > - If one edit part is selected in the editor, the appropriate properties
> > show up in the property sheet view, as expected.
> >
> > - If I select multiple edit parts that correspond to model objects of the
> > same type, the properties of the first selected part are displayed (which
> > is fine with me, too).
> >
> > - When I select edit parts of different types, the property sheet view
> > displays nothing.
> >
> > I'd prefer if the property sheet always displayed the properties of the
> > model belonging to the first selected edit part, no matter of what types
> > the other selected parts are. Can someone give me a hint on where the
> > decision about which model's properties are displayed takes place?
> >
> > Thanks a lot!
> >
> > Regards, Ralph
> >
Re: property sheet on multi selection [message #115623 is a reply to message #115508] Wed, 04 February 2004 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If you just want to highlight the connections, you could forward an
arbitrary request type to the connections when the key is selected. In
other words:

For each key:
key.showSourceFeedback(new Request("KeySelected")); or something

-randy

"Ralph Schaefermeier" <rschaefermeier@gmx.de> wrote in message
news:bvp00a$l3d$1@eclipse.org...
> Thank you for your quick reply.
>
> > This is done in PropertySheetEntry, an internal implemenation of the
public
> > interface.
>
> So, no luck here, I guess.
>
> > Is it really common for users to select multiple object, but
> > only want to edit the properties of the first?
>
> You are right: in general, this is not what a user would expect. The
> reason why I would like it to behave that way is the following: The editor
> I am developing is an ER diagram editor. If the user selects a foreign key
> edit part, I want the correspondent relationship (connection) part to be
> highlighted aswell (programmatically), so that the user can see at a
> glance which entity the foreign key comes from. I still want the selected
> foreign key to appear in the property sheet, because this is what the user
> selected.
>
> Is it possible to highlight the connection's figure (a PolylineConnection)
> without selecting it? I mean, to make the figure appear as if it was
> selected without actually setting it's state to selected? I tried
> requestFocus() in Figure, but the doc does not reveal too much about what
> this method's for, and it did not do what I want anyway.
>
>
> > "Ralph Schaefermeier" <rschaefermeier@gmx.de> wrote in message
> > news:bvolkq$86r$1@eclipse.org...
> > > I am currently building a graphical editor using GEF. My model classes
all
> > > implement the IPropertySource interface, and I observed the following
> > > behavior:
> > >
> > > - If one edit part is selected in the editor, the appropriate
properties
> > > show up in the property sheet view, as expected.
> > >
> > > - If I select multiple edit parts that correspond to model objects of
the
> > > same type, the properties of the first selected part are displayed
(which
> > > is fine with me, too).
> > >
> > > - When I select edit parts of different types, the property sheet view
> > > displays nothing.
> > >
> > > I'd prefer if the property sheet always displayed the properties of
the
> > > model belonging to the first selected edit part, no matter of what
types
> > > the other selected parts are. Can someone give me a hint on where the
> > > decision about which model's properties are displayed takes place?
> > >
> > > Thanks a lot!
> > >
> > > Regards, Ralph
> > >
>
>
Re: property sheet on multi selection [message #115878 is a reply to message #115623] Thu, 05 February 2004 05:42 Go to previous message
Eclipse UserFriend
Originally posted by: rschaefermeier.gmx.de

> If you just want to highlight the connections, you could forward an
> arbitrary request type to the connections when the key is selected. In
> other words:

> For each key:
> key.showSourceFeedback(new Request("KeySelected")); or something


This works great. Thank you!
Previous Topic:Selection handles in different place to their figure?!
Next Topic:Supporting REDO &UNDO in graphic editor
Goto Forum:
  


Current Time: Tue May 06 19:41:18 EDT 2025

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

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

Back to the top