Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » [Properties view] Hide standard sections
[Properties view] Hide standard sections [message #1743597] Fri, 16 September 2016 17:51 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi all,

is the documented approach for hiding property sheet default sections still valid for the new approach in Sirius 4.0.1 ?

Following https://www.eclipse.org/sirius/doc/viewpoint-eef.html#HideSiriusbuiltinpropertysheetsectionsandthecorrespondingtabs I tried the following code:

   <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
      <propertyContributor
         contributorId="org.eclipse.sirius.diagram.ui"
         sectionDescriptorProvider="org.eclipse.sirius.eef.section.SiriusFilteringSectionDescriptor">
         <propertyCategory />
      </propertyContributor>
      <!--propertyContributor
         contributorId="org.eclipse.sirius.table.ui.EditorID"
         sectionDescriptorProvider="org.eclipse.sirius.eef.section.SiriusFilteringSectionDescriptor">
         <propertyCategory category="first" />
      </propertyContributor-->
   </extension>
   <extension point="org.eclipse.sirius.eef.adapters.sectionFilters">
      <propertyContributorFilters contributorId="org.eclipse.sirius.diagram.ui">
           <sectionFilter id="property.section.ConnectorAppearancePropertySection" />
           <sectionFilter id="property.section.ShapeColorAndFontPropertySection" />
           <sectionFilter id="property.section.DiagramColorsAndFontsPropertySection" />
           <sectionFilter id="property.section.DNodeListElementColorsAndFontsPropertySection" />
           <sectionFilter id="property.section.RulerGridPropertySection" />
           <sectionFilter id="property.section.behaviors" />
           <sectionFilter id="property.section.documentation" />
           <sectionFilter id="property.section.style" />
        </propertyContributorFilters>
    </extension>


But I still see all default sections. Any idea about that?
Re: [Properties view] Hide standard sections [message #1743644 is a reply to message #1743597] Sat, 17 September 2016 18:33 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
In the error log of my application the following error appeared: java.lang.ClassNotFoundException: org.eclipse.sirius.eef.section.SiriusFilteringSectionDescriptor cannot be found. The launch configuration has org.eclipse.sirius.eef.adapters activated though.
Re: [Properties view] Hide standard sections [message #1743835 is a reply to message #1743597] Tue, 20 September 2016 07:57 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Hi.

The org.eclipse.sirius.eef.adapters plug-in and the extension point you mention concern property tabs implemented using EEF 1.5 and before, when integrating with Sirius. It should still work fine with Sirius 4.0 (and the upcoming 4.1) if you are using EEF 1.5-based property views.

You mention "the new approach in Sirius 4.0.1", so I guess you're using the new ones, based on EEF 1.6+, which is a completely different code base than EEF 1.5 and earlier. The extension point org.eclipse.sirius.eef.adapters.sectionFilters is completely ignored by that. In Sirius 4.0.x there is no supported solution to hide tabs, but with the upcoming Sirius 4.1/EEF 1.7, EEF itself will provide an extension point to do this, see https://git.eclipse.org/r/#/c/77697/ for technical details.

Regards,
Pierre-Charles

--
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [Properties view] Hide standard sections [message #1751807 is a reply to message #1743835] Sat, 14 January 2017 12:42 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi Pierre-Charles,

sorry for the late response. The new extension points works like a charm!

Thanks,
Axel
Previous Topic:[Properties View] Errors in documentation when creating Advanced Custom Widget?
Next Topic:Replace DDiagramEditor content (reuse)
Goto Forum:
  


Current Time: Fri Apr 26 17:34:38 GMT 2024

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

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

Back to the top