Examples of create()


Examples of org.dspace.content.MetadataField.create()

    public static DCType create(Context context) throws SQLException,
            AuthorizeException, IOException, NonUniqueMetadataException
        {
        MetadataField field = new MetadataField();
        field.setSchemaID(MetadataSchema.DC_SCHEMA_ID);
        field.create(context);
        return new DCType(context, field);
    }

    /**
     * Delete this DC type. This won't work if there are any DC values in the

Examples of org.dspace.content.MetadataSchema.create()

       
        if (s == null)
        {
            // Schema does not exist - create
            MetadataSchema schema = new MetadataSchema(namespace, name);
            schema.create(context);
            System.out.println("created");
        }
        else
        {
            // Schema exists - if it's the same namespace, allow the type imports to continue

Examples of org.dspace.identifier.ezid.EZIDRequest.create()

        EZIDResponse response;
        try {
            EZIDRequest request = requestFactory.getInstance(loadAuthority(),
                    loadUser(), loadPassword());
            response = request.create(identifier, crosswalkMetadata(object));
        } catch (IdentifierException | IOException | URISyntaxException e) {
            log.error("Identifier '{}' not registered:  {}", identifier, e.getMessage());
            return;
        }

Examples of org.eclim.plugin.core.project.ProjectManager.create()

    project.setDescription(desc, new NullProgressMonitor());

    for (String nature : newNatures){
      ProjectManager manager = ProjectManagement.getProjectManager(nature);
      if (manager != null) {
        manager.create(project, commandLine);
      }
    }

    if (newNatures.size() == 0){
      return Services.getMessage("project.nature.added.none");

Examples of org.eclipse.core.expressions.ElementHandler.create()

            .getDefault();
        final ExpressionConverter converter = ExpressionConverter
            .getDefault();
        final IConfigurationElement expressionElement = expressionElements[0];
        try {
          whenExpression = elementHandler.create(converter,
              expressionElement);
        } catch (final CoreException e) {
          // There when expression could not be created.
          addWarning(
              warningsToLog,

Examples of org.eclipse.core.resources.IFile.create()

            for (int i=foldersToCreate.size() - 1; i >= 0; i--) {
              foldersToCreate.get(i).create(false, true, new NullProgressMonitor());
            }           
            // create tml file           
                  String header = Plugin.getDefault().getHeaderFileMap().get(Plugin.HEADER_TML_MODUL).getHeaderForProject(fileToCreate.getProject())
                  fileToCreate.create(new ByteArrayInputStream(header.getBytes()), true, new NullProgressMonitor());             
            // open editor
            WorkbenchUtils.openEditor(Plugin.getDefault().getWorkbench(), fileToCreate, ResourceIDs.EDITOR_TML);
          } catch (CoreException e) {
          }       
        }

Examples of org.eclipse.core.resources.IFolder.create()

    WGARuntime runtime = _page.getRuntime();   
    if(runtime != null){
      try {
        IFolder folder = runtime.getDesignRoot().getFolder(new Path(_page.getDesignName()));
        if (!folder.exists()) {
          folder.create(false, true, new NullProgressMonitor());
          DesignTemplate template = _page.getTemplate();
          WGADesignFactory.createDesign(folder, folder.getName(), template);
         
          if (!_page.isCreateContentStore()) {
            _page.getRuntime().register(folder, false, null, null, null, template.getProperties());

Examples of org.eclipse.core.resources.IProject.create()

    IProject project = root.getProject(runtimeName);
    if (project.exists()) {
      throwCoreException("A project with name '" + runtimeName + "' already exists in the workspace.");
    } else {
      // create project     
      project.create(new SubProgressMonitor(monitor, 1));     
      project.open(new SubProgressMonitor(monitor, 1));
     
      JDTUtils.addNature(project, WGADesignerPlugin.NATURE_WGA_RUNTIME);     
     
      _wgaRuntime = (WGARuntime) project.getNature(WGADesignerPlugin.NATURE_WGA_RUNTIME);

Examples of org.eclipse.core.runtime.preferences.IScope.create()

                log(e.getStatus());
                return new SLDPreferences(root, name);
            }
        } else
            scope = (IScope) value;
        return scope.create(root, name);
    }

    /*
     * Return the instance.
     */
 

Examples of org.eclipse.e4.core.services.contributions.IContributionFactory.create()

      ThemeManager themeManager) {
    if( factoryUrl == null ) {
      factoryUrl = defaultFactoryUrl;
    }
    IContributionFactory contribFactory = context.get(IContributionFactory.class);
    this.factory = (RendererFactory) contribFactory.create(factoryUrl, context);
    this.modelService = modelService;
   
    ifcontext.get(EBindingService.class.getName()) != null ) {
      KeyBindingDispatcher dispatcher = ContextInjectionFactory.make(KeyBindingDispatcher.class, context);
      context.set(KeyBindingDispatcher.class, dispatcher);
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.