Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Immersion into a component to view its sub components
Immersion into a component to view its sub components [message #155905] Wed, 27 October 2004 18:02 Go to next message
Eclipse UserFriend
Originally posted by: boby.vt.edu

I was wondering if you could give pointers into how good my
implementation will work. The basic idea is to provide some kind of
"immersion" allowing users to view into the component and see its sub
components.

I have a two model components: ModelDiagram (MD) and ModelElement (ME).
MD has methods for adding/removing ME and returning list of current MEs.
ME has methods for adding/removing connections to other MEs (in the
"same level") and a list of its children (which are MEs in "lower
level"). An example Tree would look like (MD) -> ME_1, ME_2, ME_3, ME_4
-> ME_4.1, ME_4.2, ME_4.3 -> ME_4.3.1. When the model file is loaded,
the users will see only the first children (ME_1, ME_2, ME_3, ME_4).
When the user selects ME_4 and rightclick "Immerse", the user will see
the childern of that ME (ME_4.1, ME_4.2, ME_4.3). The user can move
forward and backward using the back/forward button.

I plan to implement this using one MD, which will be cleared and loaded
depending on the level at which the user is. I have two stacks in MD:
Child Stack (stores MEs at the top level) and parent Stack (store ME
which was selected to view the childs). When user right click's ME_4 and
choose "Immerse" action (implemented using ImmerseAction class which has
method WorkbenchPartAction.execute that invokes the
ViewSubComponentCommand Class). The ViewSubComponentCommand, will call
the MD, store the current children into the child stack, store ME_4 into
parent stack, clear the children list of MD and add the children of ME_4
(ME_4.1, ME_4.2, ME_4.3) and finally fire the custom ChildrenChange
property which is captured by the MDEditPart, which inturn will call
refreshChildren() method. When new ME are added, parentstack is checked
and the addChild method of ME_4 is also called. When user clicks back
button (How to get the event and call another command class?), the
ViewParentComponentCommand is to be called which clears current children
of MD, loads the childrens from the childstack and fire the custom
ChildrenChange property.

So eseentially i need to know two things
1. IS this approach advisible?
2. How to get hold of back button and attach the
ViewParentComponentCommand? or should i create another custom action
"Return"?

Thanks for your time and efforts
Re: Immersion into a component to view its sub components [message #155948 is a reply to message #155905] Wed, 27 October 2004 20:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

The xsd editor from the ibm webtools plugin bundle does such a thing.
Perhaps a look at it`s source can be of help?

That`s all i can offer, being mostly a newbie..
Re: Immersion into a component to view its sub components [message #156041 is a reply to message #155948] Thu, 28 October 2004 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: boby.vt.edu

Frank,
where can i find the source for the IBM webtools plugin?

For everyone else, how can i invoke a command class when the back
(history) button in the eclipse and is it possible to display each layer
of a hierarchical structure by clearing and populating the viewer
depending upon the layer

thanks

Frank Dyck wrote:
> The xsd editor from the ibm webtools plugin bundle does such a thing.
> Perhaps a look at it`s source can be of help?
>
> That`s all i can offer, being mostly a newbie..
>
>
Re: Immersion into a component to view its sub components [message #156192 is a reply to message #156041] Sat, 30 October 2004 08:47 Go to previous message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

Download:
http://www.eclipse.org/webtools/initial-contribution/IBM/Get ting%20Start=
ed.html
But beware it`s a massive bundle of plugins: 50+MB!

This is a description of the xsd editor:
http://www.eclipse.org/webtools/initial-contribution/IBM/eva lGuides/XMLT=
oolsEval.html?p=3D1

It is a gef editor without palette(editing is done with the context menu=
), =

but it does immersion.
The code is spread around several packages/plugins, i don`t know which a=
t =

the momment.

It`s probably easier to get an answer from this newsgroup...



> Frank,
> where can i find the source for the IBM webtools plugin?
>
> For everyone else, how can i invoke a command class when the back =

> (history) button in the eclipse and is it possible to display each lay=
er =

> of a hierarchical structure by clearing and populating the viewer =

> depending upon the layer
>
> thanks
>
> Frank Dyck wrote:
>> The xsd editor from the ibm webtools plugin bundle does such a thing.=

>> Perhaps a look at it`s source can be of help?
>> That`s all i can offer, being mostly a newbie..
>>
Previous Topic:changing snapto points?
Next Topic:popup property dialog for each component?
Goto Forum:
  


Current Time: Thu Apr 25 17:31:47 GMT 2024

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

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

Back to the top