Example #1
0
 protected DatabaseEditorInput(NODE node, DBECommandContext commandContext) {
   this.node = node;
   DBPDataSource dataSource = node.getDataSource();
   if (dataSource != null) {
     this.executionContext = dataSource.getDefaultContext(false);
     this.commandContext =
         commandContext != null
             ? commandContext
             : new SimpleCommandContext(this.executionContext, false);
   } else {
     this.executionContext = null;
     this.commandContext = null;
   }
 }
Example #2
0
 @Nullable
 @Override
 public DBCExecutionContext getExecutionContext() {
   DBPDataSource dataSource = getDataSource();
   return dataSource == null ? null : dataSource.getDefaultContext(true);
 }