Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 19:23 Go to next message
Michel  is currently offline Michel Friend
Messages: 3
Registered: October 2010
Junior Member
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 #631168 is a reply to message #630753] Wed, 06 October 2010 12:29 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Michel,

I really don't understand how can you ask for open source help and in the same time expecting something out of the box !!

I think that companies should know what they want.
You either invest your time by contributing to open source or you invest your money by purchasing software or consulting.

I see that today's companies want everything for free and refuse to contribute because waiting for somebody else to do their job.
This modeling market sucks which behavior such as yours!!
Sorry to be so hard with you but users need really to help the community because without help we will one day disappear.

[Updated on: Wed, 06 October 2010 12:31]

Report message to a moderator

Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #631210 is a reply to message #631168] Wed, 06 October 2010 15:10 Go to previous messageGo to next message
Michel  is currently offline Michel Friend
Messages: 3
Registered: October 2010
Junior Member
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 07:10 Go to previous messageGo to next message
Eclipse UserFriend
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 #631501 is a reply to message #631341] Thu, 07 October 2010 18:13 Go to previous messageGo to next message
Michel  is currently offline Michel Friend
Messages: 3
Registered: October 2010
Junior Member
Thanks for the answer. And if i want to customize the pallete too, with my own symbols, exist any extension point to do this?

Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #631745 is a reply to message #631501] Fri, 08 October 2010 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.zozmann.exxcellent.de

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?
>
>
Simply no.
Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #631789 is a reply to message #631745] Fri, 08 October 2010 17:56 Go to previous messageGo to next message
Raphael Faudou is currently offline Raphael FaudouFriend
Messages: 88
Registered: July 2009
Member
If it is something important for you, you should probably consider
switching to Eclipse MDT papyrus that allows such a customization.
regards
raphaël
Le 08/10/2010 17:16, Ralf Zozmann a écrit :
>
>
> 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?
>>
>>
> Simply no.
Re: Uml2tools:1 regenerate diagram, 2 custom toolbar,3 change ecore [message #632021 is a reply to message #631501] Mon, 11 October 2010 08:41 Go to previous message
Peter  is currently offline Peter Friend
Messages: 85
Registered: July 2009
Member
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?
>
>
Previous Topic:Copy Lifelines into a sequence diagram
Next Topic:delete a tool
Goto Forum:
  


Current Time: Mon Dec 22 23:32:02 GMT 2014

Powered by FUDForum. Page generated in 0.03708 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software