Examples of eResource()


Examples of org.locationtech.udig.project.internal.ProjectElement.eResource()

   * Test method for 'org.locationtech.udig.project.ui.internal.actions.Delete.operate(ProjectElement)'
   */
  @Test
  public void testOperateProjectElement() {
    ProjectElement element = project.getElementsInternal().get(0);
    Resource resource=element.eResource();
    DeleteAccessor deleteAction=new DeleteAccessor();
    deleteAction.runDoDelete(element, false, Window.OK);
   
    assertNull(element.getProject());
    assertNull(element.eResource());
View Full Code Here

Examples of org.locationtech.udig.project.internal.ProjectRegistry.eResource()

            }

            URI projectURI = URI.createURI(uri.toString());

            final ProjectRegistry registry = getProjectRegistry();
            Resource registryResource = registry.eResource();
            if (registryResource == null) {
                System.out.println("Registery was unable to load"); //$NON-NLS-1$
                throw new Error(Messages.ProjectRegistryImpl_load_error);
            }
View Full Code Here

Examples of org.openhab.model.persistence.persistence.CronStrategy.eResource()

          CronStrategy cronStrategy = (CronStrategy) strategy;
          String cronExpression = cronStrategy.getCronExpression();
          JobKey jobKey = new JobKey(strategy.getName(), modelName);
          try {
                JobDetail job = newJob(PersistItemsJob.class)
                  .usingJobData(PersistItemsJob.JOB_DATA_PERSISTMODEL, cronStrategy.eResource().getURI().trimFileExtension().path())
                  .usingJobData(PersistItemsJob.JOB_DATA_STRATEGYNAME, cronStrategy.getName())
                    .withIdentity(jobKey)
                    .build();
       
                Trigger quartzTrigger = newTrigger()
View Full Code Here

Examples of org.openhab.model.rule.rules.RuleModel.eResource()

        try {
            Object initialValue = var.getRight()==null ? null : scriptEngine.newScriptFromXExpression(var.getRight()).execute();
          evaluationContext.newValue(QualifiedName.create(var.getName()), initialValue);
        } catch (ScriptExecutionException e) {
          logger.warn("Variable '{}' on rule file '{}' cannot be initialized with value '{}': {}",
              new String[] { var.getName(), ruleModel.eResource().getURI().path(), var.getRight().toString(), e.getMessage() });
        }
      }
      }
      ruleModel.eAdapters().add(new RuleContextAdapter(evaluationContext));
    return evaluationContext;
View Full Code Here

Examples of org.openiaml.model.model.InternetApplication.eResource()

     
      // reload
      InternetApplication root = loader.loadDirectly(loadClass, logRuleSource);
     
      // we now try to do inference
      Resource resource = root.eResource();
      if (resource == null) {
        throw new IllegalArgumentException("EObject '" + root + "' has a null resource.");
      }
     
      ICreateElementsFactory handler = createCreateElementsFactory();
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.