Package org.eclipse.sapphire.ui

Examples of org.eclipse.sapphire.ui.Presentation


       
        final Composite innerComposite = new Composite( composite, SWT.NONE );
        innerComposite.setLayout( glayout( 2, 0, 0 ) );
        innerComposite.setLayoutData( gdfill() );
       
        final Presentation presentation = this.part.createPresentation( null, innerComposite );
       
        presentation.render();
       
        final String initialFocusProperty = this.part.definition().getInitialFocus().content();
       
        if( initialFocusProperty != null )
        {
            this.part.setFocus( initialFocusProperty );
        }
       
        shell.addDisposeListener
        (
            new DisposeListener()
            {
                public void widgetDisposed( final DisposeEvent event )
                {
                    presentation.dispose();
                   
                    SapphireDialog.this.element = null;
                   
                    SapphireDialog.this.part.dispose();
                    SapphireDialog.this.part = null;
View Full Code Here


       
        this.part = (FormComponentPart) SapphirePart.create( null, this.element, this.definition.resolve(), Collections.<String,String>emptyMap() );
       
        setLayout( glayout( 2, 0, 0 ) );
       
        final Presentation presentation = this.part.createPresentation( null, this );
       
        presentation.render();
       
        addDisposeListener
        (
            new DisposeListener()
            {
                public void widgetDisposed( final DisposeEvent event )
                {
                    presentation.dispose();
                   
                    SapphireForm.this.element = null;
                   
                    SapphireForm.this.part.dispose();
                    SapphireForm.this.part = null;
View Full Code Here

       
        final Composite innerComposite = new Composite( composite, SWT.NONE );
        innerComposite.setLayout( glayout( 2, 0, 0 ) );
        innerComposite.setLayoutData( gdfill() );
       
        final Presentation presentation = new CompositePresentation( this.part, null, innerComposite )
        {
            @Override
            public void layout()
            {
                super.layout();
               
                final IWizardContainer container = getContainer();
               
                if( container instanceof IWizardContainer2 )
                {
                    ( (IWizardContainer2) container ).updateSize();
                }
            }
        };
       
        presentation.render();
       
        final ISapphireDocumentation doc = this.part.definition().getDocumentation().content();
       
        if( doc != null )
        {
View Full Code Here

                        }
                    }
                }
            );
           
            final Presentation presentation = page.createPresentation( this, tabControl );
            pagesListFactory.add( presentation );
           
            presentation.render();
        }
       
        tabFolderControl.setSelection( part.pages().indexOf( part.selection() ) );
       
        tabFolderControl.addSelectionListener
View Full Code Here

    {
        final FormEditorPagePart part = getPart();
        final ScrolledForm form = managedForm.getForm();
        final Composite body = form.getForm().getBody();
       
        final Presentation presentation = new SwtPresentation( part, null, body.getShell() )
        {
            @Override
            public void render()
            {
                body.setBackground( getPart().getSwtResourceCache().color( Color.WHITE ) );
                body.setBackgroundMode( SWT.INHERIT_DEFAULT );
               
                managedForm.getToolkit().decorateFormHeading( managedForm.getForm().getForm() );
                body.setLayout( glayout( 2, 0, 0 ) );
               
                for( final FormComponentPart child : part.getChildParts() )
                {
                    final Presentation childPresentation = child.createPresentation( null, body );
                    childPresentation.render();
                }

                final ISapphireDocumentation doc = part.definition().getDocumentation().content();
               
                if( doc != null )
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.Presentation

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.