Skip to content

Commit

Permalink
#2674 New object create fix (prop tester)
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Dec 24, 2017
1 parent 76b1d43 commit d1303ac
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -78,6 +78,10 @@ public boolean test(Object receiver, String property, Object[] args, Object expe
if (node instanceof DBNResource) {
return property.equals(PROP_CAN_PASTE);
}
if (node instanceof DBNDataSource) {
// We always can create datasource
return true;
}

Class objectType;
if (!(node instanceof DBNContainer)) {
Expand All @@ -86,9 +90,6 @@ public boolean test(Object receiver, String property, Object[] args, Object expe
}
}
DBNContainer container;
if (node instanceof DBNDataSource) {
return true;
}
if (node instanceof DBNContainer) {
// Try to detect child type
objectType = ((DBNContainer) node).getChildrenClass();
Expand Down

0 comments on commit d1303ac

Please sign in to comment.