Class DefaultDataSourceSelector

    • Constructor Detail

      • DefaultDataSourceSelector

        public DefaultDataSourceSelector()
    • Method Detail

      • setModuleSelection

        public void setModuleSelection​(org.guvnor.common.services.project.model.Module module)
        Description copied from interface: DataSourceSelector
        Use this method to restrict the data sources selection to a given project.
        Specified by:
        setModuleSelection in interface DataSourceSelector
        Parameters:
        module - Module where to select the data sources from.
      • show

        public void show​(org.uberfire.mvp.ParameterizedCommand<DataSourceInfo> onSelectCommand,
                         org.uberfire.mvp.Command onCloseCommand)
        Description copied from interface: DataSourceSelector
        Opens the data source selector in popup mode.
        Specified by:
        show in interface DataSourceSelector
        Parameters:
        onSelectCommand - when a data source is selected the popup is automatically closed and the onSelectCommand is executed to let clients now about the selection.
        onCloseCommand - executed when the popup is closed with no selection.