Пример #1
0
 public IExecutionEnvironment getExecutionEnvironment() {
   IEnvironment environment = getEnvironment();
   if (environment != null) {
     return (IExecutionEnvironment) environment.getAdapter(IExecutionEnvironment.class);
   }
   return null;
 }
 private Map getNativeEnvironment() {
   IEnvironment environment = fDialog.getEnvironment();
   IExecutionEnvironment execEnvironment =
       (IExecutionEnvironment) environment.getAdapter(IExecutionEnvironment.class);
   Map stringVars = execEnvironment.getEnvironmentVariables(true);
   HashMap vars = new HashMap();
   for (Iterator i = stringVars.keySet().iterator(); i.hasNext(); ) {
     String key = (String) i.next();
     String value = (String) stringVars.get(key);
     vars.put(key, new EnvironmentVariable(key, value));
   }
   return vars;
 }