Examples of MCSProjectNature


Examples of com.volantis.mcs.eclipse.ab.core.MCSProjectNature

        return reader;
    }

    // javadoc inherited
    public void createControl() {
        final MCSProjectNature nature = new MCSProjectNature() {
            public IPath getPolicySourcePath() {
                return new Path("/tmp");
            }
        };

        project = new ProjectStub() {
            public IProjectNature getNature(String id) {
                return nature;
            }
        };
        nature.setProject(project);

        if (!initializeComplete) {
            initializeAttributeList ();
            initializeComplete = true;
        }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

        // if this is an mcs project then check if the device repository is
        // valid
        IProject project = context.getPolicyResource().getProject();
        try {
            if (project.hasNature(MCSProjectNature.NATURE_ID)) {
                MCSProjectNature projectNature;
                projectNature = MCSProjectNature.getMCSProjectNature(project);
                validDeviceRepository = projectNature.
                        hasValidDeviceRepository();
            }
        } catch (CoreException coreException) {
            EclipseCommonPlugin.handleError(ABPlugin.getDefault(), coreException);
        }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

            // if this is an mcs project then check if the device repository is
            // valid
            IProject project = file.getProject();
            try {
                if (project.hasNature(MCSProjectNature.NATURE_ID)) {
                    MCSProjectNature projectNature;
                    projectNature = MCSProjectNature.getMCSProjectNature(project);
                    validDeviceRepository = projectNature.
                            hasValidDeviceRepository();
                }
            } catch (CoreException coreException) {
                EclipseCommonPlugin.handleError(ABPlugin.getDefault(), coreException);
            }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

        editorContext.refreshCachedDOM();
    }

    public String getPolicyName() {
        IFile file = (IFile) editorContext.getResource();
        MCSProjectNature nature = MCSProjectNature.getMCSProjectNature(getProject());
        IPath policySourcePath = nature.getPolicySourcePath();
        IFolder policySourceFolder = getProject().getFolder(policySourcePath);
        IPath policyRoot = policySourceFolder.getProjectRelativePath();
        IPath policyPath = file.getProjectRelativePath();
        String policyName = null;
        if (policyRoot.isPrefixOf(policyPath)) {
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

    public void setUnderlyingPolicyBuilderManager(
            EclipsePolicyBuilderManager underlying) {
    }

    private IPath getPolicySourcePath() throws CoreException {
        MCSProjectNature mcsNature = (MCSProjectNature)
                project.getNature(MCSProjectNature.NATURE_ID);
        return mcsNature.getPolicySourcePath();
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

    }

    // Javadoc inherited
    public String getPolicyName() {
        IFile file = (IFile) getContext().getResource();
        MCSProjectNature nature = MCSProjectNature.getMCSProjectNature(getProject());
        IPath policySourcePath = nature.getPolicySourcePath();
        IFolder policySourceFolder = getProject().getFolder(policySourcePath);
        IPath policyRoot = policySourceFolder.getProjectRelativePath();
        IPath policyPath = file.getProjectRelativePath();
        String policyName = null;
        if (policyRoot.isPrefixOf(policyPath)) {
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

            // if this is an mcs project then check if the device repository is
            // valid
            IProject project = file.getProject();
            try {
                if (project.hasNature(MCSProjectNature.NATURE_ID)) {
                    MCSProjectNature projectNature;
                    projectNature = MCSProjectNature.getMCSProjectNature(project);
                    validDeviceRepository = projectNature.
                            hasValidDeviceRepository();
                }
            } catch (CoreException coreException) {
                EclipseCommonPlugin.handleError(BuilderPlugin.getDefault(), coreException);
            }
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

           String policySrc =
                   projectPropertiesPage.getPolicySourceDirectory();
           MCSProjectNature.setPolicySourcePath(project, policySrc);

           // Create the nature.
           MCSProjectNature nature = new MCSProjectNature();
           nature.setProject(project);
           nature.configure();

           // Add the nature to the project.
           IProjectDescription projectDescription = project.getDescription();
           String natureIds [] = projectDescription.getNatureIds();
           // Create an ArrayList out of the asList() method because the
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

           // Unset the default policy source directory.
           MCSProjectNature.setPolicySourcePath(project, null);

           // Create the nature.
           MCSProjectNature nature = new MCSProjectNature();
           nature.setProject(project);
           nature.configure();

           // Add the nature to the project.
           IProjectDescription projectDescription = project.getDescription();
           String natureIds [] = projectDescription.getNatureIds();
           // Create an ArrayList out of the asList() method because the
View Full Code Here

Examples of com.volantis.mcs.eclipse.core.MCSProjectNature

            // if this is an mcs project then check if the device repository is
            // valid
            IProject project = file.getProject();
            try {
                if (project.hasNature(MCSProjectNature.NATURE_ID)) {
                    MCSProjectNature projectNature;
                    projectNature = MCSProjectNature.getMCSProjectNature(project);
                    validDeviceRepository = projectNature.
                            hasValidDeviceRepository();
                }
            } catch (CoreException coreException) {
                EclipseCommonPlugin.handleError(BuilderPlugin.getDefault(), coreException);
            }
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.