Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7547777
By: lucarz
Hello,
I am currently creating a Eclipse RCP application using JUNG. The idea is to
display a graph and to display the properties of each node of a graph in another
view. I suppose that we must use the selection listener and selection provider
mechanism. However, as I am quite new to Java, I am wondering how we can build
a selection provider (ISelectionProvider) on the graph so that the other view
can react properly. I suppose that I need to fill the methods for a new type
of ISelectionProvider that is special for the graph... but I don't really know
how to do it. Can you give me some hints ?
C.
class GraphSelectionProvider implements ISelectionProvider {
@Override
public void addSelectionChangedListener(ISelectionChangedListener listener) {
// ??
}
@Override
public ISelection getSelection() {
// ??
return null ;
}
@Override
public void removeSelectionChangedListener( ISelectionChangedListener listener)
{
// ??
}
@Override
public void setSelection(ISelection selection) {
// ??
}
}
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=252062
|