Examples of IStringVariableManager


Examples of org.eclipse.core.variables.IStringVariableManager

        String path = fMainModuleText.getText();
        IFile file = null;
        if (path.length() > 0) {
            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

        if (result) {
            setMessage(null);
            setErrorMessage(null);

            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

    assembler.destroyApplication(this.appInfo.jarPath);
  }

  private Openejb storeProperties(Properties properties, ConfigurationFactory factory) {

    IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
    Openejb openejb = new Openejb();
    for (Object k : properties.keySet()) {
      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

Examples of org.eclipse.core.variables.IStringVariableManager

        this.loadSettingsOnDemand = setup.loadSettingsOnDemand;
    }

    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

        return propertyFiles;
    }

    public List getResolvedPropertyFiles() throws IvyDEException {
        List resolvedProps = new ArrayList();
        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

   * @param expression expression with variables
   * @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);
  }
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager

   *
   * @param expression expression with variables
   * @exception CoreException if a variable is specified that does not exist
   */
  private static void validateVaribles(String expression) throws CoreException {
    IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
    manager.validateStringVariables(expression);
  }
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager

   * @param expression expression with variables
   * @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);
  }
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager

   *
   * @param expression expression with variables
   * @exception CoreException if a variable is specified that does not exist
   */
  private static void validateVaribles(String expression) throws CoreException {
    IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
    manager.validateStringVariables(expression);
  }
View Full Code Here

Examples of org.eclipse.core.variables.IStringVariableManager

   * @param expression expression with variables
   * @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);
  }
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.