Package org.eclipse.sapphire.ui.forms

Examples of org.eclipse.sapphire.ui.forms.MasterDetailsEditorPagePart


                      final ActionHandlerDef def )
    {
        super.init( action, def );
       
        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 )
View Full Code Here


        {
            return check( (MasterDetailsContentNodePart) part );
        }
        else if( part instanceof MasterDetailsEditorPagePart )
        {
            final MasterDetailsEditorPagePart page = (MasterDetailsEditorPagePart) part;
            final List<MasterDetailsContentNodePart> nodes = page.outline().getSelectedNodes();
           
            if( ! nodes.isEmpty() )
            {
                MasterDetailsContentNodePart parent = null;
               
                for( MasterDetailsContentNodePart node : page.outline().getSelectedNodes() )
                {
                    if( parent == null )
                    {
                        parent = node.getParentNode();
                    }
                    else if( parent != node.getParentNode() )
                    {
                        return false;
                    }
                }
               
                for( MasterDetailsContentNodePart node : page.outline().getSelectedNodes() )
                {
                    if( ! check( node ) )
                    {
                        return false;
                    }
View Full Code Here

    public FunctionResult evaluate( final FunctionContext context )
    {
        if( context instanceof PartFunctionContext )
        {
            final SapphirePart part = ( (PartFunctionContext) context ).part();
            final MasterDetailsEditorPagePart page = part.nearest( MasterDetailsEditorPagePart.class );
           
            if( page != null )
            {
                final Element element = part.getLocalModelElement();
               
                if( element instanceof Item )
                {
                    final Item item = (Item) element;
                    final MasterDetailsEditorPageState state = page.state();
   
                    return new FunctionResult( this, context )
                    {
                        private Listener listener;
                       
View Full Code Here

        {
            part = new FormPart();
        }
        else if( definition instanceof MasterDetailsEditorPageDef )
        {
            part = new MasterDetailsEditorPagePart();
        }
        else if( definition instanceof FormEditorPageDef )
        {
            part = new FormEditorPagePart();
        }
View Full Code Here

                }
            }
           
            if( contact != null )
            {
                final MasterDetailsEditorPagePart contactsFormPage = (MasterDetailsEditorPagePart) editor.getEditorPagePart( "Contacts" );
                final MasterDetailsContentOutline outline = contactsFormPage.outline();
                final MasterDetailsContentNodePart contactNode = outline.getRoot().findNode( contact );
               
                if( contactNode != null )
                {
                    contactNode.select();
View Full Code Here

                                    final DefinitionLoader.Reference<EditorPageDef> definition,
                                    final String pageName )
    {
        super( editor, element, definition );
       
        final MasterDetailsEditorPagePart part = getPart();
       
        this.presentation = new SwtPresentation( part, null, editor.getSite().getShell() )
        {
            @Override
            public void render()
            {
                throw new UnsupportedOperationException();
            }
        };
       
        String partName = pageName;
       
        if( partName == null )
        {
            partName = part.definition().getPageName().localized( CapitalizationType.TITLE_STYLE, false );
        }
       
        setPartName( partName );
       
        // Content Outline
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.forms.MasterDetailsEditorPagePart

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.