Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.PageBook


     * creates a <code>PageBook</code> control with its default page showing. Subclasses may extend.
     */
    public void createPartControl( Composite parent ) {

        // Create the page book.
        book = new PageBook(parent, SWT.NONE);

        // Create the default page rec.
        IPage defaultPage = createDefaultPage(book);
        defaultPageRec = new PageRec<K>(null, defaultPage);
        preparePage(defaultPageRec);
View Full Code Here


        }
        this.editor = editor;
    }

    public void createControl( Composite parent ) {
        pagebook = new PageBook(parent, SWT.NONE);
        Control outline = getViewer().createControl(pagebook);
        getViewer().setEditDomain(editor.getEditDomain());
        getViewer().setEditPartFactory(new TreePartFactory());
        // getViewer().setKeyHandler(editor.getCommonKeyHandler());
View Full Code Here

     *
     * @see org.locationtech.udig.style.IStyleConfigurator#createControl(org.eclipse.swt.widgets.Composite)
     */
    public void createControl( Composite parent ) {
        createToolbarItems(); // now we have toolbar items
        editorBook = new PageBook(parent, SWT.NONE);
        editorBook.setVisible(true);

        blank = new Composite(editorBook, SWT.NONE);
        editorBook.showPage(blank);

View Full Code Here

     *
     * @param parent The to be parent of the control.
     * @see Composite
     */
    public void createTableControl( Composite parent ) {
        control = new PageBook(parent, SWT.NONE);
        createTableViewer(control);
    }
View Full Code Here

        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

     *
     * @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

   
    @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

                }
            }
        };
        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

    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

        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

TOP

Related Classes of org.eclipse.ui.part.PageBook

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.