Examples of EditorPageDef


Examples of org.eclipse.sapphire.ui.def.EditorPageDef

    {
        ElementType type = this.type;
       
        if( type == null )
        {
            final EditorPageDef def = getDefinition( this.pageDefinitionId ).resolve();
           
            if( def == null )
            {
                throw new IllegalStateException();
            }
           
            final JavaType elementJavaType = def.getElementType().target();
            type = ElementType.read( (Class<?>) elementJavaType.artifact(), true );
        }
       
        final XmlEditorResourceStore store = createResourceStore( this.sourcePage );
        return type.instantiate( new RootXmlResource( store ) );
View Full Code Here

Examples of org.eclipse.sapphire.ui.def.EditorPageDef

   
    protected IEditorPart createPage( final Reference<EditorPageDef> definition )
    {
        IEditorPart page = null;

        final EditorPageDef def = definition.resolve();

        if( def instanceof MasterDetailsEditorPageDef )
        {
            page = new MasterDetailsEditorPage( this, getModelElement(), definition );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ui.def.EditorPageDef

    @Override
    protected void init()
    {
        super.init();
       
        final EditorPageDef def = definition();
       
        this.pageHeaderTextFunctionResult = initExpression
        (
            def.getPageHeaderText().content(),
            String.class,
            null,
            new Runnable()
            {
                public void run()
                {
                    broadcast( new PageHeaderTextEvent( SapphireEditorPagePart.this ) );
                }
            }
        );

        this.pageHeaderImageFunctionResult = initExpression
        (
            def.getPageHeaderImage().content(),
            ImageData.class,
            null,
            new Runnable()
            {
                public void run()
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.