test_class.declarator: dataSource
test_class.modifier: @Mock
test_class.original_string: @Mock DropDownEditor dataSource;
test_class.type: DropDownEditor
test_class.var_name: dataSource
test_class.declarator: dbSchema
test_class.modifier: @Mock
test_class.original_string: @Mock ValueBoxEditor<String> dbSchema;
test_class.type: ValueBoxEditor<String>
test_class.var_name: dbSchema
test_class.declarator: dbTable
test_class.modifier: @Mock
test_class.original_string: @Mock ValueBoxEditor<String> dbTable;
test_class.type: ValueBoxEditor<String>
test_class.var_name: dbTable
test_class.declarator: dbSQL
test_class.modifier: @Mock
test_class.original_string: @Mock ValueBoxEditor<String> dbSQL;
test_class.type: ValueBoxEditor<String>
test_class.var_name: dbSQL
test_class.declarator: sqlProviderServices
test_class.modifier: @Mock
test_class.original_string: @Mock SQLProviderServices sqlProviderServices;
test_class.type: SQLProviderServices
test_class.var_name: sqlProviderServices
test_class.declarator: view
test_class.modifier: @Mock
test_class.original_string: @Mock SQLDataSetDefAttributesEditor.View view;
test_class.type: SQLDataSetDefAttributesEditor.View
test_class.var_name: view
test_class.declarator: sqlProviderServicesCaller
test_class.original_string: Caller<SQLProviderServices> sqlProviderServicesCaller;
test_class.type: Caller<SQLProviderServices>
test_class.var_name: sqlProviderServicesCaller
test_class.declarator: presenter
test_class.original_string: SQLDataSetDefAttributesEditor presenter;
test_class.type: SQLDataSetDefAttributesEditor
test_class.var_name: presenter
test_class.declarator: dataSourceDef = new SQLDataSourceDef("test", "test")
test_class.original_string: SQLDataSourceDef dataSourceDef = new SQLDataSourceDef("test", "test");
test_class.type: SQLDataSourceDef
test_class.var_name: dataSourceDef
test_class.file: dashbuilder-client/dashbuilder-widgets/src/test/java/org/dashbuilder/client/widgets/dataset/editor/sql/SQLDataSetDefAttributesEditorTest.java
test_class.identifier: SQLDataSetDefAttributesEditorTest
test_case.body: @Test
      public void testInit() {
          presenter.init();
          verify(view, times(1)).init(presenter);
          verify(view, times(1)).initWidgets(any(DropDownEditor.View.class), any(ValueBoxEditor.View.class),
                  any(ValueBoxEditor.View.class) ,any(ValueBoxEditor.View.class));
          verify(dataSource, times(1)).addHelpContent(anyString(), anyString(), any(Placement.class));
          verify(dbSchema, times(1)).addHelpContent(anyString(), anyString(), any(Placement.class));
          verify(dbTable, times(1)).addHelpContent(anyString(), anyString(), any(Placement.class));
          verify(dbSQL, times(1)).addHelpContent(anyString(), anyString(), any(Placement.class));
          verify(view, times(1)).query();
          verify(view, times(0)).table();
  
          verify(sqlProviderServices).getDataSourceDefs();
          verify(dataSource).setEntries(any());
          verify(dataSource).setSelectHint(anyString());
      }
test_case.class_method_signature: SQLDataSetDefAttributesEditorTest.testInit()
test_case.full_signature: @Test public void testInit()
test_case.identifier: testInit
test_case.invocations: init init verify times initWidgets verify times any any any any addHelpContent verify times anyString anyString any addHelpContent verify times anyString anyString any addHelpContent verify times anyString anyString any addHelpContent verify times anyString anyString any query verify times table verify times getDataSourceDefs verify setEntries verify any setSelectHint verify anyString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInit()
focal_class.declarator: sqlProviderServices
focal_class.original_string: Caller<SQLProviderServices> sqlProviderServices;
focal_class.type: Caller<SQLProviderServices>
focal_class.var_name: sqlProviderServices
focal_class.declarator: dataSource
focal_class.original_string: DropDownEditor dataSource;
focal_class.type: DropDownEditor
focal_class.var_name: dataSource
focal_class.declarator: dbSchema
focal_class.original_string: ValueBoxEditor<String> dbSchema;
focal_class.type: ValueBoxEditor<String>
focal_class.var_name: dbSchema
focal_class.declarator: dbTable
focal_class.original_string: ValueBoxEditor<String> dbTable;
focal_class.type: ValueBoxEditor<String>
focal_class.var_name: dbTable
focal_class.declarator: dbSQL
focal_class.original_string: ValueBoxEditor<String> dbSQL;
focal_class.type: ValueBoxEditor<String>
focal_class.var_name: dbSQL
focal_class.declarator: view
focal_class.modifier: public
focal_class.original_string: public View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: isQuery
focal_class.modifier: private
focal_class.original_string: private boolean isQuery;
focal_class.type: boolean
focal_class.var_name: isQuery
focal_class.file: dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/sql/SQLDataSetDefAttributesEditor.java
focal_class.identifier: SQLDataSetDefAttributesEditor
focal_class.interfaces: implements IsWidget, org.dashbuilder.dataset.client.editor.SQLDataSetDefAttributesEditor
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.SQLDataSetDefAttributesEditor(final DropDownEditor dataSource,
                                           final ValueBoxEditor<String> dbSchema,
                                           final ValueBoxEditor<String> dbTable,
                                           final ValueBoxEditor<String> dbSQL,
                                           final Caller<SQLProviderServices> sqlProviderServices,
                                           final View view)
focal_class.full_signature: @Inject public  SQLDataSetDefAttributesEditor(final DropDownEditor dataSource,
                                           final ValueBoxEditor<String> dbSchema,
                                           final ValueBoxEditor<String> dbTable,
                                           final ValueBoxEditor<String> dbSQL,
                                           final Caller<SQLProviderServices> sqlProviderServices,
                                           final View view)
focal_class.identifier: SQLDataSetDefAttributesEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (final DropDownEditor dataSource,
                                           final ValueBoxEditor<String> dbSchema,
                                           final ValueBoxEditor<String> dbTable,
                                           final ValueBoxEditor<String> dbSQL,
                                           final Caller<SQLProviderServices> sqlProviderServices,
                                           final View view)
focal_class.signature:  SQLDataSetDefAttributesEditor(final DropDownEditor dataSource,
                                           final ValueBoxEditor<String> dbSchema,
                                           final ValueBoxEditor<String> dbTable,
                                           final ValueBoxEditor<String> dbSQL,
                                           final Caller<SQLProviderServices> sqlProviderServices,
                                           final View view)
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.toDropDownEntry(SQLDataSourceDef d)
focal_class.full_signature: private DropDownEditor.Entry toDropDownEntry(SQLDataSourceDef d)
focal_class.identifier: toDropDownEntry
focal_class.modifiers: private
focal_class.parameters: (SQLDataSourceDef d)
focal_class.return: DropDownEditor.Entry
focal_class.signature: DropDownEditor.Entry toDropDownEntry(SQLDataSourceDef d)
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.onSqlDataSourcesLoad(List<SQLDataSourceDef> list)
focal_class.full_signature: private void onSqlDataSourcesLoad(List<SQLDataSourceDef> list)
focal_class.identifier: onSqlDataSourcesLoad
focal_class.modifiers: private
focal_class.parameters: (List<SQLDataSourceDef> list)
focal_class.return: void
focal_class.signature: void onSqlDataSourcesLoad(List<SQLDataSourceDef> list)
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.asWidget()
focal_class.full_signature: @Override public Widget asWidget()
focal_class.identifier: asWidget
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Widget
focal_class.signature: Widget asWidget()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.dataSource()
focal_class.full_signature: @Override public DropDownEditor dataSource()
focal_class.identifier: dataSource
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DropDownEditor
focal_class.signature: DropDownEditor dataSource()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.dbSchema()
focal_class.full_signature: @Override public ValueBoxEditor<String> dbSchema()
focal_class.identifier: dbSchema
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ValueBoxEditor<String>
focal_class.signature: ValueBoxEditor<String> dbSchema()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.dbTable()
focal_class.full_signature: @Override public ValueBoxEditor<String> dbTable()
focal_class.identifier: dbTable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ValueBoxEditor<String>
focal_class.signature: ValueBoxEditor<String> dbTable()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.dbSQL()
focal_class.full_signature: @Override public ValueBoxEditor<String> dbSQL()
focal_class.identifier: dbSQL
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ValueBoxEditor<String>
focal_class.signature: ValueBoxEditor<String> dbSQL()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.flush()
focal_class.full_signature: @Override public void flush()
focal_class.identifier: flush
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.onPropertyChange(final String... paths)
focal_class.full_signature: @Override public void onPropertyChange(final String... paths)
focal_class.identifier: onPropertyChange
focal_class.modifiers: @Override public
focal_class.parameters: (final String... paths)
focal_class.return: void
focal_class.signature: void onPropertyChange(final String... paths)
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.setValue(final SQLDataSetDef value)
focal_class.full_signature: @Override public void setValue(final SQLDataSetDef value)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (final SQLDataSetDef value)
focal_class.return: void
focal_class.signature: void setValue(final SQLDataSetDef value)
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.setDelegate(final EditorDelegate<SQLDataSetDef> delegate)
focal_class.full_signature: @Override public void setDelegate(final EditorDelegate<SQLDataSetDef> delegate)
focal_class.identifier: setDelegate
focal_class.modifiers: @Override public
focal_class.parameters: (final EditorDelegate<SQLDataSetDef> delegate)
focal_class.return: void
focal_class.signature: void setDelegate(final EditorDelegate<SQLDataSetDef> delegate)
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.isUsingQuery()
focal_class.full_signature: public boolean isUsingQuery()
focal_class.identifier: isUsingQuery
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isUsingQuery()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.onSelectTable()
focal_class.full_signature:  void onSelectTable()
focal_class.identifier: onSelectTable
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onSelectTable()
focal_class.class_method_signature: SQLDataSetDefAttributesEditor.onSelectQuery()
focal_class.full_signature:  void onSelectQuery()
focal_class.identifier: onSelectQuery
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onSelectQuery()
focal_method.body: @PostConstruct
      public void init() {
          // Initialize the SQL specific attributes editor view.
          view.init(this);
          view.initWidgets(dataSource.view, dbSchema.view, dbTable.view, dbSQL.view);
  
          dataSource.setSelectHint(DataSetEditorConstants.INSTANCE.sql_datasource_selectHint());
          sqlProviderServices.call((List<SQLDataSourceDef> list) -> onSqlDataSourcesLoad(list)).getDataSourceDefs();
  
          dataSource.addHelpContent(DataSetEditorConstants.INSTANCE.sql_datasource(),
                  DataSetEditorConstants.INSTANCE.sql_datasource_description(),
                  Placement.RIGHT); //bottom placement would interfere with the dropdown
          dbSchema.addHelpContent(DataSetEditorConstants.INSTANCE.sql_schema(),
                  DataSetEditorConstants.INSTANCE.sql_schema_description(),
                  Placement.BOTTOM);
          dbTable.addHelpContent(DataSetEditorConstants.INSTANCE.sql_table(),
                  DataSetEditorConstants.INSTANCE.sql_table_description(),
                  Placement.BOTTOM);
          dbSQL.addHelpContent(DataSetEditorConstants.INSTANCE.sql_query(),
                  DataSetEditorConstants.INSTANCE.sql_query_description(),
                  Placement.BOTTOM);
  
          // Use query editor by default.
          onSelectQuery();
      }
focal_method.class_method_signature: SQLDataSetDefAttributesEditor.init()
focal_method.full_signature: @PostConstruct public void init()
focal_method.identifier: init
focal_method.invocations: init initWidgets setSelectHint sql_datasource_selectHint getDataSourceDefs call onSqlDataSourcesLoad addHelpContent sql_datasource sql_datasource_description addHelpContent sql_schema sql_schema_description addHelpContent sql_table sql_table_description addHelpContent sql_query sql_query_description onSelectQuery
focal_method.modifiers: @PostConstruct public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void init()