Package com.intellij.usages

Examples of com.intellij.usages.Usage


      public void run() {
        int[] selected = table.getSelectedRows();
        for (int i : selected) {
          Object value = table.getValueAt(i, 0);
          if (value instanceof UsageNode) {
            Usage usage = ((UsageNode)value).getUsage();
            if (usage == MORE_USAGES_SEPARATOR) {
              appendMoreUsages(editor, popupPosition, handler, maxUsages);
              return;
            }
            navigateAndHint(usage, null, handler, popupPosition, maxUsages, options);
View Full Code Here


    showElementUsages(handler, editor, popupPosition, maxUsages+USAGES_PAGE_SIZE, getDefaultOptions(handler));
  }

  private void addUsageNodes(@NotNull GroupNode root, @NotNull final UsageViewImpl usageView, @NotNull List<UsageNode> outNodes) {
    for (UsageNode node : root.getUsageNodes()) {
      Usage usage = node.getUsage();
      if (usageView.isVisible(usage)) {
        node.setParent(root);
        outNodes.add(node);
      }
    }
View Full Code Here

  private UsageNode tryMerge(Usage usage) {
    if (!(usage instanceof MergeableUsage)) return null;
    if (!UsageViewSettings.getInstance().IS_FILTER_DUPLICATED_LINE) return null;
    for (UsageNode node : myUsageNodes) {
      Usage original = node.getUsage();
      if (original instanceof MergeableUsage) {
        if (((MergeableUsage)original).merge((MergeableUsage)usage)) return node;
      }
    }
View Full Code Here

TOP

Related Classes of com.intellij.usages.Usage

Copyright © 2018 www.massapicom. 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.