Examples of performStringSubstitution()


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

    public String getResolvedIvySettingsPath() throws IvyDEException {
        String url;
        IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
        try {
            url = manager.performStringSubstitution(ivySettingsPath, 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()

   * @return whether the expression contained any variable values
   * @exception CoreException if variable resolution fails
   */
  private static String getValue(String expression) throws CoreException {
    IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
    return manager.performStringSubstitution(expression);
  }

  /**
   * Validates the variables of the given string to determine if all variables are valid
   *
 
View Full Code Here

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

   * @return whether the expression contained any variable values
   * @exception CoreException if variable resolution fails
   */
  private static String getValue(String expression) throws CoreException {
    IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
    return manager.performStringSubstitution(expression);
  }

  /**
   * Validates the variables of the given string to determine if all variables are valid
   *
 
View Full Code Here

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

   * @return whether the expression contained any variable values
   * @exception CoreException if variable resolution fails
   */
  private static String getValue(String expression) throws CoreException {
    IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
    return manager.performStringSubstitution(expression);
  }

  /**
   * Validates the variables of the given string to determine if all variables are valid
   *
 
View Full Code Here

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

        if (text == null) {
            return ""; //$NON-NLS-1$
        }

        final IStringVariableManager mgr = VariablesPlugin.getDefault().getStringVariableManager();
        return mgr.performStringSubstitution(text);
    }

    /**
     * Determines if the {@link IPluginModelBase} is a workspace resource
     *
 
View Full Code Here

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

          return true;

        IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
        String substitutedFileName;
        try {
          substitutedFileName = manager.performStringSubstitution(fileName);
        } catch (CoreException e) {
          // It's apparently invalid
          return false;
        }
View Full Code Here

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

    String dir = Activator.getDefault().getPreferenceStore()
        .getString(UIPreferences.DEFAULT_REPO_DIR);
    IStringVariableManager manager = VariablesPlugin.getDefault()
        .getStringVariableManager();
    try {
      return manager.performStringSubstitution(dir);
    } catch (CoreException e) {
      return ""; //$NON-NLS-1$
    }
  }
View Full Code Here

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

        tool.setClassLoader(classLoader);
        tool.setDebugInformationGenerated(profile.isDebugInformationGenerated());
        tool.setSourceMapsFileGenerated(profile.isSourceMapsGenerated());
        tool.setSourceFilesCopied(profile.isSourceFilesCopied());
        String targetDir = profile.getTargetDirectory();
        tool.setTargetDirectory(new File(varManager.performStringSubstitution(targetDir, false)));
        tool.setTargetFileName(profile.getTargetFileName());
        tool.setMinifying(profile.isMinifying());
        tool.setRuntime(mapRuntime(profile.getRuntimeMode()));
        tool.setMainClass(profile.getMainClass());
        tool.getProperties().putAll(profile.getProperties());
View Full Code Here

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

        tool.setMainClass(profile.getMainClass());
        tool.getProperties().putAll(profile.getProperties());
        tool.setIncremental(profile.isIncremental());
        String cacheDir = profile.getCacheDirectory();
        tool.setCacheDirectory(!cacheDir.isEmpty() ?
                new File(varManager.performStringSubstitution(cacheDir, false)) : null);
        for (ClassHolderTransformer transformer : instantiateTransformers(profile, classLoader)) {
            tool.getTransformers().add(transformer);
        }
        for (Map.Entry<String, String> entry : profile.getClassAliases().entrySet()) {
            ClassAlias classAlias = new ClassAlias();
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.