Package org.eclipse.wst.common.frameworks.datamodel

Examples of org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation.execute()


                model.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, project.getName());
                try {
                    IFacetedProject facetedProject = ProjectFacetsManager.create(project);
                    model.setProperty(IFacetProjectCreationDataModelProperties.FACET_RUNTIME, facetedProject.getPrimaryRuntime());
                    IDataModelOperation op = new ImportDeploymentPlanOperation(model);
                    op.execute(new NullProgressMonitor(), null);
                } catch (Exception e) {
                   throw new PartInitException(e.getMessage());
                }
               
                try {
View Full Code Here


    IDataModel model = DataModelFactory.createDataModel(new SharedLibEntryDataModelProvider());
    model.setProperty(ISharedLibEntryCreationDataModelProperties.MODULES, module);
    model.setProperty(ISharedLibEntryCreationDataModelProperties.SERVER, getServer());
    IDataModelOperation op = new SharedLibEntryCreationOperation(model);
    try {
      op.execute(monitor, null);
    } catch (ExecutionException e) {
      return new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, e.getMessage(), e.getCause());
    }
    return Status.OK_STATUS;
  }
View Full Code Here

                  setContextRootPropertyIfNeeded(c, contextRoot);


                  IDataModelOperation notificationOperation = ((IDataModelOperation) model.getProperty(FacetDataModelProvider.NOTIFICATION_OPERATION));
                  if (notificationOperation != null) {
                    notificationOperation.execute(monitor, null);
                  }
                }
              }
            }catch (ExecutionException e) {
              LOG.error(Messages.WarVersionChangeListener_Error_Notifying_WebApp_Version_Change, e);
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.