Examples of performStringSubstitution()


Examples of org.eclipse.core.variables.IStringVariableManager.performStringSubstitution()

  }
 
  public String[] getParsedArguments(IProject project) throws CoreException {
    String extraOptionsString = get(project);
    IStringVariableManager varMgr = VariablesPlugin.getDefault().getStringVariableManager();
    extraOptionsString = varMgr.performStringSubstitution(extraOptionsString, true);
    return DebugPlugin.parseArguments(extraOptionsString);
  }
 
}
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager.performStringSubstitution()

                + project.getName() + "}");
        } else {
            path = ivySettingsPath;           
        }
        try {
            url = manager.performStringSubstitution(path, false);
        } catch (CoreException e) {
            throw new IvyDEException("Unrecognized variables",
                    "Unrecognized variables in the Ivy settings file " + ivySettingsPath, e);
        }
        if (ivySettingsPath.trim().startsWith("$")) {
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager.performStringSubstitution()

        IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
        try {
            Iterator it = propertyFiles.iterator();
            while (it.hasNext()) {
                String propFile = (String) it.next();
                String resolvedProp = manager.performStringSubstitution(propFile, false);
                resolvedProps.add(resolvedProp);
            }
        } catch (CoreException e) {
            throw new IvyDEException("Unrecognized variables",
                    "Unrecognized variables in the Ivy settings file " + ivySettingsPath, e);
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager.performStringSubstitution()

            IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
           
            if (path.startsWith("${workspace_loc:")) { //$NON-NLS-1$
                IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
                try {
                    path = manager.performStringSubstitution(path, false);
                    IContainer[] containers = root.findContainersForLocation(new Path(path));
                    if (containers.length > 0) {
                        res = containers[0];
                    }
                } catch (CoreException e) {
View Full Code Here

Examples of org.python.pydev.core.docutils.StringSubstitution.performStringSubstitution()

                String value = (String) entry.getValue();
                // translate any string substitution variables
                String translated = value;
                try {
                    StringSubstitution stringSubstitution = new StringSubstitution(nature);
                    translated = stringSubstitution.performStringSubstitution(value, false);
                } catch (Exception e) {
                    Log.log(e);
                }
                env.put(key, translated);
            }
View Full Code Here

Examples of org.python.pydev.core.docutils.StringSubstitution.performStringSubstitution()

        if (path.length() > 0) {
            IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();

            StringSubstitution stringSubstitution = getStringSubstitution(root);
            try {
                path = stringSubstitution.performStringSubstitution(path, false);
                IFile[] files = root.findFilesForLocationURI(new File(path).toURI());
                if (files.length > 0) {
                    file = files[0];
                }
            } catch (CoreException e) {
View Full Code Here

Examples of org.python.pydev.core.docutils.StringSubstitution.performStringSubstitution()

                        || identifier.equals(Constants.ID_IRONPYTHON_UNITTEST_LAUNCH_CONFIGURATION_TYPE)
                        || identifier.equals(Constants.ID_PYTHON_COVERAGE_LAUNCH_CONFIGURATION_TYPE)) {

                    //may have  multiple files selected for the run for unitest and code-coverage
                    for (String loc : StringUtils.splitAndRemoveEmptyTrimmed(location, '|')) {
                        String expandedLocation = stringSubstitution.performStringSubstitution(loc);
                        File file = new File(expandedLocation);
                        if (!file.exists()) {
                            setErrorMessage(com.aptana.shared_core.string.StringUtils.format("The file \"%s\" does not exist.", file));
                            result = false;
                            break;
View Full Code Here

Examples of org.python.pydev.core.docutils.StringSubstitution.performStringSubstitution()

                            break;
                        }

                    }
                } else {
                    String expandedLocation = stringSubstitution.performStringSubstitution(location);
                    File file = new File(expandedLocation);
                    if (!file.exists()) {
                        setErrorMessage(com.aptana.shared_core.string.StringUtils.format("The file \"%s\" does not exist.", file));
                        result = false;
View Full Code Here

Examples of org.python.pydev.core.docutils.StringSubstitution.performStringSubstitution()

        if (path.length() > 0) {
            IResource res = null;
            IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
            StringSubstitution stringSubstitution = this.mainModuleTab.fMainModuleBlock.getStringSubstitution(root);
            try {
                path = stringSubstitution.performStringSubstitution(path, false);
                IContainer[] containers = root.findContainersForLocation(new Path(path));
                if (containers.length > 0) {
                    res = containers[0];
                }
            } catch (CoreException e) {
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.