I have a problem in my application , I can't instantiate a class
this is my java.lang.ClassCastException
eclipse.emf.editeurgraphique.risque.features.StartEventFeature$CreateStartEventFeature cannot be cast to org.eclipse.graphiti.features.ICreateFeature
at eclipse.emf.editeurgraphique.risque.features.StartEventFeature.getCreateFeature(StartEventFeature.java:43)
And this is my method :
public ICreateFeature getCreateFeature(IFeatureProvider fp) {
return (ICreateFeature) new CreateStartEventFeature(fp);
}
my Interface :
public interface ICreateFeature extends ICreate, IFeature {
}
and my class
public CreateStartEventFeature(IFeatureProvider fp) {
super(fp, "Start Event", "Indicates the start of a process or choreography");
}
Your CreateStartEventFeature does not extend any class defined by you, so by calling super constructor
you try ro run parametrized constructor from Object class.