本文整理汇总了Java中org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider类的典型用法代码示例。如果您正苦于以下问题:Java ActionsImplementationProvider类的具体用法?Java ActionsImplementationProvider怎么用?Java ActionsImplementationProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ActionsImplementationProvider类属于org.netbeans.modules.refactoring.spi.ui包,在下文中一共展示了ActionsImplementationProvider类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: canRename
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static boolean canRename(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
if (rafi.canRename(lookup)) {
return true;
}
}
return false;
}
示例2: doRename
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static void doRename(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
boolean canRename = rafi.canRename(lookup);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("canRename: %s, %s", rafi, canRename));
}
if (canRename) {
rafi.doRename(lookup);
return;
}
}
notifyOutOfContext("LBL_RenameRefactoring", lookup); // NOI18N
}
示例3: canFindUsages
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static boolean canFindUsages(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
if (rafi.canFindUsages(lookup)) {
return true;
}
}
return false;
}
示例4: doFindUsages
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static void doFindUsages(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
boolean canFindUsages = rafi.canFindUsages(lookup);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("canFindUsages: %s, %s", rafi, canFindUsages));
}
if (canFindUsages) {
rafi.doFindUsages(lookup);
return;
}
}
notifyOutOfContext("LBL_FindUsagesRefactoring", lookup); // NOI18N
}
示例5: canDelete
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static boolean canDelete(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
if (rafi.canDelete(lookup)) {
return true;
}
}
return false;
}
示例6: doDelete
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static void doDelete(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
boolean canDelete = rafi.canDelete(lookup);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("canDelete: %s, %s", rafi, canDelete));
}
if (canDelete) {
rafi.doDelete(lookup);
return;
}
}
notifyOutOfContext("LBL_SafeDeleteRefactoring", lookup); // NOI18N
}
示例7: doMove
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static void doMove(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
boolean canMove = rafi.canMove(lookup);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("canMove: %s, %s", rafi, canMove));
}
if (canMove) {
rafi.doMove(lookup);
return;
}
}
notifyOutOfContext("LBL_MoveRefactoring", lookup); // NOI18N
}
示例8: canMove
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static boolean canMove(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
if (rafi.canMove(lookup)) {
return true;
}
}
return false;
}
示例9: doCopy
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static void doCopy(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
boolean canCopy = rafi.canCopy(lookup);
if (LOG.isLoggable(Level.FINE)) {
LOG.fine(String.format("canCopy: %s, %s", rafi, canCopy));
}
if (canCopy) {
rafi.doCopy(lookup);
return;
}
}
notifyOutOfContext("LBL_CopyRefactoring", lookup); // NOI18N
}
示例10: canCopy
import org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider; //导入依赖的package包/类
public static boolean canCopy(Lookup lookup) {
for (ActionsImplementationProvider rafi: implementations.allInstances()) {
if (rafi.canCopy(lookup)) {
return true;
}
}
return false;
}