Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Help - dynamic properties
Help - dynamic properties [message #30652] Fri, 25 August 2006 10:09 Go to next message
Eclipse UserFriend
Originally posted by: senthil.periasamy.flextronicssoftware.com

(Can i have dynamic properties for my palatte element)

Take the MindMap Example in this we have palatte element called 'Topic'
and it has properties called

1.Comments
2.Duration
3.EndDate

suppose if i want to have comments and duration properties should be
enabled by default and enddate property should disabled by default

and i want Enddate should be enabled only if i have my comments property
has specific value let me put more clearly

suppose "comments" property can have two values true or false

if i make "comments" as true then only the EndDate property should be
enabled if

"comments" is false then the EndDate property should be disabled





(Can I have collection properties for my palatte element
Can I have collection of collection properties for my palatte elemen)

Take the MindMap Example in this we have palatte element called 'Topic'

and it has properties called

1.Comments
2.Duration
3.EndDate

suppose if i want to have a new property called 'MyProperty' and type of
the property should be some kind of collection like it can arraylist or
hashtable or some thing like that

and if we make the MyProperty as arraylist then it has 10 elements

MyProperty(0)
MyProperty(1)
MyProperty(2)
MyProperty(3)
MyProperty(4)

and MyProperty(0) should contain an another arraylist like
MyInternalProperty so that it can also have 10 elements



(How to make the GMF Editor as read only)

Again take the example of the Mindmap i have the MindMap Diagram and it
can be opened in the editor/Canvas for the editing

i want to open the same diagram in the editor/Canvas but it should be in
the read only mode and i should not able to able to edit the diagram and
save it.



I will post you more questions since i have lot of open issues in GMF.

Regards
Senthil
Re: Help - dynamic properties [message #31634 is a reply to message #30652] Mon, 28 August 2006 08:44 Go to previous message
Eclipse UserFriend
> (Can i have dynamic properties for my palatte element)
> (Can I have collection properties for my palatte element Can I have
> collection of collection properties for my palatte elemen)

Try IPropertySource and IPropertiesProvider.


> (How to make the GMF Editor as read only)
Try searching archives of eclipse.technology.gmf (sic!) newsgroup (the old
newsgroup for GMF), this topic was already discussed.

Artem

"Senthil" <senthil.periasamy@flextronicssoftware.com> wrote in message
news:6c7dd78650bf7930c6c52e625acaad51$1@www.eclipse.org...
> (Can i have dynamic properties for my palatte element)
>
> Take the MindMap Example in this we have palatte element called 'Topic'
> and it has properties called
> 1.Comments
> 2.Duration
> 3.EndDate
>
> suppose if i want to have comments and duration properties should be
> enabled by default and enddate property should disabled by default
>
> and i want Enddate should be enabled only if i have my comments property
> has specific value let me put more clearly
> suppose "comments" property can have two values true or false
> if i make "comments" as true then only the EndDate property should be
> enabled if
> "comments" is false then the EndDate property should be disabled
>
>
>
>
>
> (Can I have collection properties for my palatte element Can I have
> collection of collection properties for my palatte elemen)
>
> Take the MindMap Example in this we have palatte element called 'Topic'
>
> and it has properties called
> 1.Comments
> 2.Duration
> 3.EndDate
>
> suppose if i want to have a new property called 'MyProperty' and type of
> the property should be some kind of collection like it can arraylist or
> hashtable or some thing like that
>
> and if we make the MyProperty as arraylist then it has 10 elements
>
> MyProperty(0)
> MyProperty(1)
> MyProperty(2)
> MyProperty(3)
> MyProperty(4)
>
> and MyProperty(0) should contain an another arraylist like
> MyInternalProperty so that it can also have 10 elements
>
>
>
> (How to make the GMF Editor as read only)
>
> Again take the example of the Mindmap i have the MindMap Diagram and it
> can be opened in the editor/Canvas for the editing
>
> i want to open the same diagram in the editor/Canvas but it should be in
> the read only mode and i should not able to able to edit the diagram and
> save it.
>
>
>
> I will post you more questions since i have lot of open issues in GMF.
>
> Regards
> Senthil
>
>
Previous Topic:Executing Junit test case created by GMF for Diagram
Next Topic:Fixed point note
Goto Forum:
  


Current Time: Mon Nov 03 23:49:26 EST 2025

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

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

Back to the top