Package com.volantis.mcs.eclipse.core

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


     * @param resource The IResource.
     */
    private boolean inPolicySource(IResource resource) {
        boolean result = false;
        try {
            MCSProjectNature mcsNature = (MCSProjectNature)
                    getProject().getNature(MCSProjectNature.NATURE_ID);
            IPath policySource = mcsNature.getPolicySourcePath();
            IPath resourcePath = resource.getFullPath();

            // Prepend the policySource with the path of the project so that
            // we get the right device and prefix that we expect the
            // resourcePath to have.
            IPath projectPath = mcsNature.getProject().getFullPath();
            IPath fullPolicySource = projectPath.append(policySource);
            result = fullPolicySource.isPrefixOf(resourcePath);
        } catch (CoreException e) {
            EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
        } catch (IllegalStateException e) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.core.MCSProjectNature

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.