Examples of PageBook


Examples of org.eclipse.ui.part.PageBook

        UDIGDragDropUtilities.addDragSupport(this.viewer.getControl(), viewer);
    }

    @Override
    protected Composite createDetails( SashForm parent ) {
        book = new PageBook(parent, SWT.NONE);
        summary = new Text(book, SWT.V_SCROLL | SWT.READ_ONLY | SWT.WRAP | SWT.BORDER);
        summary.setText(""); //$NON-NLS-1$
        Color white = new Color(parent.getDisplay(), 255, 255, 255);
        summary.setBackground(white);
        white.dispose();
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

     *
     * @param parent The composite into which the current GUI elements will be
     *               added.
     */
    public final void createControl(final Composite parent) {
      PageBook book = new PageBook(parent, SWT.NONE);
     
        preferences = getPreferencePage();
        preferences.createControl(book);
        super.createControl(book);
        doCreateWizardPage(book);
        setControl(book);
//       
//        // When will this be triggered?
//        preferences.setListener(new Listener() {
//
//            public void handleEvent(Event event) {
//                getControl().dispose();
//                advancedGrp = null;
//                advancedBtnWgt = null;
//                hostTextWgt = null;
//                portTextWgt = null;
//                userTextWgt = null;
//                passTextWgt = null;
//                //?Db?
//                schemaComboWgt = null;
//                createControl(parent);
//                parent.layout();
//                setMessage(getRestartMessage());
//            }
//
//        });
       
        if (!preferences.installed()) {
            setMessage(getDriversMessage());
            book.showPage(book.getChildren()[0]);
        } else {
            book.showPage(book.getChildren()[1]);
        }
    }
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

   
    @Override
    protected Composite createDetails( SashForm splitter ) {
      initiListeners();
      this.fatherThread = Thread.currentThread();
        PageBook book = new PageBook( splitter, SWT.NONE );       
        splitter.setWeights(new int[]{10, 90});

        {
            information = new Text(book, SWT.WRAP );
            information.setText(Messages.InfoView_instructions_text);
            book.showPage(information);           
        }
        {
            textDisplay = new TextInfoDisplay();
            textDisplay.createDisplay(book);
            //textDisplay.getControl().setVisible(false);
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

                }
            }
        };
        control.setLayout(new MigLayout("insets 0", "[fill][]", "[fill]"));
       
        pageBook = new PageBook(control, SWT.NO_SCROLL);
        pageBook.setLayoutData("cell 0 0,grow,width 200:100%:100%,height 18:75%:100%");
       
        placeholder = new Label( pageBook, SWT.SINGLE );
        placeholder.setText("Choose filter editor");
       
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

    public void testMessage() {
        String string = "Test Message"; //$NON-NLS-1$
        table.message(string);
        while( Display.getCurrent().readAndDispatch() );

        PageBook book = (PageBook) table.getControl();
        assertTrue(book.getChildren()[0] instanceof Text);
        assertTrue(book.getChildren()[0].isVisible());
        assertTrue(book.getChildren()[1] instanceof Table);
        assertFalse(book.getChildren()[1].isVisible());

        Text text = (Text) book.getChildren()[0];
        assertEquals(string, text.getText());

        table.message(null);
        while( Display.getCurrent().readAndDispatch() );
        assertFalse(book.getChildren()[0].isVisible());
        assertTrue(book.getChildren()[1].isVisible());

    }
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

        comboViewer.setSelection(new StructuredSelection(proxy));

        // now that we are configured we can start to listen!
        listenCombo(true);
       
        pagebook = new PageBook(parent, SWT.NONE );
        GridData layoutData = new GridData(SWT.LEFT, SWT.TOP, true, true);
        layoutData.widthHint=400;
        layoutData.horizontalSpan=2;
        layoutData.heightHint=400;
        pagebook.setLayoutData(layoutData);       
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

   
    Composite externalGraphicPage;
    MarkEditorPage markComponent;
   
    private void createGraphicBook(Composite parent) {
        graphicBook = new PageBook(parent, SWT.NONE);
        GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
        gd.verticalSpan = 2;
        graphicBook.setLayoutData(gd);
       
        markComponent = new MarkEditorPage();
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

        pageBook.showPage(treeview);
        thumbnail.setVisible(false);
    }

    private void createPageBook(Composite parent) {
        pageBook = new PageBook(parent, SWT.NONE);
        createTreeview(pageBook);
        createOverview(pageBook);
        showTreeview();
    }
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

      GridLayout layout2 = new GridLayout(1, false);
      layout2.marginHeight = 0;
      layout2.marginWidth = 0;
      parent.setLayout(layout2);
      Composite owner = new Composite(parent, SWT.NONE);
      pageBook = new PageBook(parent, SWT.NONE);
      final Browser lm = new Browser(pageBook, SWT.NONE);
      lm.setText("<h3>No open tabs</h3> <p>To show Blobs from Blob Storage, please:<br>1) Choose connection configuration between 'manipulate with local server' or 'manipulate with development server';<br>2) click either 'add view'.");
      viewHolder = new CTabFolder(pageBook, SWT.NONE | SWT.CLOSE
          | SWT.BORDER);
      pageBook.showPage(lm);
View Full Code Here

Examples of org.eclipse.ui.part.PageBook

      GridLayout layout2 = new GridLayout(1, false);
      layout2.marginHeight = 0;
      layout2.marginWidth = 0;
      parent.setLayout(layout2);
      Composite owner = new Composite(parent, SWT.NONE);
      pageBook = new PageBook(parent, SWT.NONE);
      final Browser lm = new Browser(pageBook, SWT.NONE);
      lm.setText("<h3>No open tabs</h3> <p>To show Data Store entities, please:<br>1) enter the kind into the text field;<br>2) Choose connection configuration between 'manipulate with local server' or 'manipulate with development server';<br>3) click either 'add view', or press 'enter'.</p><i>Hint:</i> push Ctrl-Space in the text field to display the known kinds.");
      viewHolder = new CTabFolder(pageBook, SWT.NONE | SWT.CLOSE
          | SWT.BORDER);
      pageBook.showPage(lm);
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.