Examples of performStringSubstitution()


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

            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];
View Full Code Here

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

        // Perform variable substition on the pattern.
        IStringVariableManager varManager = VariablesPlugin.getDefault().getStringVariableManager();
        String pattern;
        try {
            pattern = varManager.performStringSubstitution(retrievePattern, false);
        } catch (CoreException e) {
            return new Status(IStatus.ERROR, IvyPlugin.ID, IStatus.ERROR,
                    "Incorrect use of variables in retrievePattern '" + retrievePattern + "'."
                            + e.getMessage(), e);
        }
View Full Code Here

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

            resolvedPath = inputPath.replaceAll("\\$\\{ivyproject_loc\\}", "\\${workspace_loc:"
                    + project.getName() + "}");
        } else {
            resolvedPath = inputPath;
        }
        resolvedPath = manager.performStringSubstitution(resolvedPath, false);
        resolvedPath = resolvedPath.trim();
        if (resolvedPath.length() == 0) {
            // no file or url to set
            return;
        }
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()

        try
        {
            IStringVariableManager varMgr =
                VariablesPlugin.getDefault().getStringVariableManager();
           
            perlExe = varMgr.performStringSubstitution(perlExe);
        }
        catch (CoreException e)
        {
            PerlEditorPlugin.getDefault().getLog().log(
                new Status(Status.ERROR,
View Full Code Here

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

                            // for our purposes, as it only works in context of
                            // a selected resource (see ResourceResolver.java:40);
                            // however, we don't guarantee that there is any resource
                            // selected, leading to exceptions (or the selected resource
                            // may be something accidental, leading to erratic behavior)
                            String expandedPath = varMgr
                                .performStringSubstitution(path);
                            path = expandedPath;
                        }
                        catch (CoreException e)
                        {
View Full Code Here

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

     * @return substituted string
     * @throws CoreException if substitution fails
     */
    protected String performStringSubstitution(String expression) throws CoreException {
        IStringVariableManager varManager = VariablesPlugin.getDefault().getStringVariableManager();
        return varManager.performStringSubstitution(expression);
    }

    /**
     * Method validates the given <tt>grinder.properties</tt> path.
     *
 
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);
                    IFile[] files = root.findFilesForLocation(new Path(path));
                    if (files.length > 0) {
                        file = files[0];
                    }
                } catch (CoreException e) {
View Full Code Here

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

            IStringVariableManager stringVariableManager = VariablesPlugin.getDefault()
                                                                          .getStringVariableManager();
            String location = fMainModuleText.getText();
            try {

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

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

      Object v = properties.get(k);
      if (v instanceof String) {
        String key = (String) k;
        String value = (String) v;
        try {
          value = manager.performStringSubstitution(value, false);
        } catch (CoreException e) {
          e.printStackTrace();
        }
        SystemInstance.get().setProperty(key, value);
        if (value.startsWith("new://")) {
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.