本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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 );
}
示例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;
}
示例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);
}
示例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;
}