[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: genmodel for state machine diagram

Hey Tas, thanks for the heads up. I am trying to do some reflective programming on a ecore model, or as it turns out now on a uml2 model? So, i have been reading the EMF, 2nd edition book and I have got this working on an ecore model fine:

		InputCPackage inputCPackage = InputCPackage.eINSTANCE;
		System.out.println(inputCPackage);
		classifiers = inputCPackage.getEClassifiers();
		for(EClassifier classifier: classifiers) {
			System.out.println(classifier);
		}	

And from here I can reflectively traverse a meta-model combine that with JET and out pops some code ... sweet. Having a guess, is this how generators work?

Now, I want to do something similar again but on a state machine not a class diagram. I have tried converting to ecore as you know but ran into problems. How can I use reflection on a UML2 model?

Thanks, Eban