Hi,
I want to the develop a simple plugin: when I click on a plugin's button a new windows appears with the image I have opened on Udig.
I have obtained open a window with this code (I have to improve it because it isn't efficient):
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Demo");
shell.setBounds(100, 100, 200, 100);
shell.setLayout(new FillLayout());
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
Shell shell = new Shell(display);
shell.setText("Demo");
shell.setBounds(100, 100, 200, 100);
shell.setLayout(new FillLayout());
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
But now I don't know how to obtain the image from uDig to the new window and open this image in the new window.
Thanks
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
