Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Display.dispose()


        display.sleep();
      }
    }
    image.dispose();
    shell.dispose();
    display.dispose();
  }

  public static void showCurrentLayout(String text, String imagePath) {
    final Shell currentLayout = new Shell(Display.getCurrent(),
        SWT.DIALOG_TRIM | SWT.ON_TOP);
View Full Code Here


      pg.setSelection(i);
    }
    // Cleanup
    pg.dispose();
    sh.dispose();
    d.dispose();
  }
}
View Full Code Here

    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
    display.dispose();
  }

  private static Sprite getSprite(String id, Display display) {
    return new Sprite(new Image(display, id + ".png"), new Image(display, //$NON-NLS-1$
        id + "_mask.png")); //$NON-NLS-1$
View Full Code Here

      if (returnCode == PlatformUI.RETURN_RESTART) {
        return IApplication.EXIT_RESTART;
      }
      return IApplication.EXIT_OK;
    } finally {
      display.dispose();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.equinox.app.IApplication#stop()
View Full Code Here

      if (returnCode == PlatformUI.RETURN_RESTART) {
        return IApplication.EXIT_RESTART;
      }
      return IApplication.EXIT_OK;
    } finally {
      display.dispose();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.equinox.app.IApplication#stop()
View Full Code Here

            returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);
        } catch (Throwable t) {
            UiPlugin.log(Messages.UDIGApplication_error, t);
        } finally {
            context.applicationRunning();
            display.dispose();
        }
        if (returnCode == PlatformUI.RETURN_RESTART) {
          String systemExitCode = System.getProperty("eclipse.exitcode");
      if("24".equals(systemExitCode)) {
            return EXIT_RELAUNCH;
View Full Code Here

      if (returnCode == PlatformUI.RETURN_RESTART) {
        return IApplication.EXIT_RESTART;
      }
      return IApplication.EXIT_OK;
    } finally {
      display.dispose();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.equinox.app.IApplication#stop()
View Full Code Here

      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
   
    display.dispose();
    }
   
    public AttributeDefinition[] getInputParameters() {
      return getAttributeDefinitions();
    }
View Full Code Here

      if (returnCode == PlatformUI.RETURN_RESTART) {
        return IPlatformRunnable.EXIT_RESTART;
      }
      return IPlatformRunnable.EXIT_OK;
    } finally {
      display.dispose();
    }
  }
   
    protected static void setMenuManager(IMenuManager menuManager) {
        CIShellApplication.menuManager = menuManager;
View Full Code Here

      if (returnCode == PlatformUI.RETURN_RESTART)
        return IApplication.EXIT_RESTART;
      else
        return IApplication.EXIT_OK;
    } finally {
      display.dispose();
    }

  }

  /*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.