Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Facing issue in using extension org.eclipse.ui.editors(Facing issue in using extension org.eclipse.ui.editors)
Facing issue in using extension org.eclipse.ui.editors [message #1814117] Wed, 04 September 2019 07:31 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018
Member
Hii

I have used extension to create my own editor.
I have used id as: org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID
Contributor class:org.eclipse.sirius.diagram.ui.part.SiriusDiagramActionBarContributor
matching strategy : org.eclipse.sirius.diagram.ui.part.SiriusMatchingStrategy

Still the control is not coming to my class
I have written editor class as below

public class AvinEditor extends DDiagramEditorImpl{
boolean fHasFlyoutPalette = true;

@Override
protected int getInitialDockLocation() {

return PositionConstants.WEST;
}
}
my plugin.xml

<extension
point="org.eclipse.ui.editors">
<editor
class="com.avinsystems.swc.explorer.view.AvinEditor"
contributorClass="org.eclipse.sirius.diagram.ui.part.SiriusDiagramActionBarContributor"
default="true"
extensions="ddiagram"
icon="icons/DDiagram.gif"
id="org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID"
matchingStrategy="org.eclipse.sirius.diagram.ui.part.SiriusMatchingStrategy"
name="AVINEditor">
</editor>

</extension>

Below is my Manifest.mf

org.eclipse.sirius.table.ui,
org.eclipse.sirius.diagram.ui,
org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.8.0",
org.eclipse.gmf.runtime.diagram.ui.resources.editor;bundle-version="1.7.0",
org.eclipse.gmf.runtime.diagram.ui.providers.ide;bundle-version="1.7.0",
org.eclipse.sirius.ui,
org.eclipse.sirius.common.ui,
org.eclipse.sirius.ecore.extender;bundle-version="6.1.2"


Please help me what iam doing wrong
Re: Facing issue in using extension org.eclipse.ui.editors [message #1814325 is a reply to message #1814117] Mon, 09 September 2019 13:49 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 463
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Sharmila,

I am not sure that you can provide an editor with the same editorID than Sirius.

EcoreTools used to provide a some kind of specific editor, it is now disabled (the declaration is commented in the plugin.xml, https://github.com/eclipse/ecoretools/blob/master/org.eclipse.emf.ecoretools.design.ui/plugin.xml), but you might take a look or try to reenable it.

See editor, matching strategy and contributor in https://github.com/eclipse/ecoretools/tree/master/org.eclipse.emf.ecoretools.design.ui/src/org/eclipse/emf/ecoretools/design/ui/editor

Entry point to the repo: https://github.com/eclipse/ecoretools

Regards,

Maxime


Maxime Porhel - Obeo

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

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
http://www.siriuscon.org/
Previous Topic:Update decorators through service method
Next Topic:Is there any extension to add popup menu in palette
Goto Forum:
  


Current Time: Sun Oct 13 20:01:36 GMT 2019

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

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

Back to the top