[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.technology.gmf] Problem with properties
|
Hi,
I've spent ages trying to implement my own properites for my generated
diagrams but I'm not getting anywhere. I've read the "Take control of your
properties" and "The Eclipse Tabbed Properties View" articles but I still
cant get even a simple property box to work with the message "Properties are
not available".
I've based most of what I've done on the HockeyLeague example and am just
trying to get the name of a node in my diagram to be displayed in the
property box.
I've added the propertyContributor, propertyTabs and propertySections to my
plugin.xml and have copied AbstractStringPropertySection,
AbstractTextPropertySection, HockeyleaguePropertySheetPage and
NamePropertySection, AbstractHockeyleaguePropertySection classes. I've
changed the following to conform with my own diagram:
NamePropertySection's getFeature method uses my own package instead of
HockeyleaguePackage.
In my editor file, it now implements ITabbedPropertySheetPageContributor and
I've added the methods getContibutorId() and getAdapter(Class) as the
article says.
I've only got one property section which uses the class NamePropertySection.
The input to the section has been set to a class in my model which extends
EObject and just has get and set methods for a name.
In the propertySheetPage, it has a method to get the AdapterFactory of the
editor. My editor doesent have an adapterfactory method. Im not entirely
sure what this actually does and if its got any relevance to the properties
not appearing.
Has anyone had any similar problems and know what to do to fix this?
Thanks in advance
Bob