Trying to get the sample to work [message #674657] |
Fri, 27 May 2011 18:32 |
Neil Goldsmith Messages: 68 Registered: July 2009 |
Member |
|
|
Trying to follow along with the example code and get that running by following the code in the documentation, but even that is not coming up. It can't seem to load my DiagramTypeProvider:
!ENTRY org.eclipse.graphiti 4 0 2011-05-27 14:23:49.984
!MESSAGE org.eclipse.core.runtime.CoreException: Plug-in GraphitiMySample was unable to load class com.avaya.graphitieditor.MyGraphitiDiagramTypeProvider.
Code is extremly simple (just started the tutorial).
I have 2 classes and a plugin. It appears to not load my DiagramTypeProvider, but not sure why. Everything seems to be in place. I've included my .log file with more stack trace in this message. Thanks!
MyGraphitiDiagramTypeProvider.java
package com.avaya.graphitieditor;
import org.eclipse.graphiti.dt.AbstractDiagramTypeProvider;
public class MyGraphitiDiagramTypeProvider extends AbstractDiagramTypeProvider {
public MyGraphitiDiagramTypeProvider() {
super();
setFeatureProvider(new MyFeatureProvider(this));
}
}
MyFeatureProvider.java
package com.avaya.graphitieditor;
import org.eclipse.graphiti.dt.IDiagramTypeProvider;
import org.eclipse.graphiti.ui.features.DefaultFeatureProvider;
public class MyFeatureProvider extends DefaultFeatureProvider {
public MyFeatureProvider(IDiagramTypeProvider dtp) {
super(dtp);
}
}
plugin.xml:
<?eclipse version="3.4"?>
<plugin
id="com.avaya.graphitieditor"
name="MyGraphiti Plug-in"
version="6.0.0.0701"
provider-name="test"
class="graphitimysample.GraphitiMySamplePlugin">
<extension
point="org.eclipse.graphiti.ui.diagramTypes">
<diagramType
description="This is the diagram type for my Graphiti tutorial"
id="GraphitiMySample.MyTutorialDiagramType"
name="Neil Graphiti Tutorial Diagram Type"
type="myGraphititutorial">
</diagramType>
</extension>
<extension
point="org.eclipse.graphiti.ui.diagramTypeProviders">
<diagramTypeProvider
class="com.avaya.graphitieditor.MyGraphitiDiagramTypeProvider"
description="This is my editor for the Graphiti tutorial"
id="GraphitiMySample.MyTutorialDiagramTypeProvider"
name="Neil tutorial editor">
<diagramType
id="GraphitiMySample.MyTutorialDiagramType">
</diagramType>
</diagramTypeProvider>
</extension>
</plugin>
-
Attachment: .log
(Size: 25.99KB, Downloaded 334 times)
[Updated on: Fri, 27 May 2011 18:36] Report message to a moderator
|
|
|
|
|
|
|
Re: Trying to get the sample to work [message #1067367 is a reply to message #675436] |
Mon, 08 July 2013 12:44 |
Heeren Sharma Messages: 7 Registered: May 2013 |
Junior Member |
|
|
Hey Neil,
I am facing the similar problem. I have successfully registered one DiagramType in one plugin project. But now when I created new Plugin project and try to register new DiagramType then I am not getting this new DiagramType in the list of graphiti example section.
Any kind of direction will be helpful.
Thanks.
Heeren
[Updated on: Mon, 08 July 2013 12:45] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04548 seconds