private static boolean canDragElements(
     Object[] elements, DataContext dataContext, int dragAction) {
   for (Object element : elements) {
     if (element instanceof Module) {
       return true;
     }
   }
   return dragAction == DnDConstants.ACTION_MOVE && MoveHandler.canMove(dataContext);
 }
Beispiel #2
0
 public boolean isEnabledOnElements(PsiElement[] elements) {
   return MoveHandler.canMove(elements, null);
 }