I use ZGRViewer inside Eclipse using the code shown below. This works as long as only one page contains a ZGRViewer instance. As soon as a second instance is opened in another page of the same window, instance dragging does not work anymore in the first page (it works in the last instance, though).
this.zgrViewer = new ZGRViewer();
final JPanel panel = this.zgrViewer.getPanel();
this.swingControl = new SwingControl(parent, SWT.NONE) {
protected JComponent createSwingComponent() {
return panel;
}
public Composite getLayoutAncestor() {
return parent;
}
};
The SwingControl class is from the Albireo project.
The panel returned is the one obtained from
this.grMngr.createPanelView(this.grMngr.createZVTMelements(false), 300, 200)
(in initGUI)
Anonymous
By dragging, you mean panning the view?