当前位置: 首页>>代码示例>>Java>>正文


Java BaseStepDialog.getFieldsFromPrevious方法代码示例

本文整理汇总了Java中org.pentaho.di.ui.trans.step.BaseStepDialog.getFieldsFromPrevious方法的典型用法代码示例。如果您正苦于以下问题:Java BaseStepDialog.getFieldsFromPrevious方法的具体用法?Java BaseStepDialog.getFieldsFromPrevious怎么用?Java BaseStepDialog.getFieldsFromPrevious使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.ui.trans.step.BaseStepDialog的用法示例。


在下文中一共展示了BaseStepDialog.getFieldsFromPrevious方法的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)
		{
			BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1 }, new int[] {}, -1, -1,
					null);
		}
	} catch (KettleException ke)
	{
		new ErrorDialog(
				shell,
				Messages.getString("ExecSQLDialog.FailedToGetFields.DialogTitle"), Messages.getString("ExecSQLDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:ExecSQLDialog.java

示例3: 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, wKey, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, new TableItemInsertListener()
                   {
                       public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                       {
                           tableItem.setText(3, "N"); //$NON-NLS-1$
                           return true;
                       }
                   }
               );
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToGetFieldsError.DialogTitle"), BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToGetFieldsError.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:CombinationLookupDialog.java

示例4: 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, BaseMessages.getString(PKG, "MergeRowsDialog.ErrorGettingFields.DialogTitle"), BaseMessages.getString(PKG, "MergeRowsDialog.ErrorGettingFields.DialogMessage"), e); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:MergeRowsDialog.java

示例5: getUpdate

import org.pentaho.di.ui.trans.step.BaseStepDialog; //导入方法依赖的package包/类
/**
 * Get the fields from the previous step and use them as "update fields". Only
 * get the the fields which are not yet in use as key, or in the field table.
 * Also ignore technical key, version, fromdate, todate.
 */
private void getUpdate() {
  try {
    RowMetaInterface r = transMeta.getPrevStepFields(stepname);
    if (r != null && !r.isEmpty()) {
      BaseStepDialog.getFieldsFromPrevious(r, wUpIns, 2, new int[] { 1, 2 }, new int[] {}, -1, -1, new TableItemInsertListener() {
        public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v) {
          tableItem.setText(3, BaseMessages.getString(PKG, "DimensionLookupDialog.TableItem.Insert.Label")); //$NON-NLS-1$

          int idx = wKey.indexOfString(v.getName(), 2);
          if (idx < 0 && !v.getName().equalsIgnoreCase(wTk.getText()) && !v.getName().equalsIgnoreCase(wVersion.getText()) && !v.getName().equalsIgnoreCase(wFromdate.getText()) && !v.getName().equalsIgnoreCase(wTodate.getText())) {
            return true;
          }
          return false;
        }
      });
    }
  } catch (KettleException ke) {
    new ErrorDialog(shell, BaseMessages.getString(PKG, "DimensionLookupDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "DimensionLookupDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:26,代码来源:DimensionLookupDialog.java

示例6: 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, "N");
                       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, "SalesforceUpdateDialog.FailedToGetFields.DialogTitle"), //$NON-NLS-1$
				BaseMessages.getString(PKG, "SalesforceUpdateDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:25,代码来源:SalesforceUpdateDialog.java

示例7: 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, wFields, 1, new int[] { 1, 2 }, new int[] { 3 }, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("HTTPPOSTDialog.FailedToGetFields.DialogTitle"), Messages.getString("HTTPPOSTDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:17,代码来源:HTTPPOSTDialog.java

示例8: getKeys2

import org.pentaho.di.ui.trans.step.BaseStepDialog; //导入方法依赖的package包/类
private void getKeys2()
{
    MergeJoinMeta meta = new MergeJoinMeta();
    getMeta(meta);

    try
    {
        StepMeta stepMeta = transMeta.findStep(meta.getStepName2());
        if (stepMeta!=null)
        {
            RowMetaInterface prev = transMeta.getStepFields(stepMeta);
            if (prev!=null)
            {
                BaseStepDialog.getFieldsFromPrevious(prev, wKeys2, 1, new int[] { 1 }, new int[] {}, -1, -1, null);
            }
        }
    }
    catch(KettleException e)
    {
        new ErrorDialog(shell, Messages.getString("MergeJoinDialog.ErrorGettingFields.DialogTitle"), Messages.getString("MergeJoinDialog.ErrorGettingFields.DialogMessage"), e); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:23,代码来源:MergeJoinDialog.java

示例9: 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(BaseMessages.getString(PKG, "AggregateRowsDialog.CouldNotRetrieveFields.DialogMessage",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$
			mb.setText(BaseMessages.getString(PKG, "AggregateRowsDialog.CouldNotRetrieveFields.DialogTitle")); //$NON-NLS-1$
			mb.open();
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "AggregateRowsDialog.GetFieldsFailed.DialogTitle"), BaseMessages.getString(PKG, "AggregateRowsDialog.GetFieldsFailed.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:AggregateRowsDialog.java

示例10: 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, Messages.getString("System.Dialog.GetFieldsFailed.Title"), Messages.getString("System.Dialog.GetFieldsFailed.Message"), ke);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:SetValueConstantDialog.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())
           {
   			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, BaseMessages.getString(PKG, "SelectValuesDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "SelectValuesDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:21,代码来源:SelectValuesDialog.java

示例12: getHeaders

import org.pentaho.di.ui.trans.step.BaseStepDialog; //导入方法依赖的package包/类
private void getHeaders()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null && !r.isEmpty())
		{
               BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1, 2 }, new int[] { 3 }, -1, -1, null);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, BaseMessages.getString(PKG, "RestDialog.FailedToGetHeaders.DialogTitle"), 
				BaseMessages.getString(PKG, "RestDialog.FailedToGetHeaders.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:18,代码来源:RestDialog.java

示例13: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //导入方法依赖的package包/类
private void get()
{
	try
	{
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null)
		{
               TableItemInsertListener insertListener = new TableItemInsertListener() 
                   {
                       public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
                       {
                           tableItem.setText(2, Messages.getString("System.Combo.Yes"));
                           return true;
                       } 
                   };
               BaseStepDialog.getFieldsFromPrevious(r, wFields, 1, new int[] { 1 }, new int[] {}, -1, -1, insertListener);
		}
	}
	catch(KettleException ke)
	{
		new ErrorDialog(shell, Messages.getString("System.Dialog.GetFieldsFailed.Title"), Messages.getString("System.Dialog.GetFieldsFailed.Message"), ke);
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:CheckSumDialog.java

示例14: 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

示例15: get

import org.pentaho.di.ui.trans.step.BaseStepDialog; //导入方法依赖的package包/类
private void get() {
    try {
        RowMetaInterface r = this.transMeta.getPrevStepFields(this.stepname);
        if ((r != null) && (!r.isEmpty())) {
            BaseStepDialog.getFieldsFromPrevious(r, this.fieldsList, 1, new int[]{1, 2}, new int[0], -1, -1,
                    null);
        }
    } catch (KettleException e) {
        new ErrorDialog(this.shell,
                BaseMessages.getString(PKG, "AutSoftCassandraOutputDialog.FailedToGetFields.DialogTitle"),
                BaseMessages.getString(PKG, "AutSoftCassandraOutputDialog.FailedToGetFields.DialogMessage"), e);
    }
}
 
开发者ID:bcolas,项目名称:pentaho-cassandra-plugin,代码行数:14,代码来源:CassandraOutputDialog.java


注:本文中的org.pentaho.di.ui.trans.step.BaseStepDialog.getFieldsFromPrevious方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。