[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.technology.gmf] Re: Problem with properties

Hi bob,

I followed a similar path and also had issues integrating the HockeyLeague example with my GMF editors. It would be extremely useful to have a GMF-based example showing how to use tabbed properties, maybe modifying an existing GMF example.

I've found that the generated GMF editors already contain much of the properties logic needed: see packages under org.eclipse.gmf.runtime.diagram.ui.properties.

For your property contributor you can use:

<propertyContributor typeMapper="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ModelElementTypeMapper"
contributorId="yourID"
labelProvider="org.eclipse.gmf.runtime.common.ui.services.util.CommonLabelProvider">


For your text property sections, you can try to use org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractBasicTextPropertySection as the base class instead of the ones provided in the HockeyLeague example.

Thanks,

--
Jerome Louvel
http://www.noelios.com