Home » Modeling » UML2 Tools » Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore
Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #630753] |
Mon, 04 October 2010 15:23  |
Eclipse User |
|
|
|
Hello, this is my first topic in the forum, and i write because
i need make a new editor(with specific toolbar) for a new profile uml.
To perfom this, I was experimented making prototypes with two technologíes, and for um2t i have the following questions:
-Technical Doubts
1-I need to modificate the uml.uml , uml.merged.uml,the uml.ecore(from org.eclipse.uml2), to add my news stereotypes?
is posible to change the uml files of the actuals gmfmap,gmfgen diagrams, just reloading resource reference to UML.uml or UML.ecore , or i need to regenerate gmfgen and map?
i need recompile and generate code in the org.eclipse.uml2 sources.....?
2-How be the steps that i should follow to customizate the toolbar of exisiting diagram for my profile elements(stereotypes)and add it to my editor?.(any extension point?...how i can use it?).
-Doubts about "project managment" to make project with gmf, extending uml2tools:
According of the experiences of you, how many time(month,weeks...) could be learn gmf, compile uml2t, understand uml2t,regenerae diagrams, customize toolsbar,etc..to extend uml2tools to make a new editor to a profile? .My team have onlly one person to do this=).
Extend or reutilizate uml2tools is a good option?.I see in the forum and for the time that i invert on uml2tools that may be could take a lot of time.I ask this because i read in the forum, that for example in papyrus project discard extend uml2tools before five month of work to do this, .and other people in the forum have problems too.
Bye,
Mi
|
|
| |
Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #631210 is a reply to message #631168] |
Wed, 06 October 2010 11:10   |
Eclipse User |
|
|
|
VLAD, may be I did not properly express in my last message.Sorry because i dont write in english very well.
Im not do my work for a company, I m a student that is working in a final university work, and i m going to collaboate with the eclipse comunity with it.I must do an editor for eclipse that can work with a new uml profie.
I m asking for technical and managment information, because i like know more of these for do better my work.
My two options are open source of eclipse projects, i writed in this forum only about uml2tools.
I hope that anybody can answer the question that i posted in my last post about ecore, and managment things,
as would be very useful for me.
Bye,
Mi
|
|
|
Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #631341 is a reply to message #631210] |
Thu, 07 October 2010 03:10   |
Eclipse User |
|
|
|
Originally posted by: r.zozmann.exxcellent.de
Hi Michel,
to write a uml profile (and to use it) you doesn't need your own editor.
Simply use the 'Profile Definition Diagram' coming with the UML2Tools
(Defining a *working* profile is difficult, because all the
guides/articels in the web are out dated).
There exists an extension point (org.eclipse.uml2.uml.dynamic_package)
so you can deploy your profile bundled in a plugin. After installing the
profile is available in all UML2(Tools) editors...
Regards
Ralf
Am 06.10.2010 17:10, schrieb Michel:
> VLAD, may be I did not properly express in my last message.Sorry because
> i dont write in english very well.
> Im not do my work for a company, I m a student that is working in a
> final university work, and i m going to collaboate with the eclipse
> comunity with it.I must do an editor for eclipse that can work with a
> new uml profie.
>
> I m asking for technical and managment information, because i like
> know more of these for do better my work.
>
> My two options are open source of eclipse projects, i writed in this
> forum only about uml2tools.
>
> I hope that anybody can answer the question that i posted in my last
> post about ecore, and managment things,
> as would be very useful for me.
>
> Bye,
> Mi
>
|
|
| | | |
Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #632021 is a reply to message #631501] |
Mon, 11 October 2010 04:41  |
Eclipse User |
|
|
|
Take a look at *.part.UMLPaletteFactory.
If you want initalize Elements with a Stereotype take a look at
*.providers.ElementInitializers.
For example:
if(element!=null){
if(element.getAppliedStereotype("Profile:Stereotype")==null){
Stereotype stereotype=getStereoInterface(element,"Stereotype");
if(stereotype!=null){
element.applyStereotype(stereotype);
}
}
private static Stereotype getStereoInterface(Element element,String
stereotype) {
org.eclipse.uml2.uml.Package pack=element.getNearestPackage();
Resource resource =
element.eResource().getResourceSet().getResource(URI.createU RI( "pathmap://blabla/blabla.profile.uml"),
true);
Profile profile = (Profile) EcoreUtil.getObjectByType(
resource.getContents(), UMLPackage.eINSTANCE
.getProfile());
if(!pack.getAllAppliedProfiles().contains(profile)){
pack.applyProfile(profile);
}
return (Stereotype) (profile!=null ?
profile.getPackagedElement(stereotype):null);
}
regards
Peter
Am 07.10.2010 20:13, schrieb Michel:
> Thanks for the answer. And if i want to customize the pallete too, with
> my own symbols, exist any extension point to do this?
>
>
|
|
|
Goto Forum:
Current Time: Tue Jul 22 18:03:36 EDT 2025
Powered by FUDForum. Page generated in 0.06418 seconds
|