Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Listener


    @Override
    protected void initValidationService()
    {
        this.possibleValuesService = context( Property.class ).service( PossibleValuesService.class );
       
        this.possibleValuesServiceListener = new Listener()
        {
            @Override
            public void handle( final Event event )
            {
                refresh();
View Full Code Here


  public void init(SapphireAction action, ActionHandlerDef def)
  {
    super.init(action, def);

        SapphireDiagramEditorPagePart part = (SapphireDiagramEditorPagePart) getPart();
    part.attach(new Listener()
    {
      @Override
      public void handle(final Event e)
      {
                if( e instanceof SelectionChangedEvent )
View Full Code Here

            }
        );
        this.property = FunctionUtil.getFunctionProperty(this.modelElement, this.functionResult);
        if (this.property != null)
        {
            this.propertyListener = new Listener()
            {
                @Override
                public void handle( final Event event )
                {
                    if( event instanceof PropertyValidationEvent )
View Full Code Here

    {
        super.init( action, def );
       
        getPart().nearest( SapphireDiagramEditorPagePart.class ).attach
        (
            new Listener()
            {
                @Override
                public void handle( Event event )
                {
                    if( event instanceof ZoomLevelEvent )
View Full Code Here

  @Override
  public void init(SapphireAction action, ActionHandlerDef def) {
    super.init(action, def);

      DiagramConnectionPart part = (DiagramConnectionPart) getPart();
    part.attach(new Listener() {
      @Override
      public void handle(final Event e) {
                if( e instanceof SelectionChangedEvent ) {
                    broadcast( new EnablementChangedEvent() );
                } else if (e instanceof ConnectionBendpointsEvent) {
View Full Code Here

    }   
  }
 
  private void addDiagramPartListener()
  {
        this.diagramEditorPagePartListener = new Listener()
        {
            @Override
            public void handle( final Event event )
            {
                if ( event instanceof DiagramNodeEvent )
View Full Code Here

    {
        super.init( action, def );
       
        getPart().nearest( SapphireDiagramEditorPagePart.class ).attach
        (
            new Listener()
            {
                @Override
                public void handle( Event event )
                {
                    if( event instanceof ZoomLevelEvent )
View Full Code Here

    {
        super.init( action, def );
       
        getPart().nearest( SapphireDiagramEditorPagePart.class ).attach
        (
            new Listener()
            {
                @Override
                public void handle( Event event )
                {
                    if( event instanceof ZoomLevelEvent )
View Full Code Here

    {
      this.endpointReferenceValue = resolveEndpointReferenceValue(modelElement, endpointPath);
      if (endpointReferenceValue != null)
      {
        ReferenceService<?> refService = endpointReferenceValue.service(ReferenceService.class);
        this.referenceServiceListener = new Listener()
      {
        @Override
        public void handle( Event event )
        {
          handleEndpointReferenceChange();
View Full Code Here

        this.selections.add(this);
        this.propertiesViewContributionManager = new PropertiesViewContributionManager( this, this.modelElement );
               
        attach
        (
            new Listener()
            {
                @Override
                public void handle( final Event event )
                {
                    if( event instanceof SelectionChangedEvent )
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.