Examples of addEntry()


Examples of net.sourceforge.syncyoursecrets.gui.rcp.model.PWListContentProvider.addEntry()

    IWorkbenchPage page = window.getActivePage();
    View view = (View) page.findView(View.ID);
    PWListContentProvider contentProvider = (PWListContentProvider) view
        .getContentProvider();
    try {
      contentProvider.addEntry();
    } catch (Exception e) {
      e.printStackTrace();
      throw new ExecutionException("Failed to add a new element", e);
    }
    return null;
View Full Code Here

Examples of no.kommune.bergen.soa.common.zip.Zipper.addEntry()

  }

  void zipItUp( InputStream inputstream, String filename, OutputStream outputStream ) {
    Zipper zipper = new Zipper( outputStream );
    try {
      zipper.addEntry( filename, inputstream );
      zipper.close();
    } catch (IOException e1) {
      throw new RuntimeException( "Failed to zip up " + filename, e1 );
    }
  }
View Full Code Here

Examples of oracle.toplink.essentials.internal.weaving.AbstractStaticWeaveOutputHandler.addEntry()

            try {
                Class thisClass = this.classLoader.loadClass(className);
                //if the class is not in the classpath, we simply copy the entry
                //to the target(no weaving).
                if (thisClass == null){
                    swoh.addEntry(entryInputStream, newEntry);
                    continue;
                }
               
                //Try to read the loaded class bytes, the class bytes is required for
                //classtransformer to perform transfer. Simply copy entry to the target(no weaving)
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.form.AlfrescoTransitionsPropertyDefinition.addEntry()

    return new PropertyReference(id + "RequiredApprovalCount").getVariableReference(namespacePrefix);
  }

  protected AlfrescoTransitionsPropertyDefinition createTransitionsProperty() {
    AlfrescoTransitionsPropertyDefinition prop = new AlfrescoTransitionsPropertyDefinition();
    prop.addEntry(new ListPropertyEntry(AlfrescoConversionConstants.TRANSITION_APPROVE,
        AlfrescoConversionConstants.TRANSITION_APPROVE));
    prop.addEntry(new ListPropertyEntry(AlfrescoConversionConstants.TRANSITION_REJECT,
        AlfrescoConversionConstants.TRANSITION_REJECT));
    return prop;
  }
View Full Code Here

Examples of org.activiti.workflow.simple.definition.form.ListPropertyDefinition.addEntry()

   
    ListPropertyDefinition itemType = new ListPropertyDefinition();
    itemType.setMandatory(true);
    itemType.setName("referenceProp");
    itemType.setWritable(false);
    itemType.addEntry(new ListPropertyEntry("1", "Item 1"));
    itemType.addEntry(new ListPropertyEntry("2", "Item 2"));
    formDefinition.addFormProperty(itemType);
   
    // Write result to byte-array
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.model.Journal.addEntry()

    assertNotNull(tag);
   
    member.setCompiledAttributes(new HashMap<String, String>());

    Journal journal = member.getJournal();
    journal.addEntry(tag);

    CompileChainWalker walker = new CompileChainWalker(model);

    CompileNode root = walker.buildCallTree(member);
View Full Code Here

Examples of org.amdatu.web.resourcehandler.ResourceEntryMap.addEntry()

            scanner.useDelimiter(",\\s*");

            while (scanner.hasNext()) {
                Entry entry = new Entry(scanner.next());

                result.addEntry(entry.m_contextId, entry.m_alias, entry.m_path);
            }

            scanner.close();
        }

View Full Code Here

Examples of org.apache.abdera.model.Feed.addEntry()

         feed.setSubtitle("Feed subtitle");
         feed.setUpdated(new Date());
         feed.addAuthor("James Snell");
         feed.addLink("http://example.com");

         Entry entry = feed.addEntry();
         entry.setId("tag:example.org,2007:/foo/entries/1");
         entry.setTitle("Entry title");
         entry.setUpdated(new Date());
         entry.setPublished(new Date());
         entry.addLink(uri.getRequestUri().toString());
View Full Code Here

Examples of org.apache.ambari.eventdb.model.WorkflowDag.addEntry()

  private static WorkflowContext generateWorkflowContext(
      JobSubmittedEvent historyEvent) {
    WorkflowDag wfDag = new WorkflowDag();
    WorkflowDagEntry wfDagEntry = new WorkflowDagEntry();
    wfDagEntry.setSource("X");
    wfDag.addEntry(wfDagEntry);
   
    WorkflowContext wc = new WorkflowContext();
    wc.setWorkflowId(historyEvent.getJobId().toString().replace("job_", "mr_"));
    wc.setWorkflowName(historyEvent.getJobName());
    wc.setWorkflowEntityName("X");
View Full Code Here

Examples of org.apache.aries.blueprint.mutable.MutableMapMetadata.addEntry()

    protected MapRecipe getServicePropertiesRecipe(ServiceMetadata metadata) {
        List<MapEntry> properties = metadata.getServiceProperties();
        if (properties != null) {
            MutableMapMetadata map = MetadataUtil.createMetadata(MutableMapMetadata.class);
            for (MapEntry e : properties) {
                map.addEntry(e);
            }
            return createMapRecipe(map);
        } else {
            return null;
        }
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.