Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Papyrus/Papyrus Developer Guide/How to - Add your own editor in Papyrus"

(Documentation on HyperLinkShell)
 
 
(2 intermediate revisions by 2 users not shown)
Line 29: Line 29:
 
*position : the position of the tab
 
*position : the position of the tab
 
*tabId : an id for the tab
 
*tabId : an id for the tab
 +
 +
[[Category:Papyrus]]

Latest revision as of 05:09, 26 January 2018

How to - Create your own editor

Cooming soon

How to - Contribute to the HyperLinkShell (Work in progress)

Here, Editor Kind refers to Diagram, Table, or others and not to Class Diagram, Activity Diagram, ...

Currently, the HyperLinkShell contains 3 tabs, which are creating using the following extension points :

  • org.eclipse.papyrus.infra.hyperlink.registration
  • org.eclipse.papyrus.infra.hyperlink.editor.registration
  • org.eclipse.papyrus.infra.hyperlink.tab.registration

org.eclipse.papyrus.infra.hyperlink.registration

This extension point allows to register an helper to create a new tab in the dialog. This extension point needs 3 parameters :

  • helper : a sub-class of org.eclipse.papyrus.infra.hyperlink.helper.AbstractHyperLinkHelper, which allows to build the new tab.
  • position : the position of the tab
  • tabId : an id for the tab

org.eclipse.papyrus.infra.hyperlink.editor.registration

This extension point allows to contribute to the Editors Tab. This extension point needs 1 parameter :

  • helper : a sub-class of org.eclipse.papyrus.infra.hyperlink.helper.AbstractHyperLinkEditorHelper, which allows to manage your own editor kind in the dialog

org.eclipse.papyrus.infra.hyperlink.tab.registration

This extension point allows to register your own tab. This extension point needs 3 parameters :

  • tab : a sub-class of org.eclipse.papyrus.infra.hyperlink.ui.AbstractHyperLinkTab,
  • position : the position of the tab
  • tabId : an id for the tab

Copyright © Eclipse Foundation, Inc. All Rights Reserved.