Package org.eclipse.sapphire.workspace

Examples of org.eclipse.sapphire.workspace.CreateWorkspaceFileOp


    }

    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
        final CreateWorkspaceFileOp op = (CreateWorkspaceFileOp) context.getPart().getLocalModelElement();
       
        if( op.getFile().validation().contains( PROBLEM_FILE_EXISTS ) )
        {
            final PropertyEditorAssistContribution.Factory contribution = PropertyEditorAssistContribution.factory();
           
            contribution.text( "<p><a href=\"action\" nowrap=\"true\">" + escapeForXml( action.text() ) + "</a></p>" );
           
            contribution.link
            (
                "action",
                new Runnable()
                {
                    public void run()
                    {
                        op.setOverwriteExistingFile( true );
                    }
                }
            );
           
            final PropertyEditorAssistSection section = context.getSection( SECTION_ID_ACTIONS );
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.workspace.CreateWorkspaceFileOp

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.