Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [geclipse-dev] [Bug 179927] Consider: how do obtain properties fromcore model?

Hi Mariusz,

IGridElement already implements the IAdaptable interface - this mechanism could be used here.
Mathias will contact you about that soon.

Markus


-----Original Message-----
From: geclipse-dev-bounces@xxxxxxxxxxx on behalf of Mariusz Wojtysiak
Sent: Thu 3/29/2007 10:43
To: geclipse-dev@xxxxxxxxxxx
Subject: [geclipse-dev] [Bug 179927] Consider: how do obtain properties fromcore model?
 
Hello!

Together we Mathias we considered about solution for obtaining 
properties from core model.

We think that the best solution is to implement:
a) in eu.geclipse.ui.properties
- classes like JobPropertySource, GridConnectionPropertySource etc, 
which return IProperty[] objects for every type implementing IGridElement

b) in classes implementing IGridElement for every property add standard 
methods: getXXX() (e.g. getId(), getUri(), getDescription() )


advantages of this solution:
+ properties are separated from core. So we avoid dependencies between 
core and ui (properties use class 
org.eclipse.ui.views.properties.IPropertyDescriptor)

+ added methods: getXXX() are general and can be used also in other places

+ for every class implementing IGridElement we have one class in 
eu.geclipse.ui.properties: XXXPropertySource, which maps between 
property and IGridElement
So, properties for given IGridElement are defined in one place, and are 
easy expandable


If somebody has any comments, please post it here.

Regards,
-- 
Mariusz Wojtysiak
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev

<<winmail.dat>>


Back to the top