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


Java TransGraph.isImpactFinished方法代码示例

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


在下文中一共展示了TransGraph.isImpactFinished方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: analyseImpact

import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
public void analyseImpact(TransMeta transMeta) {
	if (transMeta == null)
		return;
	TransGraph transGraph = delegates.trans.findTransGraphOfTransformation(transMeta);
	if (transGraph == null)
		return;

	AnalyseImpactProgressDialog aipd = new AnalyseImpactProgressDialog(shell, transMeta, transGraph.getImpact());
	transGraph.setImpactFinished(aipd.open());
	if (transGraph.isImpactFinished())
		showLastImpactAnalyses(transMeta);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:13,代码来源:Spoon.java

示例2: showLastImpactAnalyses

import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
public void showLastImpactAnalyses(TransMeta transMeta) {
	if (transMeta == null)
		return;
	TransGraph transGraph = delegates.trans.findTransGraphOfTransformation(transMeta);
	if (transGraph == null)
		return;

	List<Object[]> rows = new ArrayList<Object[]>();
	RowMetaInterface rowMeta = null;
	for (int i = 0; i < transGraph.getImpact().size(); i++) {
		DatabaseImpact ii = (DatabaseImpact) transGraph.getImpact().get(i);
		RowMetaAndData row = ii.getRow();
		rowMeta = row.getRowMeta();
		rows.add(row.getData());
	}

	if (rows.size() > 0) {
		// Display all the rows...
		PreviewRowsDialog prd = new PreviewRowsDialog(shell, Variables.getADefaultVariableSpace(), SWT.NONE, "-", rowMeta, rows);
		prd.setTitleMessage(Messages.getString("Spoon.Dialog.ImpactAnalyses.Title"), Messages.getString("Spoon.Dialog.ImpactAnalyses.Message"));// "Impact analyses"
		// "Result of analyses:"
		prd.open();
	} else {
		MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
		if (transGraph.isImpactFinished()) {
			mb.setMessage(Messages.getString("Spoon.Dialog.TransformationNoImpactOnDatabase.Message"));// "As far as I can tell, this transformation has no impact on any database."
		} else {
			mb.setMessage(Messages.getString("Spoon.Dialog.RunImpactAnalysesFirst.Message"));// "Please run the impact analyses first on this transformation."
		}
		mb.setText(Messages.getString("Spoon.Dialog.ImpactAnalyses.Title"));// Impact
		mb.open();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:34,代码来源:Spoon.java

示例3: analyseImpact

import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
public void analyseImpact(TransMeta transMeta) {
  if (transMeta == null)
    return;
  TransGraph transGraph = delegates.trans.findTransGraphOfTransformation(transMeta);
  if (transGraph == null)
    return;

  AnalyseImpactProgressDialog aipd = new AnalyseImpactProgressDialog(shell, transMeta, transGraph.getImpact());
  transGraph.setImpactFinished(aipd.open());
  if (transGraph.isImpactFinished())
    showLastImpactAnalyses(transMeta);
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:13,代码来源:Spoon.java

示例4: showLastImpactAnalyses

import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
public void showLastImpactAnalyses(TransMeta transMeta) {
  if (transMeta == null)
    return;
  TransGraph transGraph = delegates.trans.findTransGraphOfTransformation(transMeta);
  if (transGraph == null)
    return;

  List<Object[]> rows = new ArrayList<Object[]>();
  RowMetaInterface rowMeta = null;
  for (int i = 0; i < transGraph.getImpact().size(); i++) {
    DatabaseImpact ii = (DatabaseImpact) transGraph.getImpact().get(i);
    RowMetaAndData row = ii.getRow();
    rowMeta = row.getRowMeta();
    rows.add(row.getData());
  }

  if (rows.size() > 0) {
    // Display all the rows...
    PreviewRowsDialog prd = new PreviewRowsDialog(shell, Variables.getADefaultVariableSpace(), SWT.NONE, "-",
        rowMeta, rows);
    prd.setTitleMessage(
    // "Impact analyses"
        // "Result of analyses:"
        BaseMessages.getString(PKG, "Spoon.Dialog.ImpactAnalyses.Title"), BaseMessages.getString(PKG,
            "Spoon.Dialog.ImpactAnalyses.Message"));
    prd.open();
  } else {
    MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
    if (transGraph.isImpactFinished()) {
      // "As far as I can tell, this transformation has no impact on any database."
      mb.setMessage(BaseMessages.getString(PKG, "Spoon.Dialog.TransformationNoImpactOnDatabase.Message"));
    } else {
      // "Please run the impact analyses first on this transformation."
      mb.setMessage(BaseMessages.getString(PKG, "Spoon.Dialog.RunImpactAnalysesFirst.Message"));
    }
    mb.setText(BaseMessages.getString(PKG, "Spoon.Dialog.ImpactAnalyses.Title"));// Impact
    mb.open();
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:40,代码来源:Spoon.java

示例5: analyseImpact

import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
public void analyseImpact( TransMeta transMeta ) {
  if ( transMeta == null ) {
    return;
  }
  TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta );
  if ( transGraph == null ) {
    return;
  }

  AnalyseImpactProgressDialog aipd = new AnalyseImpactProgressDialog( shell, transMeta, transGraph.getImpact() );
  transGraph.setImpactFinished( aipd.open() );
  if ( transGraph.isImpactFinished() ) {
    showLastImpactAnalyses( transMeta );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:Spoon.java

示例6: showLastImpactAnalyses

import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
public void showLastImpactAnalyses( TransMeta transMeta ) {
  if ( transMeta == null ) {
    return;
  }
  TransGraph transGraph = delegates.trans.findTransGraphOfTransformation( transMeta );
  if ( transGraph == null ) {
    return;
  }

  List<Object[]> rows = new ArrayList<>();
  RowMetaInterface rowMeta = null;
  for ( int i = 0; i < transGraph.getImpact().size(); i++ ) {
    DatabaseImpact ii = transGraph.getImpact().get( i );
    RowMetaAndData row = ii.getRow();
    rowMeta = row.getRowMeta();
    rows.add( row.getData() );
  }

  if ( rows.size() > 0 ) {
    // Display all the rows...
    PreviewRowsDialog prd =
      new PreviewRowsDialog( shell, Variables.getADefaultVariableSpace(), SWT.NONE, "-", rowMeta, rows );
    prd.setTitleMessage(
      // "Impact analyses"
      // "Result of analyses:"
      BaseMessages.getString( PKG, "Spoon.Dialog.ImpactAnalyses.Title" ), BaseMessages.getString(
        PKG, "Spoon.Dialog.ImpactAnalyses.Message" ) );
    prd.open();
  } else {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );
    if ( transGraph.isImpactFinished() ) {
      // "As far as I can tell, this transformation has no impact on any database."
      mb.setMessage( BaseMessages.getString( PKG, "Spoon.Dialog.TransformationNoImpactOnDatabase.Message" ) );
    } else {
      // "Please run the impact analyses first on this transformation."
      mb.setMessage( BaseMessages.getString( PKG, "Spoon.Dialog.RunImpactAnalysesFirst.Message" ) );
    }
    mb.setText( BaseMessages.getString( PKG, "Spoon.Dialog.ImpactAnalyses.Title" ) ); // Impact
    mb.open();
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:42,代码来源:Spoon.java


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