Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Drill down on a given node
Drill down on a given node [message #1059293] Thu, 16 May 2013 14:09 Go to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 11
Registered: July 2009
Junior Member

I would like to know if there are examples out there on how to do drill
down in a graph.

use case:

Our domain model is a hierarchical graph.

Given a node in a graph, the user double clicks on the node or uses a
context menu to drill down into the node.The result of the action should
ideally be to "zoom" into the node in the same window where only the
contents of the node would be visible in the graph window. Another
possible result of the action would be to open a new editor window with
only the content of the selected node shown.

Re: Drill down on a given node [message #1059309 is a reply to message #1059293] Fri, 17 May 2013 13:31 Go to previous message
Marek Jagielski is currently offline Marek JagielskiFriend
Messages: 97
Registered: April 2012
For your second results I do simple:
		Display.getCurrent().asyncExec(new Runnable() {
			public void run() {
				IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
				try {
					IDE.openEditor(page, (IFile) ifile, true);
				} catch (PartInitException e) {

in MyDoubleClickFeature. However every node of hierarchy is stored in separated diagram file which is no convenient in every use case.

Previous Topic:Compartment Rectangle
Next Topic:Property View - Unhandled event loop exception
Goto Forum:

Current Time: Mon Jul 26 21:03:33 GMT 2021

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

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

Back to the top