本文整理汇总了Java中com.intellij.ide.util.DeleteHandler.shouldEnableDeleteAction方法的典型用法代码示例。如果您正苦于以下问题:Java DeleteHandler.shouldEnableDeleteAction方法的具体用法?Java DeleteHandler.shouldEnableDeleteAction怎么用?Java DeleteHandler.shouldEnableDeleteAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ide.util.DeleteHandler
的用法示例。
在下文中一共展示了DeleteHandler.shouldEnableDeleteAction方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public final boolean canDeleteElement(@NotNull final DataContext dataContext) {
final PsiElement aClass = getSelectedElement();
if (!canBeDeleted(aClass)) {
return false;
}
final PsiElement[] elements = {aClass};
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例2: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public final boolean canDeleteElement(@Nonnull final DataContext dataContext) {
final PsiElement aClass = getSelectedElement();
if (!canBeDeleted(aClass)) {
return false;
}
final PsiElement[] elements = {aClass};
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例3: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@NotNull final DataContext dataContext) {
final PsiElement[] elements = getSelectedElements();
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例4: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@NotNull DataContext dataContext) {
final PsiElement[] elements = getElementsToDelete();
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例5: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@NotNull DataContext dataContext) {
final PsiElement[] elements = getSelectedPsiElements();
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例6: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
public boolean canDeleteElement(@NotNull DataContext dataContext) {
return DeleteHandler.shouldEnableDeleteAction(myElements);
}
示例7: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
public boolean canDeleteElement(@NotNull DataContext dataContext) {
return DeleteHandler.shouldEnableDeleteAction(myElements);
}
示例8: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
public boolean canDeleteElement(@NotNull DataContext dataContext) {
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例9: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@NotNull DataContext dataContext)
{
return DeleteHandler.shouldEnableDeleteAction(myElements);
}
示例10: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@Nonnull final DataContext dataContext) {
final PsiElement[] elements = getSelectedElements();
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例11: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@Nonnull DataContext dataContext) {
final PsiElement[] elements = getElementsToDelete();
return DeleteHandler.shouldEnableDeleteAction(elements);
}
示例12: canDeleteElement
import com.intellij.ide.util.DeleteHandler; //导入方法依赖的package包/类
@Override
public boolean canDeleteElement(@Nonnull DataContext dataContext) {
final PsiElement[] elements = getSelectedPsiElements();
return DeleteHandler.shouldEnableDeleteAction(elements);
}