• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java UsagesCollector类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.intellij.internal.statistic.UsagesCollector的典型用法代码示例。如果您正苦于以下问题:Java UsagesCollector类的具体用法?Java UsagesCollector怎么用?Java UsagesCollector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

UsagesCollector类属于com.intellij.internal.statistic包,在下文中一共展示了UsagesCollector类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: execute

点赞 2

import com.intellij.internal.statistic.UsagesCollector; //导入依赖的package包/类
@Override
public void execute(@NotNull final Editor editor, char cha, @NotNull DataContext dataContext) {
    if (!listenedDocuments.contains(editor.getDocument()) && isThisCorrectProject()) {
        DocumentListener docl = new TextInputListener();
        editor.getDocument().addDocumentListener(docl);
        listenedDocuments.add(editor.getDocument());
        logger.info("Added document listener to ", editor.getDocument().toString());
        UsagesCollector.doPersistProjectUsages(new ObjectFinder().findCurrentProject());
    }
    handler.execute(editor, cha, dataContext);
}
 

开发者ID:testmycode,
项目名称:tmc-intellij,
代码行数:12,
代码来源:ActivateSpywareAction.java

示例2: doPersistProjectUsages

点赞 2

import com.intellij.internal.statistic.UsagesCollector; //导入依赖的package包/类
private static void doPersistProjectUsages(@NotNull Project project) {
  synchronized (ApplicationStatisticsPersistenceComponent.class) {
    if (!project.isInitialized() || DumbService.isDumb(project)) {
      return;
    }

    for (UsagesCollector usagesCollector : Extensions.getExtensions(UsagesCollector.EP_NAME)) {
      if (usagesCollector instanceof AbstractApplicationUsagesCollector) {
        ((AbstractApplicationUsagesCollector)usagesCollector).persistProjectUsages(project);
      }
    }
  }
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:14,
代码来源:ApplicationStatisticsPersistenceComponent.java

示例3: doPersistProjectUsages

点赞 2

import com.intellij.internal.statistic.UsagesCollector; //导入依赖的package包/类
private static void doPersistProjectUsages(@NotNull Project project) {
  if (DumbService.isDumb(project)) return;
  for (UsagesCollector usagesCollector : Extensions.getExtensions(UsagesCollector.EP_NAME)) {
    if (usagesCollector instanceof AbstractApplicationUsagesCollector) {
      ((AbstractApplicationUsagesCollector)usagesCollector).persistProjectUsages(project);
    }
  }
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:9,
代码来源:ApplicationStatisticsPersistenceComponent.java

示例4: doPersistProjectUsages

点赞 2

import com.intellij.internal.statistic.UsagesCollector; //导入依赖的package包/类
private static void doPersistProjectUsages(@Nonnull Project project) {
  if (DumbService.isDumb(project)) return;
  for (UsagesCollector usagesCollector : Extensions.getExtensions(UsagesCollector.EP_NAME)) {
    if (usagesCollector instanceof AbstractApplicationUsagesCollector) {
      ((AbstractApplicationUsagesCollector)usagesCollector).persistProjectUsages(project);
    }
  }
}
 

开发者ID:consulo,
项目名称:consulo,
代码行数:9,
代码来源:ApplicationStatisticsPersistenceComponent.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)