Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » retrieving model info
retrieving model info [message #474748] Tue, 31 July 2007 10:35 Go to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

hi,

If I have a model. One with components , interfaces and ports. How could I
view this model textually (a very basic view). Lets say a list of
components, ports and interfaces. Not even who is linked to who.

example:

component a
b

port ab

interface z

something like that.

thx
Nick
Re: retrieving model info [message #474750 is a reply to message #474748] Tue, 31 July 2007 13:45 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Nick,

You could do this a number of different ways. One way would be to iterate
over the content tree of the model, e.g. using EObject#eAllContents() or
Element#allOwnedElements(), printing out the names (or labels, e.g.
NamedElement#getLabel()) of each element you encounter...

Kenn

"Nick Kirtey" <nickkirtley@gmail.com> wrote in message
news:7beae005a60e1c8c746dff975f366efc$1@www.eclipse.org...
> hi,
>
> If I have a model. One with components , interfaces and ports. How could I
> view this model textually (a very basic view). Lets say a list of
> components, ports and interfaces. Not even who is linked to who.
>
> example:
>
> component a
> b
>
> port ab
>
> interface z
>
> something like that.
>
> thx
> Nick
>
Re: retrieving model info [message #474756 is a reply to message #474750] Wed, 01 August 2007 14:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi Kenn,

There's another seperate question I have.
I've been trying to build the UML2Tools project and I'd also like to build
uml2 as well.

I want to do this so I can change the code and study the effect.

What I did was project->new. cvs project. I chose MDT. it downloaded MDT.
Then I chose all the src files in the build path. Eclipse then built the
workspace and I got an error - java heap error, lack of memory.

Could you explain to me how I can have the MDT project (at least uml2tools
and uml2) in my workspace and that I can change code and compile results?
(step by step plz)

thx a lot

Nick
Re: retrieving model info [message #474759 is a reply to message #474756] Wed, 01 August 2007 15:22 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Nick,

1. Consider launching Eclipse with arguments to increase memory, e.g. I
always launch with -vmargs -Xmx1024M -Xms256M.

2. Open the 'CVS Repository Exploring' perspective, create a new repository
location with the following properties:

Connection type: pserver
User: anonymous (no password)
Host: dev.eclipse.org
Repository path: /cvsroot/modeling

3. Select HEAD/org.eclipse.mdt/org.eclipse.uml2.releng, right click, and
select 'Check Out' from the context menu. If you want the source from a
maintenance stream, select 'Check Out As...' and specify a branch, e.g.
R2_1_maintenance.

4. Go the to Package Explorer in the 'Java' perspective, expand to, and
highlight, org.eclipse.uml2.releng/uml2.psf, right click and select 'Import
Project Set...' from the context menu.

5. Go back to the 'CVS Repository Exploring' perspective, select all the
projects under HEAD/org.eclipse.mdt/org.eclipse.uml2tools/plugins/, right
click, and select 'Check Out'. If you want the source from a maintenance
stream, select 'Check Out As...' and specify a branch.

Kenn

"Nick Kirtey" <nickkirtley@gmail.com> wrote in message
news:9034e60ab3473197b4932121bff614c0$1@www.eclipse.org...
> Hi Kenn,
>
> There's another seperate question I have.
> I've been trying to build the UML2Tools project and I'd also like to build
> uml2 as well.
>
> I want to do this so I can change the code and study the effect.
>
> What I did was project->new. cvs project. I chose MDT. it downloaded MDT.
> Then I chose all the src files in the build path. Eclipse then built the
> workspace and I got an error - java heap error, lack of memory.
>
> Could you explain to me how I can have the MDT project (at least uml2tools
> and uml2) in my workspace and that I can change code and compile results?
> (step by step plz)
>
> thx a lot
>
> Nick
>
Re: retrieving model info [message #474868 is a reply to message #474759] Thu, 02 August 2007 12:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi Kenn

I got to step 4. When I try that it asks for a username/password. I tried
anonymous/blank and anonymous/anonymous but it doesn't accept the password.

I think I might know why. In my cvs view I have a pserver connection to
dev.eclipse.org. When I try to import project set it asks for user/pass
and it fails. After that I have a new cvs connection using extssh to
dev.eclipse.org. It won't use pserver conn. type.
Maybe this isn't the reason but the fact remains that I cannot import
project set due to password error.

could you tell me how to solve this problem?
thx
nick
Re: retrieving model info [message #474872 is a reply to message #474868] Thu, 02 August 2007 15:56 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Nick,

Sorry about that - just modify the uml2.psf file in your workspace by
replacing 'extssh' with 'pserver' and you should be good to go.
Alternatively, you can just check out all of the projects under the
org.eclipse.uml2/plugins folder as I've suggested you do for UML2 Tools...

Kenn

"Nick Kirtey" <nickkirtley@gmail.com> wrote in message
news:4888cc4b21dc9267cbf29c61d59dec95$1@www.eclipse.org...
> Hi Kenn
>
> I got to step 4. When I try that it asks for a username/password. I tried
> anonymous/blank and anonymous/anonymous but it doesn't accept the
> password.
>
> I think I might know why. In my cvs view I have a pserver connection to
> dev.eclipse.org. When I try to import project set it asks for user/pass
> and it fails. After that I have a new cvs connection using extssh to
> dev.eclipse.org. It won't use pserver conn. type. Maybe this isn't the
> reason but the fact remains that I cannot import project set due to
> password error.
>
> could you tell me how to solve this problem?
> thx
> nick
>
Re: retrieving model info [message #624146 is a reply to message #474748] Tue, 31 July 2007 13:45 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Nick,

You could do this a number of different ways. One way would be to iterate
over the content tree of the model, e.g. using EObject#eAllContents() or
Element#allOwnedElements(), printing out the names (or labels, e.g.
NamedElement#getLabel()) of each element you encounter...

Kenn

"Nick Kirtey" <nickkirtley@gmail.com> wrote in message
news:7beae005a60e1c8c746dff975f366efc$1@www.eclipse.org...
> hi,
>
> If I have a model. One with components , interfaces and ports. How could I
> view this model textually (a very basic view). Lets say a list of
> components, ports and interfaces. Not even who is linked to who.
>
> example:
>
> component a
> b
>
> port ab
>
> interface z
>
> something like that.
>
> thx
> Nick
>
Re: retrieving model info [message #624152 is a reply to message #474750] Wed, 01 August 2007 14:16 Go to previous message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi Kenn,

There's another seperate question I have.
I've been trying to build the UML2Tools project and I'd also like to build
uml2 as well.

I want to do this so I can change the code and study the effect.

What I did was project->new. cvs project. I chose MDT. it downloaded MDT.
Then I chose all the src files in the build path. Eclipse then built the
workspace and I got an error - java heap error, lack of memory.

Could you explain to me how I can have the MDT project (at least uml2tools
and uml2) in my workspace and that I can change code and compile results?
(step by step plz)

thx a lot

Nick
Re: retrieving model info [message #624155 is a reply to message #474756] Wed, 01 August 2007 15:22 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Nick,

1. Consider launching Eclipse with arguments to increase memory, e.g. I
always launch with -vmargs -Xmx1024M -Xms256M.

2. Open the 'CVS Repository Exploring' perspective, create a new repository
location with the following properties:

Connection type: pserver
User: anonymous (no password)
Host: dev.eclipse.org
Repository path: /cvsroot/modeling

3. Select HEAD/org.eclipse.mdt/org.eclipse.uml2.releng, right click, and
select 'Check Out' from the context menu. If you want the source from a
maintenance stream, select 'Check Out As...' and specify a branch, e.g.
R2_1_maintenance.

4. Go the to Package Explorer in the 'Java' perspective, expand to, and
highlight, org.eclipse.uml2.releng/uml2.psf, right click and select 'Import
Project Set...' from the context menu.

5. Go back to the 'CVS Repository Exploring' perspective, select all the
projects under HEAD/org.eclipse.mdt/org.eclipse.uml2tools/plugins/, right
click, and select 'Check Out'. If you want the source from a maintenance
stream, select 'Check Out As...' and specify a branch.

Kenn

"Nick Kirtey" <nickkirtley@gmail.com> wrote in message
news:9034e60ab3473197b4932121bff614c0$1@www.eclipse.org...
> Hi Kenn,
>
> There's another seperate question I have.
> I've been trying to build the UML2Tools project and I'd also like to build
> uml2 as well.
>
> I want to do this so I can change the code and study the effect.
>
> What I did was project->new. cvs project. I chose MDT. it downloaded MDT.
> Then I chose all the src files in the build path. Eclipse then built the
> workspace and I got an error - java heap error, lack of memory.
>
> Could you explain to me how I can have the MDT project (at least uml2tools
> and uml2) in my workspace and that I can change code and compile results?
> (step by step plz)
>
> thx a lot
>
> Nick
>
Re: retrieving model info [message #624244 is a reply to message #474759] Thu, 02 August 2007 12:40 Go to previous message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi Kenn

I got to step 4. When I try that it asks for a username/password. I tried
anonymous/blank and anonymous/anonymous but it doesn't accept the password.

I think I might know why. In my cvs view I have a pserver connection to
dev.eclipse.org. When I try to import project set it asks for user/pass
and it fails. After that I have a new cvs connection using extssh to
dev.eclipse.org. It won't use pserver conn. type.
Maybe this isn't the reason but the fact remains that I cannot import
project set due to password error.

could you tell me how to solve this problem?
thx
nick
Re: retrieving model info [message #624248 is a reply to message #474868] Thu, 02 August 2007 15:56 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Nick,

Sorry about that - just modify the uml2.psf file in your workspace by
replacing 'extssh' with 'pserver' and you should be good to go.
Alternatively, you can just check out all of the projects under the
org.eclipse.uml2/plugins folder as I've suggested you do for UML2 Tools...

Kenn

"Nick Kirtey" <nickkirtley@gmail.com> wrote in message
news:4888cc4b21dc9267cbf29c61d59dec95$1@www.eclipse.org...
> Hi Kenn
>
> I got to step 4. When I try that it asks for a username/password. I tried
> anonymous/blank and anonymous/anonymous but it doesn't accept the
> password.
>
> I think I might know why. In my cvs view I have a pserver connection to
> dev.eclipse.org. When I try to import project set it asks for user/pass
> and it fails. After that I have a new cvs connection using extssh to
> dev.eclipse.org. It won't use pserver conn. type. Maybe this isn't the
> reason but the fact remains that I cannot import project set due to
> password error.
>
> could you tell me how to solve this problem?
> thx
> nick
>
Previous Topic:Reference Updating
Next Topic:Draw UML graphically
Goto Forum:
  


Current Time: Thu Mar 28 18:27:14 GMT 2024

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

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

Back to the top