Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Listener


            this.hints.put( name, parsedValue );
        }
       
        final ListFactory<FormComponentPart> relatedContentPartsListFactory = ListFactory.start();
       
        final Listener relatedContentPartListener = new FilteredListener<PartValidationEvent>()
        {
            @Override
            protected void handleTypedEvent( PartValidationEvent event )
            {
                refreshValidation();
View Full Code Here


        this.propertyEditorPresentation = propertyEditorPresentation;
        this.control = control;

        final Property property = propertyEditorPresentation.property();
       
        final Listener propertyChangeListener = new FilteredListener<PropertyEvent>()
        {
            @Override
            protected void handleTypedEvent( final PropertyEvent event )
            {
                updateTarget();
View Full Code Here

                updateActionLabelOp.run();
                updateActionImageOp.run();
                updateActionEnablementStateOp.run();
                updateActionCheckedStateOp.run();
   
                final Listener listener = new Listener()
                {
                    @Override
                    public void handle( final Event event )
                    {
                        if( event instanceof LabelChangedEvent )
View Full Code Here

        }
       
        final List<Control> relatedControls = new ArrayList<Control>();
        this.textField.setData( RELATED_CONTROLS, relatedControls );
       
        final Listener actionHandlerListener = new Listener()
        {
            @Override
            public void handle( final Event event )
            {
                if( event instanceof PostExecuteEvent )
View Full Code Here

        final MasterDetailsContentNodePart node = (MasterDetailsContentNodePart) getPart();
        final MasterDetailsEditorPagePart page = node.nearest( MasterDetailsEditorPagePart.class );
       
        this.service = page.service( ProblemsTraversalService.class );
       
        final Listener listener = new Listener()
        {
            @Override
            public void handle( final Event event )
            {
                refreshVisibility();
View Full Code Here

       
        if( this.actionHandler != null )
        {
            if( this.actionHandlerListener == null )
            {
                this.actionHandlerListener = new Listener()
                {
                    @Override
                    public void handle( final Event event )
                    {
                        if( event instanceof SapphireActionHandler.EnablementChangedEvent )
View Full Code Here

    {
        if( this.action == null )
        {
            this.action = getAction( this.actionId );
           
            this.actionListener = new Listener()
            {
                @Override
                public void handle( final Event event )
                {
                    if( event instanceof SapphireAction.HandlersChangedEvent )
View Full Code Here

   
    protected void initVersionCompatibilityService()
    {
        this.versionCompatibilityTargetService = VersionCompatibilityTargetService.find( context( Element.class ), context( PropertyDef.class ) );
       
        this.versionCompatibilityTargetServiceListener = new Listener()
        {
            @Override
            public void handle( final Event event )
            {
                refresh();
View Full Code Here

    {
        super.init( action, def );
       
        final Element element = ( (MasterDetailsContentNodePart) getPart() ).getLocalModelElement();
       
        final Listener listener = new FilteredListener<PropertyContentEvent>()
        {
            @Override
            protected void handleTypedEvent( final PropertyContentEvent event )
            {
                refreshVisibility();
            }
        };
       
        element.attach( listener, ModelPath.ALL_DESCENDENTS );

        refreshVisibility();
       
        attach
        (
            new Listener()
            {
                @Override
                public void handle( final Event event )
                {
                    if( event instanceof DisposeEvent )
View Full Code Here

                    handler.execute( getManager().context() );
                }
            }
        );
           
        final Listener handlerListener = new Listener()
        {
            @Override
            public void handle( final Event event )
            {
                final Runnable op = new Runnable()
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.Listener

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.