Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Disabling (greying out) an entry in the "Properties" view
Disabling (greying out) an entry in the "Properties" view [message #421717] Tue, 12 August 2008 12:21 Go to next message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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>&nbsp; /**<br>
&nbsp;&nbsp; * This determines whether this descriptor's property for the object
supports set (and reset).<br>
&nbsp;&nbsp; */<br>
&nbsp; public boolean canSetProperty(Object object)<br>
&nbsp; {<br>
&nbsp;&nbsp;&nbsp; if (isSettable)<br>
&nbsp;&nbsp;&nbsp; {<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/
Previous Topic:Generating code from my emf editor
Next Topic:SQL-like queries to EMF models
Goto Forum:
  


Current Time: Thu Apr 25 05:25:53 GMT 2024

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

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

Back to the top