Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Developing Plugin

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();
 
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

Back to the top