Examples of Shell


Examples of org.eclipse.swt.widgets.Shell

        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

Examples of org.eclipse.swt.widgets.Shell

     
        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

Examples of org.eclipse.swt.widgets.Shell

   
    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

Examples of org.eclipse.swt.widgets.Shell

    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

Examples of org.eclipse.swt.widgets.Shell

    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

Examples of org.eclipse.swt.widgets.Shell

    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

Examples of org.foo.shell.Shell

          }
          continue;
        }
      }

      Shell shell;

      try {
        shell = new Shell(m_command, new BufferedReader(new InputStreamReader(socket.getInputStream())),
          new PrintStream(socket.getOutputStream()), new PrintStream(socket.getOutputStream()));
      } catch (IOException e) {
        e.printStackTrace();
        try {
          socket.close();
View Full Code Here

Examples of org.h2.tools.Shell

    public static void main(String... a) throws Exception {
        TestBase.createCaller().init().test();
    }

    public void test() throws Exception {
        Shell shell = new Shell();
        ByteArrayOutputStream buff = new ByteArrayOutputStream();
        shell.setOut(new PrintStream(buff));
        shell.runTool("-url", "jdbc:h2:mem:", "-driver", "org.h2.Driver",
                "-user", "sa", "-password", "sa", "-properties", "null", "-sql", "select 'Hello ' || 'World' as hi");
        String s = new String(buff.toByteArray());
        assertContains(s, "HI");
        assertContains(s, "Hello World");
        assertContains(s, "(1 row, ");

        shell = new Shell();
        buff = new ByteArrayOutputStream();
        shell.setOut(new PrintStream(buff));
        shell.runTool("-help");
        s = new String(buff.toByteArray());
        assertContains(s, "Interactive command line tool to access a database using JDBC.");

        test(true);
        test(false);
View Full Code Here

Examples of org.h2.tools.Shell

        testOut = new PrintStream(out, true);
        toolIn = new PipedInputStream(out);
        Task task = new Task() {
            public void call() throws Exception {
                try {
                    Shell shell = new Shell();
                    shell.setIn(toolIn);
                    shell.setOut(toolOut);
                    shell.setErr(toolOut);
                    if (commandLineArgs) {
                        shell.runTool("-url", "jdbc:h2:mem:",
                                "-user", "sa", "-password", "sa");
                    } else {
                        shell.runTool();
                    }
                } finally {
                    toolOut.close();
                }
            }
View Full Code Here

Examples of org.infinispan.cli.shell.Shell

    *
    * @param args
    * @throws Exception
    */
   public static void main(String[] args) throws Exception {
      Shell shell = new ShellImpl();
      shell.init(args);
      shell.run();
      System.exit(0);
   }
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.