Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » applying uml package as profile
applying uml package as profile [message #475209] Thu, 23 August 2007 16:32 Go to next message
Eclipse UserFriend
Originally posted by: rmishra.tibco.com

Hi,
Can we apply a uml package as a profile on the uml model . We can apply a
profile but not sure about package. i m applying in my code but it's not
working .can any body help me --if it can be done then how--
Re: applying uml package as profile [message #475211 is a reply to message #475209] Thu, 23 August 2007 16:57 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Raju,

You can't apply a uml package as a profile on some model. A profile is a
uml package however.
Have a look at the getting started article for profiles to discover how to
work with them.

- James.


"Raju Mishra" <rmishra@tibco.com> wrote in message
news:fakcqb$iu3$1@build.eclipse.org...
> Hi,
> Can we apply a uml package as a profile on the uml model . We can apply a
> profile but not sure about package. i m applying in my code but it's not
> working .can any body help me --if it can be done then how--
>
>
Re: applying uml package as profile [message #475215 is a reply to message #475211] Fri, 24 August 2007 11:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rmishra.tibco.com

Hi,
Actally i have a UML package and i want to attach diagram with it but ,it's
not working --if i attach diagram with UML model then it works fine ---
so i need some way through which i can convert UML package into UML model
and then attach diagram.

Diagram diagram = ViewService.createDiagram(

org.eclipse.uml2.uml.Package
umlPackage,ModelEditPart.MODEL_ID,UMLDiagramEditorPlugin.DIA GRAM_PREFERENCES_HINT);


conceptResource.getContents().add(diagram);




"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:fake9m$nkh$2@build.eclipse.org...
> Hi Raju,
>
> You can't apply a uml package as a profile on some model. A profile is a
> uml package however.
> Have a look at the getting started article for profiles to discover how to
> work with them.
>
> - James.
>
>
> "Raju Mishra" <rmishra@tibco.com> wrote in message
> news:fakcqb$iu3$1@build.eclipse.org...
>> Hi,
>> Can we apply a uml package as a profile on the uml model . We can apply a
>> profile but not sure about package. i m applying in my code but it's not
>> working .can any body help me --if it can be done then how--
>>
>>
>
>
Re: applying uml package as profile [message #475217 is a reply to message #475215] Fri, 24 August 2007 13:35 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
So if I understand you correctly, you don't want to apply a profile at all
but rather, add a diagram to a package?

The opensource uml2 component doesn't directly support diagrams. I think
this is a question for GMF or UML2Tools newsgroup.
The ViewService you make reference to is a GMF thing. Did you get any
exceptions when trying to create your diagram? Did you step into
createDiagram() to see where it is failing? Any other details would be
helpful.

- James.



"Raju Mishra" <rmishra@tibco.com> wrote in message
news:fameen$jml$1@build.eclipse.org...
> Hi,
> Actally i have a UML package and i want to attach diagram with it but
,it's
> not working --if i attach diagram with UML model then it works fine ---
> so i need some way through which i can convert UML package into UML model
> and then attach diagram.
>
> Diagram diagram = ViewService.createDiagram(
>
> org.eclipse.uml2.uml.Package
>
umlPackage,ModelEditPart.MODEL_ID,UMLDiagramEditorPlugin.DIA GRAM_PREFERENCES
_HINT);
>
>
> conceptResource.getContents().add(diagram);
>
>
>
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:fake9m$nkh$2@build.eclipse.org...
> > Hi Raju,
> >
> > You can't apply a uml package as a profile on some model. A profile is
a
> > uml package however.
> > Have a look at the getting started article for profiles to discover how
to
> > work with them.
> >
> > - James.
> >
> >
> > "Raju Mishra" <rmishra@tibco.com> wrote in message
> > news:fakcqb$iu3$1@build.eclipse.org...
> >> Hi,
> >> Can we apply a uml package as a profile on the uml model . We can apply
a
> >> profile but not sure about package. i m applying in my code but it's
not
> >> working .can any body help me --if it can be done then how--
> >>
> >>
> >
> >
>
>
Re: applying uml package as profile [message #624517 is a reply to message #475209] Thu, 23 August 2007 16:57 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Raju,

You can't apply a uml package as a profile on some model. A profile is a
uml package however.
Have a look at the getting started article for profiles to discover how to
work with them.

- James.


"Raju Mishra" <rmishra@tibco.com> wrote in message
news:fakcqb$iu3$1@build.eclipse.org...
> Hi,
> Can we apply a uml package as a profile on the uml model . We can apply a
> profile but not sure about package. i m applying in my code but it's not
> working .can any body help me --if it can be done then how--
>
>
Re: applying uml package as profile [message #624521 is a reply to message #475211] Fri, 24 August 2007 11:12 Go to previous message
Eclipse UserFriend
Originally posted by: rmishra.tibco.com

Hi,
Actally i have a UML package and i want to attach diagram with it but ,it's
not working --if i attach diagram with UML model then it works fine ---
so i need some way through which i can convert UML package into UML model
and then attach diagram.

Diagram diagram = ViewService.createDiagram(

org.eclipse.uml2.uml.Package
umlPackage,ModelEditPart.MODEL_ID,UMLDiagramEditorPlugin.DIA GRAM_PREFERENCES_HINT);


conceptResource.getContents().add(diagram);




"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:fake9m$nkh$2@build.eclipse.org...
> Hi Raju,
>
> You can't apply a uml package as a profile on some model. A profile is a
> uml package however.
> Have a look at the getting started article for profiles to discover how to
> work with them.
>
> - James.
>
>
> "Raju Mishra" <rmishra@tibco.com> wrote in message
> news:fakcqb$iu3$1@build.eclipse.org...
>> Hi,
>> Can we apply a uml package as a profile on the uml model . We can apply a
>> profile but not sure about package. i m applying in my code but it's not
>> working .can any body help me --if it can be done then how--
>>
>>
>
>
Re: applying uml package as profile [message #624523 is a reply to message #475215] Fri, 24 August 2007 13:35 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
So if I understand you correctly, you don't want to apply a profile at all
but rather, add a diagram to a package?

The opensource uml2 component doesn't directly support diagrams. I think
this is a question for GMF or UML2Tools newsgroup.
The ViewService you make reference to is a GMF thing. Did you get any
exceptions when trying to create your diagram? Did you step into
createDiagram() to see where it is failing? Any other details would be
helpful.

- James.



"Raju Mishra" <rmishra@tibco.com> wrote in message
news:fameen$jml$1@build.eclipse.org...
> Hi,
> Actally i have a UML package and i want to attach diagram with it but
,it's
> not working --if i attach diagram with UML model then it works fine ---
> so i need some way through which i can convert UML package into UML model
> and then attach diagram.
>
> Diagram diagram = ViewService.createDiagram(
>
> org.eclipse.uml2.uml.Package
>
umlPackage,ModelEditPart.MODEL_ID,UMLDiagramEditorPlugin.DIA GRAM_PREFERENCES
_HINT);
>
>
> conceptResource.getContents().add(diagram);
>
>
>
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:fake9m$nkh$2@build.eclipse.org...
> > Hi Raju,
> >
> > You can't apply a uml package as a profile on some model. A profile is
a
> > uml package however.
> > Have a look at the getting started article for profiles to discover how
to
> > work with them.
> >
> > - James.
> >
> >
> > "Raju Mishra" <rmishra@tibco.com> wrote in message
> > news:fakcqb$iu3$1@build.eclipse.org...
> >> Hi,
> >> Can we apply a uml package as a profile on the uml model . We can apply
a
> >> profile but not sure about package. i m applying in my code but it's
not
> >> working .can any body help me --if it can be done then how--
> >>
> >>
> >
> >
>
>
Previous Topic:Problem running uml2 api program
Next Topic:[Announce] MDT UML2 2.1.1 M200708221350 is available
Goto Forum:
  


Current Time: Thu Sep 19 19:40:48 GMT 2024

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

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

Back to the top