Lines 896-902
Link Here
|
896 |
// Determine whether we can paste the source elements as children of |
896 |
// Determine whether we can paste the source elements as children of |
897 |
// the target object |
897 |
// the target object |
898 |
if (sourceObjects.length > 1) { |
898 |
if (sourceObjects.length > 1) { |
899 |
return canPasteSourceElements((IPluginElement[]) sourceObjects, elementSet); |
899 |
IPluginElement[] sourcePluginElements = new IPluginElement[sourceObjects.length]; |
|
|
900 |
System.arraycopy(sourceObjects, 0, sourcePluginElements, 0, sourceObjects.length); |
901 |
return canPasteSourceElements(sourcePluginElements, elementSet); |
900 |
} |
902 |
} |
901 |
return canPasteSourceElement((IPluginElement) sourceObjects[0], elementSet); |
903 |
return canPasteSourceElement((IPluginElement) sourceObjects[0], elementSet); |
902 |
} |
904 |
} |