Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » UML Tutorial Diagram(Creating a own papyrus uml diagram)
UML Tutorial Diagram [message #1652034] Thu, 05 March 2015 17:02
Paolo Stefano Care is currently offline Paolo Stefano CareFriend
Messages: 2
Registered: March 2015
Junior Member
Hi everybody,

since yesterday i try to create my own component diagram for this case i created a new plugin according to the following a tutorial of the Papyrus Consortium in 2011.

I did everything wich was described in the tutorial but the plugin.xml contains still a warning:

Referenced identifier 'uml' in attribute 'language' cannot be found

Here you can see my plugin.xml code

<extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.papyrus.editor.category"
            defaultHandler="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
            description="Create a Tutorial Diagram"
            id="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
            name="Create a Tutorial Diagram">
      </command>
   </extension>  
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
            commandId="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand">
            <activeWhen>
-               <with variable="activeEditorId">
-                  <equals value="org.eclipse.papyrus.infra.core.papyrusEditor"/>
-               </with>
-         </activeWhen>
      </handler>
   </extension>
-   <extension point="org.eclipse.ui.menus">
    <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar">
-    <toolbar id="org.eclipse.papyrus.uml.diagram.ui.toolbar">
 <command                 
 commandId="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
               icon="icons/obj16/UMLDiagramFile.gif"
               label="Create a new Component Diagram"
               style="push"
               tooltip="Component Diagram">
               <visibleWhen>
               <reference
                     definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel">	
</reference>
            </visibleWhen>		
         </command>
     </toolbar>
-    </menuContribution>
-    <menuContribution locationURI="menu:org.eclipse.papyrus.ui.menu">
-    <menu 
           id="org.eclipse.papyrus.uml.diagram.ui.menu.diagrams"
           label="Diagrams">
        <command                 
   commandId="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
   icon="icons/obj16/UMLDiagramFile.gif"
               label="Create a new Component Diagram"
               style="push"
               tooltip="Component Diagram">
               <visibleWhen>
               <reference
                     definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel">	
               </reference>
            </visibleWhen>		
         </command>
    </menu>
-    </menuContribution>
-    <menuContribution locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popupmenu.creatediagram">
-    <command
    commandId="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
   icon="icons/obj16/UMLDiagramFile.gif"
               label="Create a new Component Diagram"
               style="push"
               tooltip="Component Diagram">
               <visibleWhen>
               <reference
                     definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel">	
</reference>
            </visibleWhen>
            </command>
-    </menuContribution>		
   </extension>
   <extension
         point="org.eclipse.papyrus.infra.core.papyrusDiagram">
          <editorDiagram
            actionBarContributorId="org.eclipse.papyrus.diagram.common.part.UMLDiagramActionBarContributor"
            factoryClass="org.eclipse.papyrus.diagram.newdiagram.DiagramEditorFactory"
            icon="icons/obj16/UMLDiagramFile.gif">
      </editorDiagram>
         <creationCommand
               creationCommandClass="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
               creationCondition="org.eclipse.papyrus.infra.core.extension.commands.PerspectiveContextDependence"
               icon="icons/obj16/UMLDiagramFile.gif"
               id="org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand"
               label="UML Tutorial Diagram"
               language="uml">
      </creationCommand>
   </extension>


and when i try to run my plugin i get the following Error:
!ENTRY org.eclipse.papyrus.infra.core 2 0 2015-03-05 17:01:18.819
!MESSAGE org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand can not be loaded 
!STACK 0
org.eclipse.papyrus.infra.core.extension.BadClassNameException: org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand can not be loaded  for the extension point creationCommand.creationCommandClass java.lang.ClassNotFoundException: org.eclipse.papyrus.diagram.newdiagram.CreateDiagramCommand cannot be found by org.eclipse.uml2.uml.diagram_1.0.0.qualifier
	at org.eclipse.papyrus.infra.core.extension.ExtensionUtils.parseClass(ExtensionUtils.java:88)
	at org.eclipse.papyrus.commands.CreationCommandExtensionFactory.createCreationCommand(CreationCommandExtensionFactory.java:76)
	at org.eclipse.papyrus.commands.CreationCommandRegistry.initializeCreationCommandDescriptors(CreationCommandRegistry.java:130)
	at org.eclipse.papyrus.commands.CreationCommandRegistry.<init>(CreationCommandRegistry.java:72)
	at org.eclipse.papyrus.commands.CreationCommandRegistry.getInstance(CreationCommandRegistry.java:47)
	at org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramKindPage.<clinit>(SelectDiagramKindPage.java:87)
	at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.createSelectDiagramKindPage(CreateModelWizard.java:362)
	at org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard.init(CreateModelWizard.java:195)
	at org.eclipse.papyrus.uml.diagram.wizards.NewPapyrusProjectWizard.init(NewPapyrusProjectWizard.java:59)
	at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:193)
	at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:107)
	at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:101)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:935)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:434)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
	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.Display.sendEvent(Display.java:4454)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
	at org.eclipse.jface.window.Window.open(Window.java:808)
	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:269)
	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:159)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)



Hope that someone could help me

Best regards

Paolo
Previous Topic:Luna SR2 Papyrus Additional Components install problem
Next Topic:package decomposition
Goto Forum:
  


Current Time: Tue Nov 24 21:53:25 GMT 2020

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

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

Back to the top