|
|
Re: EEF Can´t display the property view [message #503863 is a reply to message #503715] |
Wed, 16 December 2009 02:23 |
Thomas Messages: 79 Registered: October 2009 |
Member |
|
|
i have debugged my code and i come to this section
String selectionContributorId = newContributor.getContributorId();
// test.prop.eef.diagram equals test.prop.eef.diagram its true
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.
My problem is, if i want debugg, i cant get access on
XXXPropertiesEditionProvider
XXXPropertiesEditionPolicyProvider
XXXPropertiesEditionPartProvider
classes and my propertypages will not use the createXXXPropertiesEditonProvider();
Are there some more hints?
[Updated on: Wed, 16 December 2009 02:48] Report message to a moderator
|
|
|
|
|
|
|
|
Re: EEF Can´t display the property view [message #503908 is a reply to message #503904] |
Wed, 16 December 2009 06:14 |
Thomas Messages: 79 Registered: October 2009 |
Member |
|
|
Oh this was meant, of course it is added.
<propertySection
tab="Base"
[COLOR=orangered]class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"[/COLOR]
id="base.model.section.Diagram">
<input
type="model.Diagram">
</input>
</propertySection>
<propertySection
tab="Base"
[COLOR=orangered]class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"[/COLOR]
id="base.model.section.Element">
<input
type="model.Element">
</input>
</propertySection>
<propertySection
tab="Base"
[COLOR=orangered]class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"[/COLOR]
id="base.model.section.Rectangle">
<input
type="model.Rectangle">
</input>
</propertySection>
<propertySection
tab="Base"
[COLOR=orangered]class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"[/COLOR]
id="base.model.section.Ellipse">
<input
type="model.Ellipse">
</input>
</propertySection>
<propertySection
tab="Base"
[COLOR=orangered]class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"[/COLOR]
id="base.model.section.ElementEvents">
<input
type="model.ElementEvents">
</input>
</propertySection>
<propertySection
tab="Base"
[COLOR=orangered]class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"[/COLOR]
id="base.model.section.Line">
<input
type="model.Line">
</input>
</propertySection>
</propertySections>
What is about this class. is it a factoryclass to create this propertysections?
In
xxx.diagram.part there is a ModelDiagramEditor.java class, which contains the standart contributor id:
public class ModelDiagramEditor extends DiagramDocumentEditor {
/**
* @generated
*/
public static final String ID = "model.diagram.part.ModelDiagramEditorID"; //$NON-NLS-1$
.
.
.
Do i have to use the same contributor id in eefgen too?
If its better for you, i can write step-by-step instruction, what i do.
Thanks
[Updated on: Wed, 16 December 2009 11:34] Report message to a moderator
|
|
|
|
|
Re: EEF Can´t display the property view [message #503922 is a reply to message #503642] |
Wed, 16 December 2009 13:12 |
Thomas 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.ModelPackagePropertiesEditionPolicyProvider">
</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.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>
</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.
______________________________________
solved it
i added a filter like the old extension points and it worked, now i have some numberformatexceptions, but i think this will not the problem
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections">
<propertySections
contributorId="org.eclipse.test.prop.model.properties">
<propertySection
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
id="model.model.section.Diagram"
tab="Base">
</propertySection>
<propertySection
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
id="model.model.section.Element"
tab="Base">
<input
type="model.Element">
</input>
</propertySection>
<propertySection
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
id="model.model.section.Rectangle"
tab="Base">
<input
type="model.Rectangle">
</input>
</propertySection>
<propertySection
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
id="model.model.section.Ellipse"
tab="Base">
<input
type="model.Ellipse">
</input>
</propertySection>
<propertySection
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
id="model.model.section.ElementEvents"
tab="Base">
<input
type="model.ElementEvents">
</input>
</propertySection>
<propertySection
class="org.eclipse.emf.eef.runtime.ui.properties.sections.PropertiesEditionSection"
filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
id="model.model.section.Line"
tab="Base">
<input
type="model.Line">
</input>
</propertySection>
</propertySections>
</extension>
[Updated on: Wed, 16 December 2009 13:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07899 seconds