Disabling (greying out) an entry in the "Properties" view [message #421717] |
Tue, 12 August 2008 12:21 |
Eclipse User |
|
|
|
Originally posted by: jagica.runbox.com
Hello
I am puzzled about how to disable/enable one entry in the EMF generated
"Properties" view, based changing the value of another entry in the same
property view.
As the set/unset methods don't perform implicitly the enabling/disabling,
maybe I am missing some switch in the genmodel?
Any help is very welcome.
Regards,
Jaga
|
|
|
Re: Disabling (greying out) an entry in the "Properties" view [message #421719 is a reply to message #421717] |
Tue, 12 August 2008 12:46 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------060709000508010600030701
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Jaga,
Comments below.
Jaga wrote:
> Hello
>
> I am puzzled about how to disable/enable one entry in the EMF generated
> "Properties" view, based changing the value of another entry in the same
> property view.
>
An item property descriptor has this:
/**
* This determines whether this descriptor's property for the
object supports set (and reset).
*/
public boolean canSetProperty(Object object)
{
if (isSettable)
{
So you could write code that computes and sets isSettable before calling
this method.
> As the set/unset methods don't perform implicitly the enabling/disabling,
> maybe I am missing some switch in the genmodel?
>
> Any help is very welcome.
>
> Regards,
> Jaga
>
>
>
>
--------------060709000508010600030701
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jaga,<br>
<br>
Comments below.<br>
<br>
Jaga wrote:
<blockquote cite="mid:g7rv91$i72$1@build.eclipse.org" type="cite">
<pre wrap="">Hello
I am puzzled about how to disable/enable one entry in the EMF generated
"Properties" view, based changing the value of another entry in the same
property view.
</pre>
</blockquote>
An item property descriptor has this:<br>
<blockquote> /**<br>
* This determines whether this descriptor's property for the object
supports set (and reset).<br>
*/<br>
public boolean canSetProperty(Object object)<br>
{<br>
if (isSettable)<br>
{<br>
</blockquote>
So you could write code that computes and sets isSettable before
calling this method.<br>
<br>
<blockquote cite="mid:g7rv91$i72$1@build.eclipse.org" type="cite">
<pre wrap="">
As the set/unset methods don't perform implicitly the enabling/disabling,
maybe I am missing some switch in the genmodel?
Any help is very welcome.
Regards,
Jaga
</pre>
</blockquote>
</body>
</html>
--------------060709000508010600030701--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.85862 seconds