Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to create a new Papyrus UML diagram
How to create a new Papyrus UML diagram [message #986831] Wed, 21 November 2012 20:00 Go to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Hello!

I am trying to follow the tutorial "How to create a new Papyrus UML diagram"
http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/trunk/examples/others/org.eclipse.papyrus.example.diagram.simplediagram/docs/PapyrusDevelopperTutorial_OnDiagramCreating.odt

I ran my runtime application and imported three projects there as it was described in the tutorial, but in my application I do not have an option "Generate Papyrus Diagram" when I make right click on my gmafgen file.
I had this problem in Indigo version and now I have it in Juno version.

I found this topic:
http://www.eclipse.org/forums/index.php/mv/msg/203802/651588/#msg_651588
and I checked that my GMF plug-in is installed.

So, if anyone knows how to solve this problem, I would be really grateful! Thanks in advance.

Best regards!
Mary
Re: How to create a new Papyrus UML diagram [message #986885 is a reply to message #986831] Thu, 22 November 2012 09:15 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Sorry,
I found out what is wrong. Now I have "Generate Papyrus Diagram" option.
It was my fault. I imported the codegen and def projects directly from SVN repository to my runtime application. Instead of this I should have imported them to my workspace first. And then from my workspace to my runtime application.

But now I have another problem.
I imported the codegen and def projects from here
http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/branches/0.9.X/plugins/developer/
for JUNO

and from here
http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/branches/0.8.X/plugins/developer/
for Indigo

but after I choose "Generate Papyrus Diagram" option in both versions I receive the following Exception:
Problems while generating code
Exception (Unknown type ([papyrusgmfgenextension, EditPartUsingDeleteService]):in xpt::diagram::editpolicies::NodeItemSemanticEditPolicy, line 41) while generating code
Unknown type ([papyrusgmfgenextension, EditPartUsingDeleteService]):in xpt::diagram::editpolicies::NodeItemSemanticEditPolicy, line 41
...and a lot of other text

Can anyone tell me, what I am doing wrong?
Thanks in advance

Best regards
Re: How to create a new Papyrus UML diagram [message #986886 is a reply to message #986885] Thu, 22 November 2012 09:18 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hello Mary,

It seems you're still missing the plugin oep.gmfgenextension, which comes along with oep.def and oep.codegen


Regards,
Camille


Camille Letavernier
Re: How to create a new Papyrus UML diagram [message #986894 is a reply to message #986886] Thu, 22 November 2012 09:57 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Thank you!!)
I imported oep.gmfgenextension, but now I have another Exception Sad

Problems while generating code
Exception (Unrecognized variable: (containmentMetaFeature):in xpt::diagram::editpolicies::BaseItemSemanticEditPolicy, line 462) while generating code
Unrecognized variable: (containmentMetaFeature):in xpt::diagram::editpolicies::BaseItemSemanticEditPolicy, line 462

Best regards
Mary
Re: How to create a new Papyrus UML diagram [message #986972 is a reply to message #986894] Thu, 22 November 2012 16:01 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Does anyone know, how to solve this problem?
I now have this Exception both in Juno and in Indigo versions.

Re: How to create a new Papyrus UML diagram [message #987090 is a reply to message #986972] Fri, 23 November 2012 12:12 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Hello!

I did all the steps from the very beginning of the tutorial again and I don't have that exception anymore.

I am now trying to edit my plugin.xml file as it is mentioned in the tutorial.
I try to add the extensions to my plugin.xml and when I add the following extension:

<extension
point="org.eclipse.papyrus.core.papyrusDiagram">
<editorDiagram
actionBarContributorId="org.eclipse.papyrus.diagram.common.part.UMLDiagramActionBarContributor"
contextId="com.cea.papyrus.gmf.editor.context"
factoryClass="org.eclipse.papyrus.diagram.newdiagram.DiagramEditorFactory"
icon="icons/obj16/UMLDiagramFile.gif">
</editorDiagram>
<creationCommand
creationCommandClass="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
icon="icons/obj16/UMLDiagramFile.gif"
id="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
label="UML Tutorial Diagram"
language="uml">
</creationCommand>
</extension>


I receive an error that says that there is no extension point "org.eclipse.papyrus.core.papyrusDiagram".

I am using Eclipse Juno MT.

Can anybody tell me, please, what should be the extension point instead of "org.eclipse.papyrus.core.papyrusDiagram" in Juno version? Or, maybe, I am doing something wrong.

Thanks!
Best regards,
Mary
Re: How to create a new Papyrus UML diagram [message #987091 is a reply to message #987090] Fri, 23 November 2012 12:13 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hello Mary,

You should use org.eclipse.papyrus.infra.core.papyrusDiagram instead

Regards,
Camille


Camille Letavernier
Re: How to create a new Papyrus UML diagram [message #987095 is a reply to message #987091] Fri, 23 November 2012 12:49 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Thank you!)
Re: How to create a new Papyrus UML diagram [message #987121 is a reply to message #987095] Fri, 23 November 2012 15:53 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Sorry, I hope, it is my last question about the tutorial.

I am now in a new runtime workbench. When I try to create a new Papyrus project with my diagram I receive the following exception:

org.eclipse.papyrus.infra.core.extension.NotFoundException: No ActionBarContributor registered under id 'org.eclipse.papyrus.diagram.common.part.UMLDiagramActionBarContributor'.
at org.eclipse.papyrus.infra.core.multidiagram.actionbarcontributor.ActionBarContributorRegistry.getActionBarContributor(ActionBarContributorRegistry.java:78)
at org.eclipse.papyrus.infra.gmfdiag.common.GmfEditorFactory$GMFEditorModel.getActionBarContributor(GmfEditorFactory.java:172)
at org.eclipse.papyrus.infra.core.sasheditor.internal.EditorPart.createEditorActionBarContributor(EditorPart.java:413)
at org.eclipse.papyrus.infra.core.sasheditor.internal.EditorPart.createSite(EditorPart.java:387)
at org.eclipse.papyrus.infra.core.sasheditor.internal.EditorPart.createEditorPartControl(EditorPart.java:284)
at org.eclipse.papyrus.infra.core.sasheditor.internal.EditorPart.createPartControl(EditorPart.java:196)
at org.eclipse.papyrus.infra.core.sasheditor.internal.TabFolderPart.createChildPart(TabFolderPart.java:946)
at org.eclipse.papyrus.infra.core.sasheditor.internal.TabFolderPart.createTabItem(TabFolderPart.java:867)
at org.eclipse.papyrus.infra.core.sasheditor.internal.TabFolderPart.synchronize2(TabFolderPart.java:782)
at org.eclipse.papyrus.infra.core.sasheditor.internal.RootPart.synchronize2(RootPart.java:137)
at org.eclipse.papyrus.infra.core.sasheditor.internal.SashWindowsContainer.refreshTabsInternal(SashWindowsContainer.java:523)
at org.eclipse.papyrus.infra.core.sasheditor.internal.SashWindowsContainer.refreshTabs(SashWindowsContainer.java:476)
at org.eclipse.papyrus.infra.core.sasheditor.internal.SashWindowsContainer.createPartControl(SashWindowsContainer.java:193)
at org.eclipse.papyrus.infra.core.sasheditor.editor.AbstractMultiPageSashEditor.createPartControl(AbstractMultiPageSashEditor.java:130)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:95)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:839)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1114)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:579)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:558)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:532)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:521)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:983)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3079)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2931)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.openDiagram(CreateModelWizard.java:383)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.createAndOpenPapyrusModel(CreateModelWizard.java:181)
at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.performFinish(CreateModelWizard.java:156)
at org.eclipse.papyrus.uml.diagram.wizards.NewPapyrusProjectWizard.performFinish(NewPapyrusProjectWizard.java:114)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:500)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


After that I get the diagram and I can even draw components there but when I add a component I also receive exceptions.
And I still have an error in my plugin.xml (ONLY in Juno version, but not in Indigo)
When I add to the xml file the following (I took it from an official example):

<toolbar
id="org.eclipse.papyrus.diagram.ui.toolbar">
<command
commandId="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
icon="icons/obj16/UMLDiagramFile.gif"
label="Create a new Simple Diagram"
style="push"
tooltip="Create a new Simple Diagram">
<visibleWhen>
<reference
definitionId="org.eclipse.papyrus.diagram.common.IsPapyrusActiveWithUMLModel">
</reference>
</visibleWhen>
</command>
</toolbar>


I receive an error that says, that the identifier "org.eclipse.papyrus.diagram.common.IsPapyrusActiveWithUMLModel"
cannot be found

What should I do in order to get rid of the exceptions?

Thanks again)

Best regards,
Mary
Re: How to create a new Papyrus UML diagram [message #987123 is a reply to message #987121] Fri, 23 November 2012 15:58 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hello Mary,


Most Papyrus plug-in have been renamed in 0.9.0 (To have a consistent naming for our plug-ins). Extension points have been renamed accordingly (to match their plug-in names), as well as other IDs.

You should try to change "org.eclipse.papyrus.diagram.common.IsPapyrusActiveWithUMLModel" to "org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel"

Same thing for the exception: org.eclipse.papyrus.infra.core.extension.NotFoundException: No ActionBarContributor registered under id 'org.eclipse.papyrus.diagram.common.part.UMLDiagramActionBarContributor'.

The contributor ID is now "org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"


Regards,
Camille


Camille Letavernier
Re: How to create a new Papyrus UML diagram [message #987147 is a reply to message #987123] Fri, 23 November 2012 19:29 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Ok! Thank you!) I will try)
Re: How to create a new Papyrus UML diagram [message #987501 is a reply to message #987147] Mon, 26 November 2012 21:35 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Dear Camille!

I am still trying to complete the tutorial.
I still cannot avoid the "NotFoundException" mentioned before.
I am trying to follow the tutorial.
Could you, please, tell me, what should I change in order to set
The contributor ID = org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor

Thank you!)

Best regards,
Mary
Re: How to create a new Papyrus UML diagram [message #987506 is a reply to message #987501] Mon, 26 November 2012 22:18 Go to previous messageGo to next message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
I set
actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"
in my plugin.xml file, but I still receive an Exception.

Maybe, the reason is that in this part of plugin.xml file
<extension
point="org.eclipse.papyrus.infra.core.papyrusDiagram">
<editorDiagram
actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"
contextId="com.cea.papyrus.gmf.editor.context"
factoryClass="org.eclipse.papyrus.diagram.newdiagram2.DiagramEditorFactory"
icon="icons/obj16/UMLDiagramFile.gif">
</editorDiagram>

I have a warning that says "Illegal attribute 'contextId'"?
If yes, then what should I put instead of contextId?

Best regards,
Mary
Re: How to create a new Papyrus UML diagram [message #987630 is a reply to message #987506] Tue, 27 November 2012 11:18 Go to previous message
Mary P. is currently offline Mary P.Friend
Messages: 48
Registered: November 2012
Member
Hello!

I did the tutorial from the very beginning again and now I don't have Exceptions.

But I still have two questions:

1. I can draw the components but I cannot set their names!
Does anybody know, ehat might be the reason?

2. When I create the generator model (.gmfgen file) I don't get Gen Parsers UMLParserProvider there. Could anybody,please, tell me, what may be the reason of that and if it may have any influence on the fact that I cannot set the components' names?


Thanks in advance!

Best regards.
Mary.

Previous Topic:Object diagrams in Papyrus
Next Topic:programmatic generation of diagrams
Goto Forum:
  


Current Time: Thu Mar 28 22:55:21 GMT 2024

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

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

Back to the top