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);
 }
Exemplo n.º 2
0
 public boolean isEnabledOnElements(PsiElement[] elements) {
   return MoveHandler.canMove(elements, null);
 }