當前位置: 首頁>>代碼示例>>Java>>正文


Java BaseStepDialog類代碼示例

本文整理匯總了Java中org.pentaho.di.ui.trans.step.BaseStepDialog的典型用法代碼示例。如果您正苦於以下問題:Java BaseStepDialog類的具體用法?Java BaseStepDialog怎麽用?Java BaseStepDialog使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BaseStepDialog類屬於org.pentaho.di.ui.trans.step包,在下文中一共展示了BaseStepDialog類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getFields

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void getFields(){
   try {
      RowMetaInterface rowMeta = transMeta.getPrevStepFields( stepname );
      if ( rowMeta != null ) {
         BaseStepDialog.getFieldsFromPrevious( rowMeta, m_fieldsView, 1,
                                               new int[]{1}, null, -1, -1,
                                               null );
      }
   }
   catch ( KettleException e ){
      logError( BaseMessages.getString( PKG, "System.Dialog.GetFieldsFailed.Message" ), //$NON-NLS-1$
            e );
      new ErrorDialog( shell,
            BaseMessages.getString( PKG, "System.Dialog.GetFieldsFailed.Title" ), BaseMessages.getString( PKG, //$NON-NLS-1$
                "System.Dialog.GetFieldsFailed.Message" ), e ); //$NON-NLS-1$
   }
}
 
開發者ID:SequoiaDB,項目名稱:pentaho-sequoiadb-plugin,代碼行數:18,代碼來源:SequoiaDBOutputDialog.java

示例2: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r != null)
		{
               TableItemInsertListener listener = new TableItemInsertListener()
               {
                   public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       tableItem.setText(2, "=");
                       return true;
                   }
               };
               BaseStepDialog.getFieldsFromPrevious(r, wKey, 1, new int[] { 1, 3}, new int[] {}, -1, -1, listener);
		}
	}
	catch (KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "InsertUpdateDialog.FailedToGetFields.DialogTitle"), 
				BaseMessages.getString(PKG, "InsertUpdateDialog.FailedToGetFields.DialogMessage"), ke); 
	}
}
 
開發者ID:jbleuel,項目名稱:pdi-teradata-tpt-plugin,代碼行數:25,代碼來源:TeraDataBulkLoaderDialog.java

示例3: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get(TableView wTable)
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r != null)
		{
               TableItemInsertListener listener = new TableItemInsertListener()
               {
                   public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       return true;
                   }
               };
               BaseStepDialog.getFieldsFromPrevious(r, wTable, 1, new int[] { 1, 2 }, new int[] {}, -1, -1 , listener);
		}
	}
	catch (KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "RssOutputDialog.UnableToGetFieldsError.DialogTitle"), //$NON-NLS-1$
				BaseMessages.getString(PKG, "RssOutputDialog.UnableToGetFieldsError.DialogMessage"), ke); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:24,代碼來源:RssOutputDialog.java

示例4: getKeys

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void getKeys()
{
    try
    {
        StepMeta stepMeta = transMeta.findStep(wReference.getText());
        if (stepMeta!=null)
        {
            RowMetaInterface prev = transMeta.getStepFields(stepMeta);
            if (prev!=null)
            {
                BaseStepDialog.getFieldsFromPrevious(prev, wKeys, 1, new int[] { 1 }, new int[] { }, -1, -1, null);
            }
        }
    }
    catch(KettleException e)
    {
        new ErrorDialog(shell, Messages.getString("MergeRowsDialog.ErrorGettingFields.DialogTitle"), Messages.getString("MergeRowsDialog.ErrorGettingFields.DialogMessage"), e); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:20,代碼來源:MergeRowsDialog.java

示例5: getValues

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void getValues()
{
    try
    {
        StepMeta stepMeta = transMeta.findStep(wReference.getText());
        if (stepMeta!=null)
        {
            RowMetaInterface prev = transMeta.getStepFields(stepMeta);
            if (prev!=null)
            {
                BaseStepDialog.getFieldsFromPrevious(prev, wValues, 1, new int[] { 1 }, new int[] { }, -1, -1, null);
            }
        }
    }
    catch(KettleException e)
    {
        new ErrorDialog(shell, Messages.getString("MergeRowsDialog.ErrorGettingFields.DialogTitle"), Messages.getString("MergeRowsDialog.ErrorGettingFields.DialogMessage"), e); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:20,代碼來源:MergeRowsDialog.java

示例6: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && r.size()>0)
		{
               BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, null);
		}
		else
		{
			MessageBox mb;
			mb = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
			mb.setMessage(Messages.getString("AggregateRowsDialog.CouldNotRetrieveFields.DialogMessage",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$
			mb.setText(Messages.getString("AggregateRowsDialog.CouldNotRetrieveFields.DialogTitle")); //$NON-NLS-1$
			mb.open();
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("AggregateRowsDialog.GetFieldsFailed.DialogTitle"), Messages.getString("AggregateRowsDialog.GetFieldsFailed.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:24,代碼來源:AggregateRowsDialog.java

示例7: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get() {
	try {
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r != null) {
			TableItemInsertListener listener = new TableItemInsertListener()  {
				public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v) {
					if (v.getType() == ValueMeta.TYPE_STRING) {
						// Only process strings
						tableItem.setText(3, BaseMessages.getString(PKG, "System.Combo.No"));
						tableItem.setText(7, BaseMessages.getString(PKG, "System.Combo.No"));
						tableItem.setText(8, BaseMessages.getString(PKG, "System.Combo.No"));
						return true;
					} else {
						return false;
					}
				}
			};
			BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1 }, new int[] {}, -1, -1, listener);
		}
	} catch (KettleException ke) {
		new ErrorDialog(
				shell,BaseMessages.getString(PKG, "ReplaceStringDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "ReplaceStringDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:25,代碼來源:ReplaceStringDialog.java

示例8: getUpdate

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void getUpdate()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r != null)
		{
               TableItemInsertListener listener = new TableItemInsertListener()
               {
               	 public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       tableItem.setText(3, "Y");
                       return true;
                   }
               };
               BaseStepDialog.getFieldsFromPrevious(r, wReturn, 1, new int[] { 1, 2}, new int[] {}, -1, -1, listener);
		}
	}
	catch (KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "SynchronizeAfterMergeDialog.FailedToGetFields.DialogTitle"), //$NON-NLS-1$
				BaseMessages.getString(PKG, "SynchronizeAfterMergeDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:25,代碼來源:SynchronizeAfterMergeDialog.java

示例9: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepMeta);
		if (r!=null)
		{
			TableItemInsertListener insertListener = new TableItemInsertListener()  
                   {   
                   	public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v) 
                       { 
                           return true;
                       } 
                   };
                   
               BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1 }, new int[] {}, -1, -1, insertListener);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "System.Dialog.GetFieldsFailed.Title"), BaseMessages.getString(PKG, "System.Dialog.GetFieldsFailed.Message"), ke);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:24,代碼來源:SetValueConstantDialog.java

示例10: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
           RowMetaInterface r = transMeta.getPrevStepFields(stepname);
           if (r!=null && !r.isEmpty())
           {
   			switch (wTabFolder.getSelectionIndex())
   			{
   			case 0 : BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1 }, new int[] {}, -1, -1, null); break;
               case 1 : BaseStepDialog.getFieldsFromPrevious(r, wRemove, 1, new int[] { 1 }, new int[] {}, -1, -1, null); break;
               case 2 : BaseStepDialog.getFieldsFromPrevious(r, wMeta, 1, new int[] { 1 }, new int[] {}, 4, 5, null); break;
   			}
           }
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("SelectValuesDialog.FailedToGetFields.DialogTitle"), Messages.getString("SelectValuesDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:21,代碼來源:SelectValuesDialog.java

示例11: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wParam, 1, new int[] { 1 }, new int[] { 2 }, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("DatabaseJoinDialog.GetFieldsFailed.DialogTitle"), Messages.getString("DatabaseJoinDialog.GetFieldsFailed.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:17,代碼來源:DatabaseJoinDialog.java

示例12: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
           RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               TableItemInsertListener listener = new TableItemInsertListener()
               {
                   public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       tableItem.setText(2, "=");
                       return true;
                   }
               };
               BaseStepDialog.getFieldsFromPrevious(r, wKey, 1, new int[] { 1, 3}, new int[] {}, -1, -1, listener);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("DatabaseLookupDialog.GetFieldsFailed.DialogTitle"), Messages.getString("DatabaseLookupDialog.GetFieldsFailed.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:25,代碼來源:DatabaseLookupDialog.java

示例13: getUpdate

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void getUpdate()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r != null)
		{
               TableItemInsertListener listener = new TableItemInsertListener()
               {
                   public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       tableItem.setText(3, "Y");
                       return true;
                   }
               };
               BaseStepDialog.getFieldsFromPrevious(r, wReturn, 1, new int[] { 1, 2}, new int[] {}, -1, -1, listener);
		}
	}
	catch (KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "SalesforceUpsertDialog.FailedToGetFields.DialogTitle"), //$NON-NLS-1$
				BaseMessages.getString(PKG, "SalesforceUpsertDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:25,代碼來源:SalesforceUpsertDialog.java

示例14: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r != null)
		{
			BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1 }, new int[] {}, -1, -1,
					null);
		}
	} catch (KettleException ke)
	{
		new ErrorDialog(
				shell,
				BaseMessages.getString(PKG, "ExecSQLDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "ExecSQLDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:19,代碼來源:ExecSQLDialog.java

示例15: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //導入依賴的package包/類
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               TableItemInsertListener listener = new TableItemInsertListener()
               {
                   public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                   {
                       tableItem.setText(2, "=");
                       return true;
                   }
               };
               BaseStepDialog.getFieldsFromPrevious(r, wKey, 1, new int[] { 1, 3}, new int[] {}, -1, -1, listener);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("UpdateDialog.FailedToGetFields.DialogTitle"), Messages.getString("UpdateDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:24,代碼來源:UpdateDialog.java


注:本文中的org.pentaho.di.ui.trans.step.BaseStepDialog類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。