Examples of SapphireAction


Examples of org.eclipse.sapphire.ui.SapphireAction

                handleJumpCommand();
                return null;
            }
        };
       
        final SapphireAction jumpAction = actions.getAction( SapphireActionSystem.ACTION_JUMP );
        jumpActionHandler.init( jumpAction, null );
        jumpAction.addHandler( jumpActionHandler );
       
        this.table.addDisposeListener
        (
            new DisposeListener()
            {
                public void widgetDisposed( final DisposeEvent event )
                {
                    display.removeFilter( SWT.KeyDown, keyListener );
                    display.removeFilter( SWT.KeyUp, keyListener );
                    jumpAction.removeHandler( jumpActionHandler );
                }
            }
        );
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.SapphireAction

        super.init();
       
        this.definition = (IDiagramNodeDefaultActionDef)super.definition;
        final String actionId = this.definition.getActionId().content();
        final String actionHandlerId = this.definition.getActionHandlerId().content();
        final SapphireAction action = getAction( actionId );
        this.label = this.definition.getLabel().localized( CapitalizationType.FIRST_WORD_ONLY, false );
        this.description = this.definition.getLabel().localized( CapitalizationType.NO_CAPS, false );
       
        if( actionHandlerId == null )
        {
            this.actionHandler = action.getFirstActiveHandler();
        }
        else
        {
            for( SapphireActionHandler h : action.getActiveHandlers() )
            {
                if( h.getId().equalsIgnoreCase( actionHandlerId ) )
                {
                    this.actionHandler = h;
                    break;
View Full Code Here

Examples of org.eclipse.sapphire.ui.SapphireAction

       
        setPartName( partName );
       
        // Content Outline
       
        final SapphireAction outlineHideAction = getPart().getActions( CONTEXT_EDITOR_PAGE ).getAction( ACTION_OUTLINE_HIDE );
       
        final SapphireActionHandler outlineHideActionHandler = new SapphireActionHandler()
        {
            @Override
            protected Object run( final Presentation context )
            {
                setDetailsMaximized( ! isDetailsMaximized() );
                return null;
            }
        };
       
        outlineHideActionHandler.init( outlineHideAction, null );
        outlineHideActionHandler.setChecked( isDetailsMaximized() );
        outlineHideAction.addHandler( outlineHideActionHandler );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.