|
|
@ -84,24 +84,22 @@ public class FormSelectionUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static FormSelection filterFormSelection(FormSelection clipboard, XLayoutContainer parent) { |
|
|
|
private static FormSelection filterFormSelection(FormSelection clipboard, XLayoutContainer parent) { |
|
|
|
FormSelection newSelection = new FormSelection(); |
|
|
|
|
|
|
|
for (XCreator xCreator : clipboard.getSelectedCreators()) { |
|
|
|
for (XCreator xCreator : clipboard.getSelectedCreators()) { |
|
|
|
if (parent.acceptType(XWParameterLayout.class)) { |
|
|
|
if (parent.acceptType(XWParameterLayout.class)) { |
|
|
|
if (xCreator.canEnterIntoParaPane()) { |
|
|
|
if (!xCreator.canEnterIntoParaPane()) { |
|
|
|
newSelection.addSelectedCreator(xCreator); |
|
|
|
clipboard.removeCreator(xCreator); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (parent.acceptType(XWAbsoluteLayout.class)) { |
|
|
|
} else if (parent.acceptType(XWAbsoluteLayout.class)) { |
|
|
|
if (xCreator.canEnterIntoAbsolutePane()) { |
|
|
|
if (!xCreator.canEnterIntoAbsolutePane()) { |
|
|
|
newSelection.addSelectedCreator(xCreator); |
|
|
|
clipboard.removeCreator(xCreator); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (parent.acceptType(XWFitLayout.class)) { |
|
|
|
} else if (parent.acceptType(XWFitLayout.class)) { |
|
|
|
if (xCreator.canEnterIntoAdaptPane()) { |
|
|
|
if (!xCreator.canEnterIntoAdaptPane()) { |
|
|
|
newSelection.addSelectedCreator(xCreator); |
|
|
|
clipboard.removeCreator(xCreator); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return newSelection; |
|
|
|
return clipboard; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static boolean isExtraContainer(XLayoutContainer parent) { |
|
|
|
private static boolean isExtraContainer(XLayoutContainer parent) { |
|
|
|