Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EEF Can´t display the property view
EEF Can´t display the property view [message #621906] Tue, 15 December 2009 07:17 Go to next message
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
hi i generated with eef my properties
http://wiki.eclipse.org/EEF_tutorial_:_First_generation
but my propview will not display. i think the problem is the contributor id, but in the tutorial the contributor id of the editor and the plugin.xml is also different.

EEF Generation in EMF treeview editor: MY STEPS

add dependency on my project test.prop.eef

add in this project the extension points of the providers

add in test.prop.eef.diagram the extension points of the tab props

implements in test.prop.eef.editor.myEditor ITabbedProp....

contributorID = "model.properties"

change method getPropertySheetPage()


test.prop.eef.diagram plugin.xml
<!-- Tabbed properties views extension -->
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
<propertyContributor
contributorId="EEFContributorID">
<propertyCategory
category="default">
</propertyCategory>
<propertyCategory
category="extended">
</propertyCategory>
<propertyCategory
category="advanced">
</propertyCategory>
</propertyContributor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
<propertyTabs
contributorId="EEFContributorID">
<propertyTab
label="Base"
category="default"
id="Base">
</propertyTab>
</propertyTabs>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections ">
<propertySections
contributorId="EEFContributorID">
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Diagram">
<input
type="model.Diagram">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Element">
<input
type="model.Element">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Rectangle">
<input
type="model.Rectangle">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Ellipse">
<input
type="model.Ellipse">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.ElementEvents">
<input
type="model.ElementEvents">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Line">
<input
type="model.Line">
</input>
</propertySection>
</propertySections>
</extension>

I hope this will help.
Thanks
Re: EEF Can´t display the property view [message #621913 is a reply to message #621906] Tue, 15 December 2009 13:21 Go to previous messageGo to next message
Nathalie Lepine is currently offline Nathalie LepineFriend
Messages: 28
Registered: July 2009
Junior Member
Hi Thomas,

I think that your contributor ID has to be the same in the editor and in
the plugin.xml.

Cheers,

Nathalie.

Thomas a écrit :
> hi i generated with eef my properties
> http://wiki.eclipse.org/EEF_tutorial_:_First_generation
> but my propview will not display. i think the problem is the contributor
> id, but in the tutorial the contributor id of the editor and the
> plugin.xml is also different.
>
> EEF Generation in EMF treeview editor: MY STEPS
>
> add dependency on my project test.prop.eef
>
> add in this project the extension points of the providers
>
> add in test.prop.eef.diagram the extension points of the tab props
>
> implements in test.prop.eef.editor.myEditor ITabbedProp....
>
> contributorID = "model.properties"
>
> change method getPropertySheetPage()
>
>
> test.prop.eef.diagram plugin.xml
> <!-- Tabbed properties views extension -->
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
> <propertyContributor
> contributorId="EEFContributorID">
> <propertyCategory
> category="default">
> </propertyCategory>
> <propertyCategory
> category="extended">
> </propertyCategory>
> <propertyCategory
> category="advanced">
> </propertyCategory>
> </propertyContributor>
> </extension>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
> <propertyTabs
> contributorId="EEFContributorID">
> <propertyTab
> label="Base"
> category="default"
> id="Base">
> </propertyTab>
> </propertyTabs>
> </extension>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertySections ">
> <propertySections
> contributorId="EEFContributorID">
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="model.model.section.Diagram">
> <input
> type="model.Diagram">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="model.model.section.Element">
> <input
> type="model.Element">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="model.model.section.Rectangle">
> <input
> type="model.Rectangle">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="model.model.section.Ellipse">
> <input
> type="model.Ellipse">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="model.model.section.ElementEvents">
> <input
> type="model.ElementEvents">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="model.model.section.Line">
> <input
> type="model.Line">
> </input>
> </propertySection>
> </propertySections>
> </extension>
>
> I hope this will help.
> Thanks
Re: EEF Can´t display the property view [message #621938 is a reply to message #621906] Wed, 16 December 2009 13:12 Go to previous message
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
My Steps:

create new gmf Project org.eclipse.test.prop

model.ecore

generate genmodel
-> generate All

->Initialize EEF Model

eefgen
->/org.eclipse.test.prop/src (Generation)
->/org.eclipse.test.prop/src-gen (Test-Generation)

gen edition context
-> set basepackage to model
-> description contributorid to org.eclipse.test.prop.model.properties
-> hook gmf specific properties views

gen views repository
->base package model
->GENMODEL

EEF -> Generate EEF Architektur

This was the generation Section
__________________________________________________________
generated model_properties.plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<plugin>

<!-- EEF extensions -->
<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionProvider ">
<PropertiesEditionComponentProvider
providerClass="model.model.providers.ModelPackagePropertiesEditionProvider ">
</PropertiesEditionComponentProvider>
</extension>
<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionPolicyProvider ">
<PropertiesEditionPolicyProvider
providerClass=" model.model.providers.ModelPackagePropertiesEditionPolicyPro vider ">
</PropertiesEditionPolicyProvider>
</extension>

<!-- Tabbed properties views extension -->
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
<propertyContributor
contributorId="org.eclipse.test.prop.model.properties">
<propertyCategory
category="default">
</propertyCategory>
<propertyCategory
category="extended">
</propertyCategory>
<propertyCategory
category="advanced">
</propertyCategory>
</propertyContributor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
<propertyTabs
contributorId="org.eclipse.test.prop.model.properties">
<propertyTab
label="Base"
category="default"
id="Base">
</propertyTab>
</propertyTabs>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections ">
<propertySections
contributorId="org.eclipse.test.prop.model.properties">
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Diagram">
<input
type="model.Diagram">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Element">
<input
type="model.Element">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Rectangle">
<input
type="model.Rectangle">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Ellipse">
<input
type="model.Ellipse">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.ElementEvents">
<input
type="model.ElementEvents">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="model.model.section.Line">
<input
type="model.Line">
</input>
</propertySection>
</propertySections>
</extension>
</plugin>


I add the first two extensions to org.eclipse.test.prop-> plugin.xml
and add a 3rd

<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionPartProvider ">
<PropertiesEditionPartProvider
providerClass="model.providers.ModelPropertiesEditionPartProvider ">
</PropertiesEditionPartProvider>
</extension>

the other extensions are inserted in org.eclipse.test.prop.diagram -> plugin.xml

i remove the existing 3 prop.tab extension points and add the generated ones. (org.eclipse.ui.vies.propperties.tabbed. ....)

then i move to the project org.eclipse.test.prop.editor
-> implement ITabbedPropertyPage
-> change getPropertySheetPage like in the tutorial
-> change variable
-> set ContribotrId to org.eclipse.test.prop.model.properties

it does compile and run, but it won´t display the property page.
Previous Topic:[Announce] EMFT MWE 0.8.0M4 is available
Next Topic:[CDO] is it what I want ?
Goto Forum:
  


Current Time: Thu Apr 25 04:54:53 GMT 2024

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

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

Back to the top