Examples of ISapphirePart


Examples of org.eclipse.sapphire.ui.ISapphirePart

public class OutlineNodeListMemberActionHandlerCondition extends SapphireCondition
{
    @Override
    protected boolean evaluate()
    {
        final ISapphirePart part = getPart();
       
        if( part instanceof MasterDetailsContentNodePart )
        {
            return check( (MasterDetailsContentNodePart) part );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

    {
        final Element element = node.getModelElement();
       
        if( element.parent() instanceof ElementList && ! element.parent().definition().isReadOnly() )
        {
            final ISapphirePart parentPart = node.parent();
           
            if( parentPart != null && parentPart instanceof MasterDetailsContentNodePart )
            {
                final MasterDetailsContentNodePart parentNode = (MasterDetailsContentNodePart) parentPart;
               
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

                return true;
            }
           
            if( property instanceof ElementHandle )
            {
                final ISapphirePart parentPart = node.parent();
               
                if( parentPart != null && parentPart instanceof MasterDetailsContentNodePart )
                {
                    final MasterDetailsContentNodePart parentNode = (MasterDetailsContentNodePart) parentPart;
                   
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

        }
       
        // Account for propagated key bindings. Start the search with this part's
        // main action context and continue up the parts hierarchy.
       
        ISapphirePart part = localGroupOfActions.getPart();
       
        while( part != null )
        {
            final String mainActionContext = part.getMainActionContext();
           
            if( mainActionContext != null )
            {
                final SapphireActionGroup groupOfActions = part.getActions( mainActionContext );
               
                if( handleKeyEvent( event, groupOfActions, true ) )
                {
                    return;
                }
            }
           
            part = part.parent();
        }
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

    }

    @Override
    protected Object run( final Presentation context )
    {
        final ISapphirePart part = getPart();
        final CalendarEditor editor = part.nearest( CalendarEditor.class );
        final Element modelElement = part.getModelElement();
       
        ContactDetailsJumpHandler.jump( editor, modelElement );
       
        return null;
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
          ISapphirePart part = context.find(ISapphirePart.class);
          if (part instanceof SapphireDiagramEditorPagePart)
          {
            SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
            DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
            if (pageDef.getLayoutPersistence().content() == LayoutPersistence.WORKSPACE)
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
          ISapphirePart part = context.find(ISapphirePart.class);
          if (part instanceof SapphireDiagramEditorPagePart)
          {
            SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
            DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
            if (pageDef.getLayoutPersistence().content() == LayoutPersistence.SIDE_BY_SIDE)
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
          ISapphirePart part = context.find(ISapphirePart.class);
          if (part instanceof SapphireDiagramEditorPagePart)
          {
            SapphireDiagramEditorPagePart diagramPagePart = (SapphireDiagramEditorPagePart)part;
            DiagramEditorPageDef pageDef = diagramPagePart.getPageDef();
            if (pageDef.getLayoutPersistence().content() == LayoutPersistence.PROJECT)
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

public abstract class PropertyEditorCondition extends SapphireCondition
{
    public final boolean evaluate()
    {
        final ISapphirePart part = getPart();
       
        if( part instanceof PropertyEditorPart )
        {
            return evaluate( (PropertyEditorPart) part );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ui.ISapphirePart

    }
   
    @Override
    protected Object run( final Presentation context )
    {
        final ISapphirePart part = getPart();
        final List<MasterDetailsContentNodePart> nodesToDelete;
       
        if( part instanceof MasterDetailsContentNodePart )
        {
            nodesToDelete = Collections.singletonList( (MasterDetailsContentNodePart) part );
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.