Examples of IDynamicVariable


Examples of org.eclipse.core.variables.IDynamicVariable

    } else {
      name = text;
    }
    IValueVariable valueVariable = manager.getValueVariable(name);
    if (valueVariable == null) {
      IDynamicVariable dynamicVariable = manager.getDynamicVariable(name);
      if (dynamicVariable == null) {
        // no variables with the given name
        if (reportUndefinedVariables) {
          throw new CoreException(new Status(IStatus.ERROR, VariablesPlugin.getUniqueIdentifier(), VariablesPlugin.INTERNAL_ERROR, NLS.bind(VariablesMessages.StringSubstitutionEngine_3, new String[]{name}), null));
        }
        // leave as is
        return getOriginalVarText(var);
      }
     
      if (resolveVariables) {
        fSubs = true;
        return dynamicVariable.getValue(arg);
      }
      //leave as is
      return getOriginalVarText(var);
    }
   
View Full Code Here

Examples of org.eclipse.core.variables.IDynamicVariable

        if (!project.getFolder(".bin/platform/system").exists()) {
            project.getFolder(".bin/platform/system").createLink(getKarafPlatformModel().getPluginRootDirectory(), 0, monitor);
        }

        // TODO: Is this the right way to add the current installation?
        final IDynamicVariable eclipseHomeVariable = VariablesPlugin.getDefault().getStringVariableManager().getDynamicVariable("eclipse_home");
        final String eclipseHome = eclipseHomeVariable.getValue("");

        if (!project.getFolder(".bin/platform/eclipse").exists()) {
            project.getFolder(".bin/platform/eclipse").create(true, true, monitor);
        }
View Full Code Here

Examples of org.eclipse.core.variables.IDynamicVariable

        newKarafProject.getProjectHandle().getFolder(".bin/platform/lib").createLink(workingPlatformModel.getParentKarafModel().getRootDirectory().append("lib"), 0, monitor);
        newKarafProject.getProjectHandle().getFolder(".bin/platform/system").createLink(workingPlatformModel.getParentKarafModel().getPluginRootDirectory(), 0, monitor);
        newKarafProject.getProjectHandle().getFolder(".bin/runtime").create(true, true, monitor);

        // TODO: Is this the right way to add the current installation?
        final IDynamicVariable eclipseHomeVariable = VariablesPlugin.getDefault().getStringVariableManager().getDynamicVariable("eclipse_home");
        final String eclipseHome = eclipseHomeVariable.getValue("");
        newKarafProject.getProjectHandle().getFolder(".bin/platform/eclipse").create(true, true, monitor);
        newKarafProject.getProjectHandle().getFolder(".bin/platform/eclipse/dropins").createLink(new Path(eclipseHome).append("dropins"), 0, monitor);
        newKarafProject.getProjectHandle().getFolder(".bin/platform/eclipse/plugins").createLink(new Path(eclipseHome).append("plugins"), 0, monitor);

        newKarafProject.getProjectHandle().setPersistentProperty(
View Full Code Here

Examples of org.eclipse.core.variables.IDynamicVariable

      public void run() {
        selectionProvider.setSelection(structuredSelection);
      }
    });

    IDynamicVariable dynamicVariable = VariablesPlugin.getDefault()
        .getStringVariableManager().getDynamicVariable(variableName);
    String value = dynamicVariable.getValue(argument);
    assertEquals(expected, value);
  }
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.