Examples of merge()


Examples of org.drools.persistence.PersistenceContext.merge()

       
        WorkItemInfo workItemInfo = null;
        if (this.workItems != null) {
            workItemInfo = this.workItems.get(id);
            if (workItemInfo != null) {
                workItemInfo = context.merge(workItemInfo);
            }
        }
       
        if (workItemInfo == null) {
            workItemInfo = context.findWorkItemInfo( id );
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.WingMergeableElement.merge()

                    this.addOptions((Options) child);
                }

                // Update any attributes of this merged element.
                if (child != null)
                    attributes = child.merge(attributes);
                stack.push(child);
            }
            // Send off the event with nothing modified except for the
            // attributes (possibly)
            super.startElement(namespaceURI, localName, qName, attributes);
View Full Code Here

Examples of org.eclipse.core.runtime.MultiStatus.merge()

        }
      };

      p.run(true, false, runnable);
    } catch (InvocationTargetException e) {
      status
          .merge(new Status(IStatus.ERROR,
              IDEWorkbenchPlugin.IDE_WORKBENCH, 1,
              IDEWorkbenchMessages.InternalError, e
                  .getTargetException()));
    } catch (InterruptedException e) {
View Full Code Here

Examples of org.eclipse.emf.codegen.jmerge.JMerger.merge()

        jg.error.newError(IError.ERROR, jg.getString("nullPtr", new Object[] { targetClassName }),
                e);
      }

      // jMerger.getTargetPatternDictionary().dump();
      jMerger.merge();

      FileWriter fw = new FileWriter(targetPath);
      fw.write(jMerger.getTargetCompilationUnit().getContents());
      fw.close();
      // targetFile.setContents(
View Full Code Here

Examples of org.eclipse.emf.common.notify.Notification.merge()

    else
    {
      for (int i = 0; i < size; ++i)
      {
        Notification notification = (Notification)data[i];
        if (notification.merge(newNotification))
        {
          return false;
        }
      }
View Full Code Here

Examples of org.eclipse.emf.common.util.BasicDiagnostic.merge()

            ((InstallableUnit)unit).setVersion(Version.create("0.0.0"));
          }
          resolvedIUs.add(unit);
        } else {
          String msg = "Error occured during resolution of '" + uri.toString() + "'. The IU '" + iu.getID() + "' with range constraint '" + iu.getVersionRange() + "' can not be found.";
          diag.merge(new BasicDiagnostic(Diagnostic.ERROR, TargetPlatformBundleActivator.PLUGIN_ID, -1, msg, new Object[]{this, iu,}));
        }
      }
    } catch (ProvisionException e) {
      diag.merge(BasicDiagnostic.toDiagnostic(e));
    }
View Full Code Here

Examples of org.eclipse.higgins.rsse.RssFeed.merge()

      if (localFeed == null) {
        localFeed = new RssFeed(remoteFeed.getTitle(), remoteFeed.getLink(), remoteFeed.getDescription());
        localFeed.setVersion(RssVersion.RSS_2_0);
      }
      // merge remote feed with local one
      localFeed.merge(remoteFeed);
      // add a new item to feed
      localFeed.addItem(new RssItem("New Google Item", "This is a new item", "http://www.google.com"));
      // publish updated feed
      localFeed.save(feedFile);
      // print item titles
View Full Code Here

Examples of org.eclipse.jgit.api.Git.merge()

      throw die(MessageFormat.format(
          CLIText.get().refDoesNotExistOrNoCommit, ref));

    Ref oldHead = db.getRef(Constants.HEAD);
    Git git = new Git(db);
    MergeCommand mergeCmd = git.merge().setStrategy(mergeStrategy)
        .setSquash(squash).setFastForward(ff).setCommit(!noCommit);
    if (srcRef != null)
      mergeCmd.include(srcRef);
    else
      mergeCmd.include(src);
View Full Code Here

Examples of org.eclipse.jgit.merge.MergeAlgorithm.merge()

    {
        MergeAlgorithm mergeAlgorithm = new MergeAlgorithm();
        MergeResult<RawText> mergeResult;
        try
        {
            mergeResult = mergeAlgorithm.merge(
                    RawTextComparator.DEFAULT,
                    new RawText(base.getBytes(charsetName)),
                    new RawText(generated.getBytes(charsetName)),
                    new RawText(edited.getBytes(charsetName)));
        }
View Full Code Here

Examples of org.eclipse.jgit.merge.Merger.merge()

        if (merger instanceof ResolveMerger) {
          ResolveMerger resolveMerger = (ResolveMerger) merger;
          resolveMerger.setCommitNames(new String[] {
              "BASE", "HEAD", ref.getName() });
          resolveMerger.setWorkingTreeIterator(new FileTreeIterator(repo));
          noProblems = merger.merge(headCommit, srcCommit);
          lowLevelResults = resolveMerger
              .getMergeResults();
          failingPaths = resolveMerger.getFailingPaths();
          unmergedPaths = resolveMerger.getUnmergedPaths();
        } else
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.