Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.ImageData


        {
            final ImageDescriptor old = this.current;
           
            if( this.imageFunctionResult != null )
            {
                final ImageData newBaseImageData = (ImageData) this.imageFunctionResult.value();
               
                if( this.baseImageData != newBaseImageData )
                {
                    this.baseImageData = newBaseImageData;
                    this.base = SwtUtil.toImageDescriptor( this.baseImageData );
View Full Code Here


    }
   
    for (SapphireDiagramEditorPagePart.ConnectionPalette connectionPalette : diagramPart.getConnectionPalettes())
    {
      IDiagramConnectionDef connDef = connectionPalette.getConnectionDef();
      ImageData imageData = connectionPalette.getSmallIcon();
            ImageDescriptor smallImage = SwtUtil.toImageDescriptor(imageData);
      ImageData imageData2 = connectionPalette.getLargeIcon();
            ImageDescriptor largeImage = SwtUtil.toImageDescriptor(imageData2);

            CreationFactory factory = new ConnectionCreationFactory(connDef);
      String tpLabel = connDef.getToolPaletteLabel().content();
      if (tpLabel != null)
View Full Code Here

           
            for( ImageReference image : def.getImages() )
            {
                final Function imageFunction = FailSafeFunction.create( image.getImage().content(), Literal.create( ImageData.class ) );
                final FunctionResult imageFunctionResult = imageFunction.evaluate( this.functionContext );
                final ImageData data = (ImageData) imageFunctionResult.value();
               
                if( data != null )
                {
                    this.images.add( data );
                }
View Full Code Here

        if( label != null )
        {
            button.setText( label );
        }
       
        final ImageData image = part.image( 16 );
       
        if( image != null )
        {
            button.setImage( resources().image( image ) );
        }
View Full Code Here

            super.init( action, def );
           
            setId( ID_BASE + this.type.getSimpleName() );
            setLabel( this.type.getLabel( true, CapitalizationType.NO_CAPS, false ) );
           
            final ImageData typeSpecificAddImage = this.type.image();
           
            if( typeSpecificAddImage != null )
            {
                addImage( typeSpecificAddImage );
            }
View Full Code Here

            spacer.setText( EMPTY_STRING );
           
            register( spacer );
        }
       
        final ImageData image = part.image( 16 );
       
        final Composite composite = new Composite( composite(), SWT.NONE );
        composite.setLayoutData( gdhalign( gdhindent( gdhspan( gd(), hSpan ), 8 ), hAlignCode ) );
        composite.setLayout( glayout( ( image == null ? 1 : 2 ), 0, 0 ) );
       
View Full Code Here

        public void init( final SapphireAction action,
                          final ActionHandlerDef def )
        {
            super.init( action, def );
           
            final ImageData typeSpecificAddImage = this.type.image();
           
            if( typeSpecificAddImage != null )
            {
                addImage( typeSpecificAddImage );
            }
View Full Code Here

            return this.element;
        }
       
        public Image image()
        {
            final ImageData image;
           
            if( this.imageProvider == null )
            {
                image = null;
            }
View Full Code Here

            if( oldImage != null )
            {
                oldImage.dispose();
            }
           
            final ImageData newImageData = this.part.getPageHeaderImage();
           
            if( newImageData == null )
            {
                form.setImage( null );
            }
View Full Code Here

            {
                elementImageService.attach( this.serviceListener );
            }
        }
       
        ImageData image = null;
       
        if( elementImageService != null )
        {
            image = elementImageService.image();
        }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ImageData

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.