org.eclipse.equinox.internal.p2.core.helpers.Tracing.debug()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.7k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.eclipse.equinox.internal.p2.core.helpers.Tracing.debug()方法的一些代码示例,展示了Tracing.debug()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tracing.debug()方法的具体详情如下:
包路径:org.eclipse.equinox.internal.p2.core.helpers.Tracing
类名称:Tracing
方法名:debug

Tracing.debug介绍

[英]Prints a debug message on stdout. Callers should first ensure their specific debug option is enabled.
[中]在标准输出上打印调试消息。调用方应首先确保其特定的调试选项已启用。

代码示例

代码示例来源:origin: org.eclipse.equinox.p2/updatesite

private static void debug(String s) {
  Tracing.debug("DefaultSiteParser: " + s); //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void printSolution(Collection<IInstallableUnit> state) {
  ArrayList<IInstallableUnit> l = new ArrayList<>(state);
  Collections.sort(l);
  Tracing.debug("Solution:"); //$NON-NLS-1$
  Tracing.debug("Numbers of IUs selected: " + l.size()); //$NON-NLS-1$
  for (IInstallableUnit s : l) {
    Tracing.debug(s.toString());
  }
}

代码示例来源:origin: org.eclipse.equinox.p2/repository

public void unexpectedCharacterData(AbstractHandler handler, String cdata) {
  if (Tracing.DEBUG_PARSE_PROBLEMS)
    Tracing.debug("Unexpected character data in element " + handler.getName() + ": " + cdata.trim()); //$NON-NLS-1$ //$NON-NLS-2$
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.repository

public void unexpectedCharacterData(AbstractHandler handler, String cdata) {
  if (Tracing.DEBUG_PARSE_PROBLEMS)
    Tracing.debug("Unexpected character data in element " + handler.getName() + ": " + cdata.trim()); //$NON-NLS-1$ //$NON-NLS-2$
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void createMustHave(IInstallableUnit iu, IInstallableUnit[] alreadyExistingRoots) throws ContradictionException {
  processIU(iu, true);
  if (DEBUG) {
    Tracing.debug(iu + "=1"); //$NON-NLS-1$
  }
  // dependencyHelper.setTrue(variable, new Explanation.IUToInstall(iu));
  assumptions.add(iu);
}

代码示例来源:origin: org.eclipse.osgi/org.eclipse.equinox.p2.garbagecollector

public void run(IProgressMonitor monitor) {
    for (Iterator<IArtifactKey> iterator = inactive.iterator(); iterator.hasNext();) {
      IArtifactKey key = iterator.next();
      aRepository.removeDescriptor(key);
      if (debugMode) {
        Tracing.debug("Key removed:" + key); //$NON-NLS-1$
      }
    }
  }
}, new NullProgressMonitor());

代码示例来源:origin: org.eclipse.equinox.p2/garbagecollector

public void run(IProgressMonitor monitor) {
    for (Iterator<IArtifactKey> iterator = inactive.iterator(); iterator.hasNext();) {
      IArtifactKey key = iterator.next();
      aRepository.removeDescriptor(key);
      if (debugMode) {
        Tracing.debug("Key removed:" + key); //$NON-NLS-1$
      }
    }
  }
}, new NullProgressMonitor());

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.garbagecollector

public void run(IProgressMonitor monitor) {
    for (Iterator<IArtifactKey> iterator = inactive.iterator(); iterator.hasNext();) {
      IArtifactKey key = iterator.next();
      aRepository.removeDescriptor(key);
      if (debugMode) {
        Tracing.debug("Key removed:" + key); //$NON-NLS-1$
      }
    }
  }
}, new NullProgressMonitor());

代码示例来源:origin: org.eclipse.equinox.p2.reconciler/dropins

private void debugRepository(IMetadataRepository repository) {
  if (!Tracing.DEBUG_RECONCILER)
    return;
  Tracing.debug(PREFIX + "Repository created " + repository.getLocation()); //$NON-NLS-1$
  // Print out a list of all the IUs in the repository
  IQueryResult<IInstallableUnit> result = repository.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor());
  for (Iterator<IInstallableUnit> iter = result.iterator(); iter.hasNext();)
    Tracing.debug(PREFIX + "\t" + iter.next()); //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void createAtMostOne(IInstallableUnit[] ius) throws ContradictionException {
  if (DEBUG) {
    StringBuffer b = new StringBuffer();
    for (IInstallableUnit iu : ius) {
      b.append(iu.toString());
    }
    Tracing.debug("At most 1 of " + b); //$NON-NLS-1$
  }
  dependencyHelper.atMost(1, (Object[]) ius).named(new Explanation.Singleton(ius));
}

代码示例来源:origin: org.eclipse.equinox.p2.reconciler/dropins

public boolean changed(File file) {
  if (super.changed(file)) {
    if (Tracing.DEBUG_RECONCILER)
      Tracing.debug(PREFIX + "Interesting feature or bundle changed: " + file); //$NON-NLS-1$			
    return true;
  }
  addRepository(file);
  return true;
}

代码示例来源:origin: org.eclipse.equinox.p2.reconciler/dropins

public boolean added(File file) {
  if (super.added(file)) {
    if (Tracing.DEBUG_RECONCILER)
      Tracing.debug(PREFIX + "Interesting feature or bundle added: " + file); //$NON-NLS-1$
    return true;
  }
  addRepository(file);
  return true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void createNegation(IInstallableUnit iu, IRequirement req) throws ContradictionException {
  if (DEBUG) {
    Tracing.debug(iu + "=0"); //$NON-NLS-1$
  }
  dependencyHelper.setFalse(iu, new Explanation.MissingIU(iu, req, iu == this.entryPoint));
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void createImplication(Object[] left, List<?> right, Explanation name) throws ContradictionException {
  if (DEBUG) {
    Tracing.debug(name + ": " + Arrays.asList(left) + "->" + right); //$NON-NLS-1$ //$NON-NLS-2$
  }
  dependencyHelper.implication(left).implies(right.toArray()).named(name);
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.repository

public void unexpectedElement(AbstractHandler handler, String element, Attributes attributes) {
  if (Tracing.DEBUG_PARSE_PROBLEMS)
    Tracing.debug("Unexpected element in element " + handler.getName() + ": <" + element + toString(attributes) + '>'); //$NON-NLS-1$ //$NON-NLS-2$
}

代码示例来源:origin: org.eclipse.equinox.p2/repository

public void unexpectedElement(AbstractHandler handler, String element, Attributes attributes) {
  if (Tracing.DEBUG_PARSE_PROBLEMS)
    Tracing.debug("Unexpected element in element " + handler.getName() + ": <" + element + toString(attributes) + '>'); //$NON-NLS-1$ //$NON-NLS-2$
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void createImplication(Object left, List<?> right, Explanation name) throws ContradictionException {
  if (DEBUG) {
    Tracing.debug(name + ": " + left + "->" + right); //$NON-NLS-1$ //$NON-NLS-2$
  }
  dependencyHelper.implication(new Object[] {left}).implies(right.toArray()).named(name);
}

代码示例来源:origin: org.eclipse.equinox.p2/ui

/**
 * Signal that a repository operation is about to begin.  This allows clients to ignore intermediate
 * events until the operation is completed.  Callers are responsible for ensuring that
 * a corresponding operation ending event is signaled.
 */
public void signalRepositoryOperationStart() {
  runner.eventBatchCount++;
  if (Tracing.DEBUG_EVENTS_CLIENT)
    Tracing.debug("Batch Count Incremented to:  " + Integer.toString(runner.eventBatchCount)); //$NON-NLS-1$
  ProvUI.getProvisioningEventBus(getSession()).publishEvent(new RepositoryOperationBeginningEvent(this));
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.p2.director

private void createNegationImplication(Object left, List<?> right, Explanation name) throws ContradictionException {
  if (DEBUG) {
    Tracing.debug(name + ": " + left + "->" + right); //$NON-NLS-1$ //$NON-NLS-2$
  }
  for (Object r : right)
    dependencyHelper.implication(new Object[] {left}).impliesNot(r).named(name);
}

代码示例来源:origin: org.eclipse.equinox.p2/ui

/**
 * Signal that a repository operation has completed.
 * 
 * @param event a {@link RepositoryEvent} that describes the overall operation.  May be <code>null</code>, which
 * indicates that there was no single event that can describe the operation.  
 * @param update <code>true</code> if the event should be reflected in the UI, false if it should be ignored.
 */
public void signalRepositoryOperationComplete(RepositoryEvent event, boolean update) {
  runner.eventBatchCount--;
  if (Tracing.DEBUG_EVENTS_CLIENT)
    Tracing.debug("Batch Count Decremented to:  " + Integer.toString(runner.eventBatchCount)); //$NON-NLS-1$
  ProvUI.getProvisioningEventBus(getSession()).publishEvent(new RepositoryOperationEndingEvent(this, update, event));
}

相关文章

Tracing类方法