当前位置: 首页>>代码示例>>Java>>正文


Java ActionsImplementationProvider类代码示例

本文整理汇总了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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:ActionsImplementationFactory.java

示例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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:ActionsImplementationFactory.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:ActionsImplementationFactory.java

示例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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:ActionsImplementationFactory.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:ActionsImplementationFactory.java

示例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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:ActionsImplementationFactory.java

示例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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:ActionsImplementationFactory.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:ActionsImplementationFactory.java

示例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
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:ActionsImplementationFactory.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:ActionsImplementationFactory.java


注:本文中的org.netbeans.modules.refactoring.spi.ui.ActionsImplementationProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。