Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Propsheet for two elements
Propsheet for two elements [message #422515] Mon, 08 September 2008 10:44 Go to next message
Stanislav is currently offline StanislavFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,
When I have selected two or more elements in my model the propsheet is
empty. I want it to show the attributes of these two(or more) elements.
Thanks in advance!
Re: Propsheet for two elements [message #422518 is a reply to message #422515] Mon, 08 September 2008 12:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010500090208010003060705
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Stanislav,

By default this ItemPropertyDescriptor method always returns false:

public boolean isCompatibleWith(Object object, Object anotherObject,
IItemPropertyDescriptor anotherItemPropertyDescriptor)

In this bugzilla we're looking at supporting another GenFeature property
to mark properties that should support multi-selection.
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=217280>

https://bugs.eclipse.org/bugs/show_bug.cgi?id=217280

The problem is that each property value is set separately and there
appears to be no mechanism that would allow me to create a single
compound command that would allow undo to undo all the multiple changes
at once...


Stanislav wrote:
> Hi,
> When I have selected two or more elements in my model the propsheet is
> empty. I want it to show the attributes of these two(or more) elements.
> Thanks in advance!
>

--------------010500090208010003060705
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stanislav,<br>
<br>
By default this ItemPropertyDescriptor method always returns false:<br>
<br>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Propsheet for two elements [message #422520 is a reply to message #422518] Mon, 08 September 2008 12:24 Go to previous messageGo to next message
Stanislav is currently offline StanislavFriend
Messages: 11
Registered: July 2009
Junior Member
Ed,
Thanks for the answer. That was what i needed to know.
Re: Propsheet for two elements [message #422521 is a reply to message #422518] Mon, 08 September 2008 12:28 Go to previous messageGo to next message
Stanislav is currently offline StanislavFriend
Messages: 11
Registered: July 2009
Junior Member
Ed,
Is there a way to show not only the matching attributes between the
selected elements but also the other?
Re: Propsheet for two elements [message #422522 is a reply to message #422521] Mon, 08 September 2008 12:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Stanislav,

I'm not sure I understand. The whole multiple selection thing works
poorly in my opinion. I.e., if you select two things with different
values, what's displayed? Maybe that's what you're asking. I'm not sure
how it is even possible to control what's displayed given the the
property descriptor itself doesn't know ithat t's being used in a
multiple selection context (as far as I've been able to figure out).


Stanislav wrote:
> Ed, Is there a way to show not only the matching attributes between
> the selected elements but also the other?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Propsheet for two elements [message #422523 is a reply to message #422522] Mon, 08 September 2008 12:45 Go to previous messageGo to next message
Stanislav is currently offline StanislavFriend
Messages: 11
Registered: July 2009
Junior Member
Ed,

Comments below.

Ed Merks wrote:

> Stanislav,

> I'm not sure I understand. The whole multiple selection thing works
> poorly in my opinion. I.e., if you select two things with different
> values, what's displayed? Maybe that's what you're asking.
Not really! I am not confused of what will be shown for the same attribute
(with different values) of two selected elements.I've seen that it is not
working very well. I need to show in properties view the attributes of
these elements which are different(element A has attribute int x; element
B has attribute string y; when I select these two elements there is
nothing displayed in the properties view but I need to display(and edit of
course)x and y attributes.
> I'm not sure
> how it is even possible to control what's displayed given the the
> property descriptor itself doesn't know ithat t's being used in a
> multiple selection context (as far as I've been able to figure out).


> Stanislav wrote:
>> Ed, Is there a way to show not only the matching attributes between
>> the selected elements but also the other?
>>
Re: Propsheet for two elements [message #422524 is a reply to message #422523] Mon, 08 September 2008 12:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Stanislav,

That's not the way the properties view works though. It only shows the
attributes that are in common (that are compatible). I'm not sure
there's anything you can do about that short of taking over the whole
properties view and reimplementing most of the logic...


Stanislav wrote:
> Ed,
>
> Comments below.
>
> Ed Merks wrote:
>
>> Stanislav,
>
>> I'm not sure I understand. The whole multiple selection thing works
>> poorly in my opinion. I.e., if you select two things with different
>> values, what's displayed? Maybe that's what you're asking.
> Not really! I am not confused of what will be shown for the same
> attribute (with different values) of two selected elements.I've seen
> that it is not working very well. I need to show in properties view
> the attributes of these elements which are different(element A has
> attribute int x; element B has attribute string y; when I select these
> two elements there is nothing displayed in the properties view but I
> need to display(and edit of course)x and y attributes.
>> I'm not sure how it is even possible to control what's displayed
>> given the the property descriptor itself doesn't know ithat t's being
>> used in a multiple selection context (as far as I've been able to
>> figure out).
>
>
>> Stanislav wrote:
>>> Ed, Is there a way to show not only the matching attributes between
>>> the selected elements but also the other?
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Re: How to get Element Content rather than Attribute
Next Topic:Impossible to load UML model via Java code
Goto Forum:
  


Current Time: Fri Apr 26 12:39:05 GMT 2024

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

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

Back to the top