EEF Can´t display the property view [message #503642] |
Tue, 15 December 2009 02:17  |
Eclipse User |
|
|
|
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.PropertiesEditionSection"
id="model.model.section.Diagram">
<input
type="model.Diagram">
</input>
</propertySection>
<propertySection
tab="Base"
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
id="model.model.section.Element">
<input
type="model.Element">
</input>
</propertySection>
<propertySection
tab="Base"
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
id="model.model.section.Rectangle">
<input
type="model.Rectangle">
</input>
</propertySection>
<propertySection
tab="Base"
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
id="model.model.section.Ellipse">
<input
type="model.Ellipse">
</input>
</propertySection>
<propertySection
tab="Base"
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
id="model.model.section.ElementEvents">
<input
type="model.ElementEvents">
</input>
</propertySection>
<propertySection
tab="Base"
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
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 #505665 is a reply to message #504098] |
Mon, 04 January 2010 05:27  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040204020309050607030900
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hi Thomas,
What you ask is new types of widgets ( like text, textarea, ... ).
you can open a new request on bugzilla, or create your own widget.
the last solution is a bit complicated by now, because you have to
creates specific templates for generating your code to link the color
widget to EEF. don't hesitates to ask questions here.
Thomas a écrit :
> I have some more Questions about the prop page.
> I have a List of color attributes and i want to make the attributes
> editable with eef. how can i make color "Objects?" and is it possible to
> make an nearly "ColorCellEditor" in eef too?
--------------040204020309050607030900
Content-Type: text/x-vcard; charset=utf-8;
name="stephane_bouchet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="stephane_bouchet.vcf"
YmVnaW46dmNhcmQNCmZuO3F1b3RlZC1wcmludGFibGU6U3Q9QzM9QTlwaGFu ZSBCb3VjaGV0
DQpuO3F1b3RlZC1wcmludGFibGU6Qm91Y2hldDtTdD1DMz1BOXBoYW5lDQpv cmc6T2Jlbw0K
YWRyO3F1b3RlZC1wcmludGFibGU6Ozs7UmV6PUMzPUE5Ozs0NDQwMDtGcmFu Y2UNCmVtYWls
O2ludGVybmV0OnN0ZXBoYW5lLmJvdWNoZXRAb2Jlby5mcg0KeC1tb3ppbGxh LWh0bWw6RkFM
U0UNCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------040204020309050607030900--
|
|
|
Re: EEF Can´t display the property view [message #621924 is a reply to message #503715] |
Tue, 15 December 2009 21:23  |
Eclipse User |
|
|
|
i have debugged my code and i come to this section
String selectionContributorId = newContributor.getContributorId();
// test.prop.eef.diagram equals test.prop.eef.diagram
if (selectionContributorId.equals(currentContributorId)) {
/**
* selection has the same contributor id as current, so leave
* existing registry.
*/
return;
}
so my contributorID is the same, but my propertypage will not display.
some more hints?
|
|
|
Re: EEF Can´t display the property view [message #621926 is a reply to message #621924] |
Wed, 16 December 2009 03:54  |
Eclipse User |
|
|
|
Hi,
Have you defined the provider extension points
"org.eclipse.emf.eef.runtime.PropertiesEditionProvider",
"org.eclipse.emf.eef.runtime.PropertiesEditionPolicyProvider " and
"org.eclipse.emf.eef.runtime.PropertiesEditionPartProvider" ?
Nathalie.
Thomas a écrit :
> i have debugged my code and i come to this section
>
>
> String selectionContributorId = newContributor.getContributorId();
> // test.prop.eef.diagram equals test.prop.eef.diagram
> if (selectionContributorId.equals(currentContributorId)) {
> /**
> * selection has the same contributor id as current, so leave
> * existing registry.
> */
> return;
> }
>
> so my contributorID is the same, but my propertypage will not display.
> some more hints?
|
|
|
Re: EEF Can´t display the property view [message #621928 is a reply to message #503882] |
Wed, 16 December 2009 04:12  |
Eclipse User |
|
|
|
yes in my
test.prop.eef project
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="http://model/1.0"
class="model.ModelPackage"
genModel="model/model.genmodel"/>
</extension>
<!-- EEF extensions -->
<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionProvider ">
<PropertiesEditionComponentProvider
providerClass="model.providers.ModelPackagePropertiesEditionProvider ">
</PropertiesEditionComponentProvider>
</extension>
<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionPolicyProvider ">
<PropertiesEditionPolicyProvider
providerClass="model.providers.ModelPackagePropertiesEditionPolicyProvider ">
</PropertiesEditionPolicyProvider>
</extension>
<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionPartProvider ">
<PropertiesEditionPartProvider
providerClass="model.providers.ModelPropertiesEditionPartProvider ">
</PropertiesEditionPartProvider>
</extension>
</plugin>
I only have to add the extension points here, right?
thanks
|
|
|
Re: EEF Can´t display the property view [message #621930 is a reply to message #503887] |
Wed, 16 December 2009 04:37  |
Eclipse User |
|
|
|
Where do you generate the EEF code ? Maybe this generation is not loaded
or not accessible... Is the project containing the EEF generation loaded ?
Nathalie.
Thomas a écrit :
> yes in my
> test.prop.eef project
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
>
> <!--
> <copyright>
> </copyright>
>
> $Id$
> -->
>
> <plugin>
>
> <extension point="org.eclipse.emf.ecore.generated_package">
> <package
> uri="http://model/1.0"
> class="model.ModelPackage"
> genModel="model/model.genmodel"/>
> </extension>
> <!-- EEF extensions -->
> <extension
> point="org.eclipse.emf.eef.runtime.PropertiesEditionProvider ">
> <PropertiesEditionComponentProvider
>
> providerClass="model.providers.ModelPackagePropertiesEditionProvider ">
> </PropertiesEditionComponentProvider>
> </extension>
> <extension
>
> point="org.eclipse.emf.eef.runtime.PropertiesEditionPolicyProvider ">
> <PropertiesEditionPolicyProvider
>
> providerClass="model.providers.ModelPackagePropertiesEditionPolicyProvider ">
>
> </PropertiesEditionPolicyProvider>
> </extension>
> <extension
> point="org.eclipse.emf.eef.runtime.PropertiesEditionPartProvider ">
> <PropertiesEditionPartProvider
>
> providerClass="model.providers.ModelPropertiesEditionPartProvider ">
> </PropertiesEditionPartProvider>
> </extension>
> </plugin>
>
> I only have to add the extension points here, right?
>
> thanks
|
|
|
Re: EEF Can´t display the property view [message #621931 is a reply to message #503893] |
Wed, 16 December 2009 00:16  |
Eclipse User |
|
|
|
my project folders
test.prop.eef
+src (src-folder)
+src-gen (src-folder for eef)
How can i check, that my project is loading the eef generation? but i guess that it will be loaded.
I am sorry that i am new, but i want to do my project with eef.
Thanks
|
|
|
Re: EEF Can´t display the property view [message #621932 is a reply to message #621931] |
Wed, 16 December 2009 05:44  |
Eclipse User |
|
|
|
No problem for the questions, newsgroup is here for that !
It seems that your project is loaded.
Can you check if the "src-gen" folder for EEF generation is present in
the build.properties of your test.prop.eef project (in the "source" part) ?
Nathalie.
Thomas a écrit :
> my project folders
>
> test.prop.eef
> +src (src-folder)
> +src-gen (src-folder for eef)
>
> How can i check, that my project is loading the eef generation? but i
> guess that it will be loaded. I am sorry that i am new, but i want to do
> my project with eef.
> Thanks
|
|
|
Re: EEF Can´t display the property view [message #621933 is a reply to message #503904] |
Wed, 16 December 2009 01:14  |
Eclipse User |
|
|
|
Oh this was meant, of course it is added. i think my problem is, the red colored entries of the plugin.xml in .diagram plugin
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="base.model.section.Diagram">
<input
type="model.Diagram">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="base.model.section.Element">
<input
type="model.Element">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="base.model.section.Rectangle">
<input
type="model.Rectangle">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="base.model.section.Ellipse">
<input
type="model.Ellipse">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="base.model.section.ElementEvents">
<input
type="model.ElementEvents">
</input>
</propertySection>
<propertySection
tab="Base"
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
id="base.model.section.Line">
<input
type="model.Line">
</input>
</propertySection>
</propertySections>
There is a warning at every class Attribute Referenced class 'org.eclipse.emf.eef.runtime.ui.properties.sections.Properti esEditionSection' in attribute 'class' is not on the plug-in classpath
What is about this class. is it a factoryclass to create this propertysections?
Thanks
|
|
|
Re: EEF Can´t display the property view [message #621936 is a reply to message #621933] |
Wed, 16 December 2009 08:04  |
Eclipse User |
|
|
|
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.
|
|
|
Re: EEF Can´t display the property view [message #621937 is a reply to message #621933] |
Wed, 16 December 2009 08:04  |
Eclipse User |
|
|
|
You have to add a dependency on "org.eclipse.emf.eef.runtime" to access
to the PropertiesEdtionSection class.
Nathalie.
Thomas a écrit :
> Oh this was meant, of course it is added. i think my problem is, the red
> colored entries of the plugin.xml in .diagram plugin
>
>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="base.model.section.Diagram">
> <input
> type="model.Diagram">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="base.model.section.Element">
> <input
> type="model.Element">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="base.model.section.Rectangle">
> <input
> type="model.Rectangle">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="base.model.section.Ellipse">
> <input
> type="model.Ellipse">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="base.model.section.ElementEvents">
> <input
> type="model.ElementEvents">
> </input>
> </propertySection>
> <propertySection
> tab="Base"
>
> class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
>
> id="base.model.section.Line">
> <input
> type="model.Line">
> </input>
> </propertySection>
> </propertySections>
>
>
> There is a warning at every class Attribute Referenced class
> 'org.eclipse.emf.eef.runtime.ui.properties.sections.Properti
> esEditionSection' in attribute 'class' is not on the plug-in classpath
>
> What is about this class. is it a factoryclass to create this
> propertysections?
> Thanks
>
|
|
|
Re: EEF Can´t display the property view [message #621939 is a reply to message #503922] |
Wed, 16 December 2009 23:10  |
Eclipse User |
|
|
|
I have some more Questions about the prop page.
I have a List of color attributes and i want to make the attributes editable with eef. how can i make color "Objects?" and is it possible to make an nearly "ColorCellEditor" in eef too?
|
|
|
Re: EEF Can´t display the property view [message #621952 is a reply to message #621939] |
Mon, 04 January 2010 05:27  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040204020309050607030900
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Hi Thomas,
What you ask is new types of widgets ( like text, textarea, ... ).
you can open a new request on bugzilla, or create your own widget.
the last solution is a bit complicated by now, because you have to
creates specific templates for generating your code to link the color
widget to EEF. don't hesitates to ask questions here.
Thomas a écrit :
> I have some more Questions about the prop page.
> I have a List of color attributes and i want to make the attributes
> editable with eef. how can i make color "Objects?" and is it possible to
> make an nearly "ColorCellEditor" in eef too?
--------------040204020309050607030900
Content-Type: text/x-vcard; charset=utf-8;
name="stephane_bouchet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="stephane_bouchet.vcf"
YmVnaW46dmNhcmQNCmZuO3F1b3RlZC1wcmludGFibGU6U3Q9QzM9QTlwaGFu ZSBCb3VjaGV0
DQpuO3F1b3RlZC1wcmludGFibGU6Qm91Y2hldDtTdD1DMz1BOXBoYW5lDQpv cmc6T2Jlbw0K
YWRyO3F1b3RlZC1wcmludGFibGU6Ozs7UmV6PUMzPUE5Ozs0NDQwMDtGcmFu Y2UNCmVtYWls
O2ludGVybmV0OnN0ZXBoYW5lLmJvdWNoZXRAb2Jlby5mcg0KeC1tb3ppbGxh LWh0bWw6RkFM
U0UNCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------040204020309050607030900--
|
|
|
Powered by
FUDForum. Page generated in 0.08213 seconds