Skip to main content



      Home
Home » Eclipse Projects » Sirius » Tree diagram with tabbed properties
Tree diagram with tabbed properties [message #1740005] Sun, 07 August 2016 17:51 Go to next message
Eclipse UserFriend
Hello
I successfully create tabbed property for regular sirius diagram. But for tree view tabbed property does not shows. Should i use another contributor?

For regular diagram I use
<propertyTabs contributorId="org.eclipse.sirius.diagram.ui">


Thanks
Arseniy Isakov
Re: Tree diagram with tabbed properties [message #1740015 is a reply to message #1740005] Mon, 08 August 2016 04:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Cause if this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=498973, I post again my response directly on the forum.

If you speak about EEF use with Sirius, the contributor id are not the same for other editor kinds:
* org.eclipse.sirius.table.ui.EditorID for table editor
* org.eclipse.sirius.tree.ui.EditorID for tree editor

See [1] for complete documentation about EEF integration.

Since Sirius 4.0, Sirius supports the definition of properties views with support for many features like complex styling, validation, context etc. Similar UI as EEF but integrated to Sirius. You can have a look at [2] for more detail.

Regards,

Laurent

[1] http://www.eclipse.org/sirius/doc/viewpoint-eef.html
[2] http://www.eclipse.org/sirius/doc/specifier/Properties_View_Description.html

Re: Tree diagram with tabbed properties [message #1740030 is a reply to message #1740015] Mon, 08 August 2016 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Have declared my property as following


<extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs" id="proptabstree">
<propertyTabs contributorId="org.eclipse.sirius.tree.ui.EditorID">
<propertyTab
category="domain"
id="tab.type.TypePointer.tree"
label="Type"/>
</propertyTabs>

</extension>

<extension point="org.eclipse.ui.views.properties.tabbed.propertySections">
<propertySections contributorId="org.eclipse.sirius.tree.ui.EditorID">
<propertySection
class="org.tura.metamodel.sirius.properties.selections.tree.impl.TypePropertySelection"
filter="org.tura.metamodel.sirius.properties.selections.filter.TypePointerSectionFilter"
id="type.TypePointer.tree"
tab="tab.type.TypePointer.tree">
</propertySection>
</propertySections>
</extension>

And I got following message in the console:

!ENTRY org.tura.metamodel.sirius.properties 4 3 2016-08-08 08:16:26.003
!MESSAGE Tab in org.tura.metamodel.sirius.properties declares non-existing category domain.

!ENTRY org.eclipse.ui.views.properties.tabbed 4 1 2016-08-08 08:16:26.008
!MESSAGE Section type.TypePointer.tree declares non-existing tab tab.type.TypePointer.tree.
Re: Tree diagram with tabbed properties [message #1740037 is a reply to message #1740030] Mon, 08 August 2016 09:04 Go to previous message
Eclipse UserFriend
Seems I have to use
category="default"

Strange it works for regular diagram
Previous Topic:Problem with target mapping in a simple diagram extension
Next Topic:Changing the edge mapping in a diagram extension
Goto Forum:
  


Current Time: Sat Mar 15 20:27:56 EDT 2025

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

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

Back to the top