Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Shell


        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) { }
   
    display = SWTThread.getDisplay();
   
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
   
    MouseAdapter link_listener = new MouseAdapter() {
      public void mouseDoubleClick(MouseEvent arg0) {
        String path = (String) ((CLabel) arg0.widget).getData();
        if (!Utils.launchProgram(path))
View Full Code Here


   
    }catch(Throwable t) {}
   
    Display display = SWTThread.getDisplay();
   
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
   
    shell.setText(_._("advancedsearchwindow.title"));
   
    shell.setSize(500,300);
View Full Code Here

    try {
        skin = (SWTSkin) JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {
    }
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
   
    shell.setText(_._("sharedfilepropertieswindow.title"));
    shell.setImage(SWTImageRepository.getImage("info.png"));
   
    shell.setSize(500, 310);
View Full Code Here

        skin = (SWTSkin) JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
   
   
    Display display = SWTThread.getDisplay();
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
   
    shell.setText(Localizer._("downloadinfowindow.title"));
    shell.setImage(SWTImageRepository.getImage("info.png"));
       
    shell.setLayout(new FillLayout());
View Full Code Here

     
        skin = (SWTSkin) JMuleUIManager.getJMuleUI().getSkin();
   
    }catch(Throwable t) {}
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
   
    shell.setText(_._("alreadyexistdirswindow.title"));
   
    shell.setLayout(new GridLayout(1,false));
   
View Full Code Here

   
    GridLayout layout;
   
    search_result = item;
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
    shell.setImage(SWTImageRepository.getImage("info.png"));
    shell.setText(_._("searchpropertieswindow.title"));
    shell.setSize(500, 310);
   
    Utils.centreWindow(shell);
View Full Code Here

    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
    Display display = SWTThread.getDisplay();
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
    shell.setText(Localizer._("uploadinfowindow.title"));
    shell.setImage(SWTImageRepository.getImage("info.png"));
       
    shell.setLayout(new FillLayout());
    Composite content = new Composite(shell,SWT.BORDER);
View Full Code Here

    final Display display = SWTThread.getDisplay();
    final MainWindow instance = this;
    display.asyncExec(new JMRunnable() {
            public void JMRun() {
   
              shell = new Shell(display);
             
        shell.setSize(800, 500);  
              Utils.centreWindow(shell);
             
              shell.setText(JMConstants.JMULE_FULL_NAME);
View Full Code Here

    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
   
    final Shell shell1=new Shell(SWTThread.getDisplay(),SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL );

    shell.setSize(500, 620);
   
    Utils.centreWindow(shell);
   
View Full Code Here

    config_manager   = core.getConfigurationManager();
  }

  public void initUIComponents() {
    if (type == WindowType.SHARED_DIR) {
      shell = new Shell(SWTThread.getDisplay());
      DirectoryDialog dir_dialog = new DirectoryDialog (shell,SWT.MULTI | SWT.OPEN);
      dir_dialog.setText(_._("newwindow.title.shared_dir"));
      String directory = dir_dialog.open();
      if (directory == null) return ;
     
      List<File> shared_dirs = null;
      try {
        shared_dirs = config_manager.getSharedFolders();
      } catch (ConfigurationManagerException e1) {
        e1.printStackTrace();
      }
      List<File> newDirs = new LinkedList<File>();
      if (shared_dirs == null)
        shared_dirs = new CopyOnWriteArrayList<File>();
      else
        shared_dirs = new CopyOnWriteArrayList<File>(shared_dirs);
     
      List<File> already_exist_list = FileUtils.extractNewFolders(new File[]{new File(directory)},shared_dirs,newDirs);
     
      if (already_exist_list.size()!=0) {
        AlreadyExistDirsWindow window = new AlreadyExistDirsWindow(already_exist_list);
        window.getCoreComponents();
        window.initUIComponents();
      }
      shared_dirs.addAll(newDirs);
      try {
        config_manager.setSharedFolders(shared_dirs);
      } catch (ConfigurationManagerException e1) {
        e1.printStackTrace();
      }
     
      return ;
    }
    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
    Display display = SWTThread.getDisplay();
    GridData grid_data;
   
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
    if  (type == WindowType.DOWNLOAD) {
      shell.setText(_._("newwindow.title.download"));
      shell.setImage(SWTImageRepository.getMenuImage("folder_down.png"));
    }
    else {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Shell

Copyright © 2018 www.massapicom. 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.