I'm currenctly building a Eclipse extension who initialize diagrams based on
their stereotype. I'm testing my extension using the "Run As -> Eclipse
Application". When a made a test, I add classes into a diagram, I close
Eclipse, and when I open it again, the classes were gone! I'm not loosing
anything else except classes... Here is the way I add classes into my
diagram.
this._diagramme = diagramme;
this._paquetage = (Package)this._diagramme.getOwner();
this._classesFactory =
ClassesFactory.REGISTRY.getFactory(this._paquetage.getIProject(),
this._paquetage.getSession());
@SuppressWarnings("unchecked") public void ajouterClass(String nom, String
stereotype) {
Class classe = this._classesFactory.createClass();
classe.setName((nom.equalsIgnoreCase(DecorateurElement.P_NOM_PARENT) ?
this._paquetage.getName() : nom));
classe.setPropertyValue("stereotype", stereotype);
this._paquetage.getOwnedMembers().add(classe);
}
Could someone help?
Regards,
Dave
"Dave Couture" <dave_c...@dmr.ca> wrote in message
news:45dd...@newsgroups.borland.com...
I'm adding class to a UML20 project. Yes, i'm also adding classes to package
but since a package is linked to a class diagram, adding classes to the
package make them appear on the diagram. I got the problem in those
conditions:
- I'm testing my plugin (it is not deployed);
- My projet open on a class diagram;
- I'm adding classes on the opened diagram; and
- I'm closing Together without leaving the package.
I'll tried in deployed mode.
Regards,
Dave
"ElenaA" <Elena.A...@borland.com> a écrit dans le message de news:
45de9811$1...@newsgroups.borland.com...