Package org.eclipse.sapphire.ui.def

Examples of org.eclipse.sapphire.ui.def.PartDef


        this.part = part;
        this.property = property;
        this.mouseOverEditorControl = false;
        this.mouseTrackListener = new EditorControlMouseTrackListener();
       
        final PartDef def = this.part.definition();
       
        final List<Class<?>> contributorClasses = new ArrayList<Class<?>>();
       
        contributorClasses.addAll( SYSTEM_CONTRIBUTORS );
       
        final String additionalContributorsStr = def.getHint( PropertyEditorDef.HINT_ASSIST_CONTRIBUTORS );
       
        if( additionalContributorsStr != null )
        {
            final ISapphireUiDef rootdef = def.nearest( ISapphireUiDef.class );
           
            for( String segment : additionalContributorsStr.split( "," ) )
            {
                final Class<?> cl = rootdef.resolveClass( segment.trim() );
               
                if( cl != null )
                {
                    contributorClasses.add( cl );
                }
            }
        }
       
        this.contributors = new ArrayList<PropertyEditorAssistContributor>();
       
        for( Class<?> cl : contributorClasses )
        {
            try
            {
                this.contributors.add( (PropertyEditorAssistContributor) cl.newInstance() );
            }
            catch( Exception e )
            {
                Sapphire.service( LoggingService.class ).log( e );
            }
        }
       
        final String contributorsToSuppressStr = def.getHint( PropertyEditorDef.HINT_SUPPRESS_ASSIST_CONTRIBUTORS );
       
        if( contributorsToSuppressStr != null )
        {
            for( String segment : contributorsToSuppressStr.split( "," ) )
            {
View Full Code Here


            throw new IllegalArgumentException();
        }
       
        SapphirePart part = null;
        Map<String,String> partParams = params;
        PartDef def = definition;
       
        if( definition instanceof PropertyEditorDef )
        {
            part = new PropertyEditorPart();
        }
View Full Code Here

        this.part = part;
        this.context = context;
       
        this.actions = new CopyOnWriteArrayList<SapphireAction>();
       
        final PartDef partDef = this.part.definition();
       
        createActions( SapphireExtensionSystem.getActions() );
       
        if( partDef != null )
        {
            createActions( partDef.getActions() );
        }
       
        createActionHandlers( SapphireExtensionSystem.getActionHandlers() );
        createActionHandlersFromFactories( SapphireExtensionSystem.getActionHandlerFactories() );
       
        if( partDef != null )
        {
            createActionHandlers( partDef.getActionHandlers() );
            createActionHandlersFromFactories( partDef.getActionHandlerFactories() );
            createActionHandlerFilters( partDef.getActionHandlerFilters() );
        }
    }
View Full Code Here

                {
                    final ISapphireUiDef sdef = ref.getPath().target();
                   
                    if( sdef != null )
                    {
                        final PartDef def = sdef.getPartDef( id, true, expectedType );
                       
                        if( def != null )
                        {
                            return def;
                        }
View Full Code Here

    @Override
    protected void compute( final Set<String> values )
    {
        final ISapphireHint element = context( ISapphireHint.class );
        final PartDef partdef = element.nearest( PartDef.class );
        final String hint = element.getName().text();
       
        if( hint != null )
        {
            if( hint.equals( PropertyEditorDef.HINT_CHECKBOX_LAYOUT ) )
View Full Code Here

    @Override
    protected List<ServiceProxy> local()
    {
        final ListFactory<ServiceProxy> local = ListFactory.start();
        final PartDef partDef = this.part.definition();
       
        for( ServiceDef serviceDef : partDef.getServices() )
        {
            final Class<? extends Service> serviceImplClass = resolve( serviceDef.getImplementation() );
           
            if( serviceImplClass != null )
            {
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.def.PartDef

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.