本文整理汇总了Java中org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog.setSelectedSchemaAndTable方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseExplorerDialog.setSelectedSchemaAndTable方法的具体用法?Java DatabaseExplorerDialog.setSelectedSchemaAndTable怎么用?Java DatabaseExplorerDialog.setSelectedSchemaAndTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog
的用法示例。
在下文中一共展示了DatabaseExplorerDialog.setSelectedSchemaAndTable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
/**
* Opens a dialog to select a table name
*/
private void getTableName() {
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if ( connr >= 0 ) {
DatabaseMeta inf = transMeta.getDatabase( connr );
if ( log.isDebug() ) {
logDebug( BaseMessages.getString( PKG, "SnowflakeBulkLoader.Dialog..Log.LookingAtConnection", inf.toString() ) );
}
DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() );
std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() );
if ( std.open() ) {
wSchema.setText( Const.NVL( std.getSchemaName(), "" ) );
wTable.setText( Const.NVL( std.getTableName(), "" ) );
setTableFieldCombo();
}
} else {
MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage( BaseMessages.getString( PKG, "SnowflakeBulkLoader.Dialog.ConnectionError2.DialogMessage" ) );
mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
mb.open();
}
}
示例2: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = jobMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablename.getText());
if (std.open())
{
wTablename.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "JobMysqlBulkLoad.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例3: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = jobMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablename.getText());
if (std.open())
{
wTablename.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "JobEntryWaitForSQL.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例4: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = jobMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablename.getText());
if (std.open())
{
// wSchemaname.setText(Const.NVL(std.getSchemaName(), ""));
wTablename.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "JobMysqlBulkFile.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例5: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = jobMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablename.getText());
if (std.open())
{
wSchemaname.setText(Const.NVL(std.getSchemaName(), ""));
wTablename.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "JobEntryColumnsExist.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例6: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = jobMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablename.getText());
if (std.open())
{
wSchemaname.setText(Const.NVL(std.getSchemaName(), ""));
wTablename.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "System.Dialog.ConnectionError.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例7: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName() {
int connr = wConnection.getSelectionIndex();
if (connr < 0)
return;
DatabaseMeta inf = transMeta.getDatabase(connr);
logDebug(BaseMessages.getString(PKG, "DimensionLookupDialog.Log.LookingAtConnection") + inf.toString()); //$NON-NLS-1$
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchema.getText(), wTable.getText());
if (std.open()) {
wSchema.setText(Const.NVL(std.getSchemaName(), ""));
wTable.setText(Const.NVL(std.getTableName(), ""));
setTableFieldCombo();
}
}
示例8: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = transMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablenameText.getText());
if (std.open())
{
wSchemaname.setText(Const.NVL(std.getSchemaName(), ""));
wTablenameText.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "ColumnExistsDialog.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例9: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName() {
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if ( connr >= 0 ) {
DatabaseMeta inf = transMeta.getDatabase( connr );
log.logDebug( toString(), BaseMessages.getString( PKG, "VerticaBulkLoaderDialog.Log.LookingAtConnection", inf
.toString() ) );
DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() );
std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() );
if ( std.open() ) {
wSchema.setText( Const.NVL( std.getSchemaName(), "" ) );
wTable.setText( Const.NVL( std.getTableName(), "" ) );
}
} else {
MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage( BaseMessages.getString( PKG, "VerticaBulkLoaderDialog.ConnectionError2.DialogMessage" ) );
mb.setText( BaseMessages.getString( "System.Dialog.Error.Title" ) );
mb.open();
}
}
示例10: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName() {
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if ( connr >= 0 ) {
DatabaseMeta inf = transMeta.getDatabase( connr );
if ( log.isDebug() ) {
logDebug( BaseMessages.getString( PKG, "TableOutputDialog.Log.LookingAtConnection", inf.toString() ) );
}
DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() );
std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() );
if ( std.open() ) {
wSchema.setText( Const.NVL( std.getSchemaName(), "" ) );
wTable.setText( Const.NVL( std.getTableName(), "" ) );
setTableFieldCombo();
}
} else {
MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage( BaseMessages.getString( PKG, "TableOutputDialog.ConnectionError2.DialogMessage" ) );
mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
mb.open();
}
}
示例11: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName() {
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if ( connr >= 0 ) {
DatabaseMeta inf = jobMeta.getDatabase( connr );
DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, jobMeta.getDatabases() );
std.setSelectedSchemaAndTable( wSchemaname.getText(), wTablename.getText() );
if ( std.open() ) {
wSchemaname.setText( Const.NVL( std.getSchemaName(), "" ) );
wTablename.setText( Const.NVL( std.getTableName(), "" ) );
}
} else {
MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage( BaseMessages.getString( PKG, "JobEntryColumnsExist.ConnectionError.DialogMessage" ) );
mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
mb.open();
}
}
示例12: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr>=0)
{
DatabaseMeta inf = jobMeta.getDatabase(connr);
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, jobMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchemaname.getText(), wTablename.getText());
if (std.open())
{
wTablename.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "JobMssqlBulkLoad.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
示例13: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName() {
DatabaseMeta inf = null;
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if ( connr >= 0 ) {
inf = transMeta.getDatabase( connr );
}
if ( inf != null ) {
logDebug( BaseMessages.getString( PKG, "CombinationLookupDialog.Log.LookingAtConnection", inf.toString() ) );
DatabaseExplorerDialog std = new DatabaseExplorerDialog( shell, SWT.NONE, inf, transMeta.getDatabases() );
std.setSelectedSchemaAndTable( wSchema.getText(), wTable.getText() );
if ( std.open() ) {
wSchema.setText( Const.NVL( std.getSchemaName(), "" ) );
wTable.setText( Const.NVL( std.getTableName(), "" ) );
setTableFieldCombo();
}
} else {
MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage( BaseMessages.getString( PKG, "CombinationLookupDialog.ConnectionError2.DialogMessage" ) );
mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
mb.open();
}
}
示例14: widgetSelected
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
public void widgetSelected(SelectionEvent e){
DatabaseMeta inf = null;
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr >= 0)
inf = transMeta.getDatabase(connr);
if (inf != null)
{
if(log.isDebug()) logDebug(BaseMessages.getString(PKG, "TeraDataBulkLoaderDialog.Log.LookingAtConnection") + inf.toString());
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchema.getText(), wTable.getText());
if (std.open())
{
wSchema.setText(Const.NVL(std.getSchemaName(), ""));
this.textWidget.setText(Const.NVL(std.getTableName(), ""));
setTableFieldCombo();
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
mb.setMessage(BaseMessages.getString(PKG, "TeraDataBulkLoaderDialog.InvalidConnection.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "TeraDataBulkLoaderDialog.InvalidConnection.DialogTitle"));
mb.open();
}
}
示例15: getTableName
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog; //导入方法依赖的package包/类
private void getTableName()
{
DatabaseMeta inf = null;
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr >= 0)
inf = transMeta.getDatabase(connr);
if (inf != null)
{
if(log.isDebug()) logDebug(BaseMessages.getString(PKG, "MySQLBulkLoaderDialog.Log.LookingAtConnection") + inf.toString()); //$NON-NLS-1$
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchema.getText(), wTable.getText());
if (std.open())
{
wSchema.setText(Const.NVL(std.getSchemaName(), ""));
wTable.setText(Const.NVL(std.getTableName(), ""));
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
mb.setMessage(BaseMessages.getString(PKG, "MySQLBulkLoaderDialog.InvalidConnection.DialogMessage")); //$NON-NLS-1$
mb.setText(BaseMessages.getString(PKG, "MySQLBulkLoaderDialog.InvalidConnection.DialogTitle")); //$NON-NLS-1$
mb.open();
}
}