mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
distinguish clone update checks (IDEA-84616)
This commit is contained in:
@@ -62,7 +62,7 @@ public class CopyHandler {
|
||||
if (elements.length > 0) {
|
||||
final CopyHandlerDelegate[] copyHandlers = Extensions.getExtensions(CopyHandlerDelegate.EP_NAME);
|
||||
for (CopyHandlerDelegate delegate : copyHandlers) {
|
||||
if (delegate.canCopy(elements)) {
|
||||
if (delegate instanceof CopyHandlerDelegateBase ? ((CopyHandlerDelegateBase)delegate).canCopy(elements, true) : delegate.canCopy(elements)) {
|
||||
if (delegate instanceof CopyHandlerDelegateBase && ((CopyHandlerDelegateBase)delegate).forbidToClone(elements, true)){
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user