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


Java ZipFileMeta类代码示例

本文整理汇总了Java中org.pentaho.di.trans.steps.zipfile.ZipFileMeta的典型用法代码示例。如果您正苦于以下问题:Java ZipFileMeta类的具体用法?Java ZipFileMeta怎么用?Java ZipFileMeta使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ZipFileMeta类属于org.pentaho.di.trans.steps.zipfile包,在下文中一共展示了ZipFileMeta类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getData

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
/**
 * Copy information from the meta-data input to the dialog fields.
 */ 
public void getData()
{
	if(log.isDebug()) log.logDebug(toString(), BaseMessages.getString(PKG, "ZipFileDialog.Log.GettingKeyInfo")); //$NON-NLS-1$
	if (input.getBaseFolderField() !=null)   wBaseFolderField.setText(input.getBaseFolderField());
	if (input.getDynamicSourceFileNameField() !=null)   wSourceFileNameField.setText(input.getDynamicSourceFileNameField());
	if (input.getDynamicTargetFileNameField() !=null)   wTargetFileNameField.setText(input.getDynamicTargetFileNameField());
	wOperation.setText(ZipFileMeta.getOperationTypeDesc(input.getOperationType()));
	if (input.getMoveToFolderField() !=null)   wMoveToFolderField.setText(input.getMoveToFolderField());
	
	wAddResult.setSelection(input.isaddTargetFileNametoResult());
	wOverwriteZipEntry.setSelection(input.isOverwriteZipEntry());
	wCreateParentFolder.setSelection(input.isCreateParentFolder());
	wKeepFolders.setSelection(input.isKeepSouceFolder());
	wStepname.selectAll();
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:19,代码来源:ZipFileDialog.java

示例2: ok

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
private void ok()
{
	  if(Const.isEmpty(wStepname.getText())) {
 			MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
 			mb.setMessage(BaseMessages.getString(PKG, "System.Error.StepNameMissing.Message"));
 			mb.setText(BaseMessages.getString(PKG, "System.Error.StepNameMissing.Title"));
 			mb.open(); 
 			return;
       }
	input.setBaseFolderField(wBaseFolderField.getText() );
	input.setDynamicSourceFileNameField(wSourceFileNameField.getText() );
	input.setDynamicTargetFileNameField(wTargetFileNameField.getText() );
	input.setaddTargetFileNametoResult(wAddResult.getSelection());
	input.setOverwriteZipEntry(wOverwriteZipEntry.getSelection());
	input.setCreateParentFolder(wCreateParentFolder.getSelection());
	input.setKeepSouceFolder(wKeepFolders.getSelection());
	input.setOperationType(ZipFileMeta.getOperationTypeByDesc(wOperation.getText()));
	input.setMoveToFolderField(wMoveToFolderField.getText() );
	stepname = wStepname.getText(); // return value
	
	dispose();
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:23,代码来源:ZipFileDialog.java

示例3: ok

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
private void ok() {
  if ( Utils.isEmpty( wStepname.getText() ) ) {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
    mb.setMessage( BaseMessages.getString( PKG, "System.Error.StepNameMissing.Message" ) );
    mb.setText( BaseMessages.getString( PKG, "System.Error.StepNameMissing.Title" ) );
    mb.open();
    return;
  }
  input.setBaseFolderField( wBaseFolderField.getText() );
  input.setDynamicSourceFileNameField( wSourceFileNameField.getText() );
  input.setDynamicTargetFileNameField( wTargetFileNameField.getText() );
  input.setaddTargetFileNametoResult( wAddResult.getSelection() );
  input.setOverwriteZipEntry( wOverwriteZipEntry.getSelection() );
  input.setCreateParentFolder( wCreateParentFolder.getSelection() );
  input.setKeepSouceFolder( wKeepFolders.getSelection() );
  input.setOperationType( ZipFileMeta.getOperationTypeByDesc( wOperation.getText() ) );
  input.setMoveToFolderField( wMoveToFolderField.getText() );
  stepname = wStepname.getText(); // return value

  dispose();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:ZipFileDialog.java

示例4: getData

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
/**
 * Copy information from the meta-data input to the dialog fields.
 */
public void getData() {
  if ( log.isDebug() ) {
    log.logDebug( toString(), BaseMessages.getString( PKG, "ZipFileDialog.Log.GettingKeyInfo" ) );
  }
  if ( input.getBaseFolderField() != null ) {
    wBaseFolderField.setText( input.getBaseFolderField() );
  }
  if ( input.getDynamicSourceFileNameField() != null ) {
    wSourceFileNameField.setText( input.getDynamicSourceFileNameField() );
  }
  if ( input.getDynamicTargetFileNameField() != null ) {
    wTargetFileNameField.setText( input.getDynamicTargetFileNameField() );
  }
  wOperation.setText( ZipFileMeta.getOperationTypeDesc( input.getOperationType() ) );
  if ( input.getMoveToFolderField() != null ) {
    wMoveToFolderField.setText( input.getMoveToFolderField() );
  }

  wAddResult.setSelection( input.isaddTargetFileNametoResult() );
  wOverwriteZipEntry.setSelection( input.isOverwriteZipEntry() );
  wCreateParentFolder.setSelection( input.isCreateParentFolder() );
  wKeepFolders.setSelection( input.isKeepSouceFolder() );

  wStepname.selectAll();
  wStepname.setFocus();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:30,代码来源:ZipFileDialog.java

示例5: updateOperation

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
private void updateOperation() {
  wlMoveToFolderField
    .setEnabled( ZipFileMeta.getOperationTypeByDesc( wOperation.getText() ) == ZipFileMeta.OPERATION_TYPE_MOVE );
  wMoveToFolderField
    .setEnabled( ZipFileMeta.getOperationTypeByDesc( wOperation.getText() ) == ZipFileMeta.OPERATION_TYPE_MOVE );

}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:ZipFileDialog.java

示例6: ZipFileDialog

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
public ZipFileDialog(Shell parent, Object in, TransMeta transMeta, String sname)
{
	super(parent, (BaseStepMeta)in, transMeta, sname);
	input=(ZipFileMeta)in;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:6,代码来源:ZipFileDialog.java

示例7: updateOperation

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
private void updateOperation()
{
	wlMoveToFolderField.setEnabled(ZipFileMeta.getOperationTypeByDesc(wOperation.getText())==ZipFileMeta.OPERATION_TYPE_MOVE);
	wMoveToFolderField.setEnabled(ZipFileMeta.getOperationTypeByDesc(wOperation.getText())==ZipFileMeta.OPERATION_TYPE_MOVE);

}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:7,代码来源:ZipFileDialog.java

示例8: ZipFileDialog

import org.pentaho.di.trans.steps.zipfile.ZipFileMeta; //导入依赖的package包/类
public ZipFileDialog( Shell parent, Object in, TransMeta transMeta, String sname ) {
  super( parent, (BaseStepMeta) in, transMeta, sname );
  input = (ZipFileMeta) in;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:ZipFileDialog.java


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