本文整理汇总了Java中org.pentaho.di.core.undo.TransAction.getType方法的典型用法代码示例。如果您正苦于以下问题:Java TransAction.getType方法的具体用法?Java TransAction.getType怎么用?Java TransAction.getType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.undo.TransAction
的用法示例。
在下文中一共展示了TransAction.getType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: undoAction
import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
public void undoAction( UndoInterface undoInterface ) {
if ( undoInterface == null ) {
return;
}
TransAction ta = undoInterface.previousUndo();
if ( ta == null ) {
return;
}
setUndoMenu( undoInterface ); // something changed: change the menu
if ( undoInterface instanceof TransMeta ) {
delegates.trans.undoTransformationAction( (TransMeta) undoInterface, ta );
if ( ta.getType() == TransAction.TYPE_ACTION_DELETE_STEP ) {
setUndoMenu( undoInterface ); // something changed: change the menu
handleSelectedStepOnUndo( (TransMeta) undoInterface );
ta = undoInterface.viewPreviousUndo();
if ( ta != null && ta.getType() == TransAction.TYPE_ACTION_DELETE_HOP ) {
ta = undoInterface.previousUndo();
delegates.trans.undoTransformationAction( (TransMeta) undoInterface, ta );
}
}
}
if ( undoInterface instanceof JobMeta ) {
delegates.jobs.undoJobAction( (JobMeta) undoInterface, ta );
if ( ta.getType() == TransAction.TYPE_ACTION_DELETE_JOB_ENTRY ) {
setUndoMenu( undoInterface ); // something changed: change the menu
ta = undoInterface.viewPreviousUndo();
if ( ta != null && ta.getType() == TransAction.TYPE_ACTION_DELETE_JOB_HOP ) {
ta = undoInterface.previousUndo();
delegates.jobs.undoJobAction( (JobMeta) undoInterface, ta );
}
}
}
// Put what we undo in focus
if ( undoInterface instanceof TransMeta ) {
TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( (TransMeta) undoInterface );
transGraph.forceFocus();
}
if ( undoInterface instanceof JobMeta ) {
JobGraph jobGraph = delegates.jobs.findJobGraphOfJob( (JobMeta) undoInterface );
jobGraph.forceFocus();
}
}
示例2: redoAction
import org.pentaho.di.core.undo.TransAction; //导入方法依赖的package包/类
public void redoAction( UndoInterface undoInterface ) {
if ( undoInterface == null ) {
return;
}
TransAction ta = undoInterface.nextUndo();
if ( ta == null ) {
return;
}
setUndoMenu( undoInterface ); // something changed: change the menu
if ( undoInterface instanceof TransMeta ) {
delegates.trans.redoTransformationAction( (TransMeta) undoInterface, ta );
if ( ta.getType() == TransAction.TYPE_ACTION_DELETE_HOP ) {
setUndoMenu( undoInterface ); // something changed: change the menu
ta = undoInterface.viewNextUndo();
if ( ta != null && ta.getType() == TransAction.TYPE_ACTION_DELETE_STEP ) {
ta = undoInterface.nextUndo();
delegates.trans.redoTransformationAction( (TransMeta) undoInterface, ta );
}
}
}
if ( undoInterface instanceof JobMeta ) {
delegates.jobs.redoJobAction( (JobMeta) undoInterface, ta );
if ( ta.getType() == TransAction.TYPE_ACTION_DELETE_JOB_HOP ) {
setUndoMenu( undoInterface ); // something changed: change the menu
ta = undoInterface.viewNextUndo();
if ( ta != null && ta.getType() == TransAction.TYPE_ACTION_DELETE_JOB_ENTRY ) {
ta = undoInterface.nextUndo();
delegates.jobs.redoJobAction( (JobMeta) undoInterface, ta );
}
}
}
// Put what we redo in focus
if ( undoInterface instanceof TransMeta ) {
TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( (TransMeta) undoInterface );
transGraph.forceFocus();
}
if ( undoInterface instanceof JobMeta ) {
JobGraph jobGraph = delegates.jobs.findJobGraphOfJob( (JobMeta) undoInterface );
jobGraph.forceFocus();
}
}