#130 Mouse dragging does not work (pages in Eclipse)

None
open
None
1
2014-07-24
2012-11-20
Anonymous
No

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)

Discussion

  • Emmanuel Pietriga

    By dragging, you mean panning the view?

     
  • Emmanuel Pietriga

    • assigned_to: Emmanuel Pietriga
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks