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

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

java 1次浏览

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

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

示例1: addAffectedElement

点赞 3

import com.intellij.refactoring.listeners.RefactoringElementListenerProvider; //导入依赖的package包/类
private void addAffectedElement(PsiElement oldElement) {
  if(myOldElementToListenerListMap.get(oldElement) != null) return;
  ArrayList<RefactoringElementListener> listenerList = new ArrayList<RefactoringElementListener>();
  for (RefactoringElementListenerProvider provider : myListenerProviders) {
    try {
      final RefactoringElementListener listener = provider.getListener(oldElement);
      if (listener != null) {
        listenerList.add(listener);
      }
    }
    catch (Throwable e) {
      LOG.error(e);
    }
  }
  myOldElementToListenerListMap.put(oldElement, listenerList);
}
 

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

示例2: addListenerProvider

点赞 2

import com.intellij.refactoring.listeners.RefactoringElementListenerProvider; //导入依赖的package包/类
@Override
public void addListenerProvider(RefactoringElementListenerProvider provider) {
  myListenerProviders.add(provider);
}
 

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

示例3: removeListenerProvider

点赞 2

import com.intellij.refactoring.listeners.RefactoringElementListenerProvider; //导入依赖的package包/类
@Override
public void removeListenerProvider(RefactoringElementListenerProvider provider) {
  myListenerProviders.remove(provider);
}
 

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

示例4: startTransaction

点赞 2

import com.intellij.refactoring.listeners.RefactoringElementListenerProvider; //导入依赖的package包/类
public RefactoringTransaction startTransaction() {
  List<RefactoringElementListenerProvider> providers = new ArrayList<RefactoringElementListenerProvider>(myListenerProviders);
  Collections.addAll(providers, Extensions.getExtensions(RefactoringElementListenerProvider.EP_NAME, myProject));
  return new RefactoringTransactionImpl(providers);
}
 

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

示例5: RefactoringTransactionImpl

点赞 2

import com.intellij.refactoring.listeners.RefactoringElementListenerProvider; //导入依赖的package包/类
public RefactoringTransactionImpl(List<RefactoringElementListenerProvider> listenerProviders) {
  myListenerProviders = listenerProviders;
}
 

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


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