• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java JobGraph类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: checkRollback

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public void checkRollback(ShellEvent e)
{
	if (changedInDialog)
	{
		int save = JobGraph.showChangedWarning(shell, "repository");
		if (save == SWT.CANCEL)
		{
			e.doit = false;
		}
		else if (save == SWT.YES)
		{
			commit();
		}
		else
		{
			rollback();
		}
	}
	else
	{
		rollback();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:RepositoryExplorerDialog.java


示例2: checkCancel

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
private void checkCancel(ShellEvent e)
{
	if (changedInDialog)
	{
		int save = JobGraph.showChangedWarning(shell, wStepname.getText());
		if (save == SWT.CANCEL)
		{
			e.doit = false;
		}
		else if (save == SWT.YES)
		{
			ok();
		}
		else
		{
			cancel();
		}
	}
	else
	{
		cancel();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:ExecSQLDialog.java


示例3: getActiveMeta

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public EngineMetaInterface getActiveMeta()
{
	TabSet tabfolder = spoon.tabfolder;
	if (tabfolder == null)
		return null;
	TabItem tabItem = tabfolder.getSelected();
	if (tabItem == null)
		return null;

	// What transformation is in the active tab?
	// TransLog, TransGraph & TransHist contain the same transformation
	//
	TabMapEntry mapEntry = getTab(tabfolder.getSelected());
	EngineMetaInterface meta = null;
	if (mapEntry != null)
	{
		if (mapEntry.getObject() instanceof TransGraph)
			meta = (mapEntry.getObject()).getMeta();
		if (mapEntry.getObject() instanceof JobGraph)
			meta = (mapEntry.getObject()).getMeta();
	}

	return meta;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:25,代码来源:SpoonTabsDelegate.java


示例4: refreshGraph

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public void refreshGraph() {
	if (shell.isDisposed())
		return;

	TabItem tabItem = tabfolder.getSelected();
	if (tabItem == null)
		return;

	TabMapEntry tabMapEntry = delegates.tabs.getTab(tabItem);
	if (tabMapEntry.getObject() instanceof TransGraph) {
		TransGraph transGraph = (TransGraph) tabMapEntry.getObject();
		transGraph.redraw();
	}
	if (tabMapEntry.getObject() instanceof JobGraph) {
		JobGraph jobGraph = (JobGraph) tabMapEntry.getObject();
		jobGraph.redraw();
	}

	setShellText();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:Spoon.java


示例5: getActiveMeta

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public EngineMetaInterface getActiveMeta() {
	if (tabfolder == null)
		return null;
	TabItem tabItem = tabfolder.getSelected();
	if (tabItem == null)
		return null;

	// What transformation is in the active tab?
	// TransLog, TransGraph & TransHist contain the same transformation
	//
	TabMapEntry mapEntry = delegates.tabs.getTab(tabfolder.getSelected());
	EngineMetaInterface meta = null;
	if (mapEntry != null) {
		if (mapEntry.getObject() instanceof TransGraph)
			meta = (mapEntry.getObject()).getMeta();
		if (mapEntry.getObject() instanceof JobGraph)
			meta = (mapEntry.getObject()).getMeta();
	}

	return meta;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:22,代码来源:Spoon.java


示例6: undoAction

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的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 (undoInterface instanceof JobMeta)
		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();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:Spoon.java


示例7: redoAction

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的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 (undoInterface instanceof JobMeta)
		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();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:26,代码来源:Spoon.java


示例8: checkCancel

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public void checkCancel(ShellEvent e) {
 	 String newText = wDesc.getText();
if (!newText.equals(origText))
{
	int save = JobGraph.showChangedWarning(shell, title);
	if (save == SWT.CANCEL)
	{
		e.doit = false;
	}
	else if (save == SWT.YES)
	{
		ok();
	}
	else
	{
		cancel();
	}
}
else
{
	cancel();
}
  }
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:EnterTextDialog.java


示例9: refreshGraph

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public void refreshGraph() {
  if (shell.isDisposed())
    return;

  TabItem tabItem = tabfolder.getSelected();
  if (tabItem == null)
    return;

  TabMapEntry tabMapEntry = delegates.tabs.getTab(tabItem);
  if (tabMapEntry!=null) {
    if (tabMapEntry.getObject() instanceof TransGraph) {
      TransGraph transGraph = (TransGraph) tabMapEntry.getObject();
      transGraph.redraw();
    }
    if (tabMapEntry.getObject() instanceof JobGraph) {
      JobGraph jobGraph = (JobGraph) tabMapEntry.getObject();
      jobGraph.redraw();
    }
  }

  setShellText();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:23,代码来源:Spoon.java


示例10: printJobFile

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
private void printJobFile(JobMeta jobMeta) {
  JobGraph jobGraph = getActiveJobGraph();
  if (jobGraph == null)
    return;

  PrintSpool ps = new PrintSpool();
  Printer printer = ps.getPrinter(shell);

  // Create an image of the screen
  Point max = jobMeta.getMaximum();

  Image img = jobGraph.getJobImage(printer, max.x, max.y, 1.0f);

  ps.printImage(shell, img);

  img.dispose();
  ps.dispose();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:19,代码来源:Spoon.java


示例11: undoAction

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的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 (undoInterface instanceof JobMeta)
    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();
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:26,代码来源:Spoon.java


示例12: redoAction

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的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 (undoInterface instanceof JobMeta)
    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();
  }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:26,代码来源:Spoon.java


示例13: getActiveMeta

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public EngineMetaInterface getActiveMeta() {

    if (tabfolder == null)
      return null;
    
    TabItem tabItem = tabfolder.getSelected();
    if (tabItem == null)
      return null;

    // What transformation is in the active tab?
    // TransLog, TransGraph & TransHist contain the same transformation
    //
    TabMapEntry mapEntry = ((Spoon) SpoonFactory.getInstance()).delegates.tabs.getTab(tabfolder.getSelected());
    EngineMetaInterface meta = null;
    if (mapEntry != null) {
      if (mapEntry.getObject() instanceof TransGraph)
        meta = (mapEntry.getObject()).getMeta();
      if (mapEntry.getObject() instanceof JobGraph)
        meta = (mapEntry.getObject()).getMeta();
    }

    return meta;
    
  }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:25,代码来源:MainSpoonPerspective.java


示例14: getActiveMeta

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public EngineMetaInterface getActiveMeta() {
  TabSet tabfolder = spoon.tabfolder;
  if ( tabfolder == null ) {
    return null;
  }
  TabItem tabItem = tabfolder.getSelected();
  if ( tabItem == null ) {
    return null;
  }

  // What transformation is in the active tab?
  // TransLog, TransGraph & TransHist contain the same transformation
  //
  TabMapEntry mapEntry = getTab( tabfolder.getSelected() );
  EngineMetaInterface meta = null;
  if ( mapEntry != null ) {
    if ( mapEntry.getObject() instanceof TransGraph ) {
      meta = ( mapEntry.getObject() ).getMeta();
    }
    if ( mapEntry.getObject() instanceof JobGraph ) {
      meta = ( mapEntry.getObject() ).getMeta();
    }
  }

  return meta;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:27,代码来源:SpoonTabsDelegate.java


示例15: refreshGraph

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
public void refreshGraph() {
  if ( shell.isDisposed() ) {
    return;
  }

  TabItem tabItem = tabfolder.getSelected();
  if ( tabItem == null ) {
    return;
  }

  TabMapEntry tabMapEntry = delegates.tabs.getTab( tabItem );
  if ( tabMapEntry != null ) {
    if ( tabMapEntry.getObject() instanceof TransGraph ) {
      TransGraph transGraph = (TransGraph) tabMapEntry.getObject();
      transGraph.redraw();
    }
    if ( tabMapEntry.getObject() instanceof JobGraph ) {
      JobGraph jobGraph = (JobGraph) tabMapEntry.getObject();
      jobGraph.redraw();
    }
  }

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


示例16: printJobFile

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
private void printJobFile( JobMeta jobMeta ) {
  JobGraph jobGraph = getActiveJobGraph();
  if ( jobGraph == null ) {
    return;
  }

  PrintSpool ps = new PrintSpool();
  Printer printer = ps.getPrinter( shell );

  // Create an image of the screen
  Point max = jobMeta.getMaximum();

  Image img = jobGraph.getJobImage( printer, max.x, max.y, 1.0f );

  ps.printImage( shell, img );

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


示例17: testDelJobNoSelections

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
@Test
public void testDelJobNoSelections() {
  JobMeta jobMeta = mock( JobMeta.class );
  Spoon spoon = mock( Spoon.class );
  when( jobMeta.getSelectedEntries() ).thenReturn( Collections.<JobEntryCopy>emptyList() );
  JobEntryCopy je = mock( JobEntryCopy.class );

  JobGraph jobGraph = mock( JobGraph.class );
  doCallRealMethod().when( jobGraph ).setJobMeta( any( JobMeta.class ) );
  doCallRealMethod().when( jobGraph ).setSpoon( any( Spoon.class ) );
  doCallRealMethod().when( jobGraph ).delSelected( any( JobEntryCopy.class ) );
  jobGraph.setJobMeta( jobMeta );
  jobGraph.setSpoon( spoon );

  jobGraph.delSelected( je );
  verify( spoon ).deleteJobEntryCopies( jobMeta, je );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:18,代码来源:GraphTest.java


示例18: testDelSelectionsJob

import org.pentaho.di.ui.spoon.job.JobGraph; //导入依赖的package包/类
@Test
public void testDelSelectionsJob() {
  JobMeta jobMeta = mock( JobMeta.class );
  Spoon spoon = mock( Spoon.class );
  JobEntryCopy selected1 = mock( JobEntryCopy.class );
  JobEntryCopy selected2 = mock( JobEntryCopy.class );
  when( jobMeta.getSelectedEntries() ).thenReturn( Arrays.asList( selected1, selected2 ) );

  JobGraph jobGraph = mock( JobGraph.class );
  doCallRealMethod().when( jobGraph ).setJobMeta( any( JobMeta.class ) );
  doCallRealMethod().when( jobGraph ).setSpoon( any( Spoon.class ) );
  doCallRealMethod().when( jobGraph ).delSelected( any( JobEntryCopy.class ) );
  jobGraph.setJobMeta( jobMeta );
  jobGraph.setSpoon( spoon );

  jobGraph.delSelected( null );
  verify( spoon ).deleteJobEntryCopies( eq( jobMeta ),
      AdditionalMatchers.aryEq( new JobEntryCopy[] { selected1, selected2 } ) );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:20,代码来源:GraphTest.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SubmitApplicationRequestProto类代码示例发布时间:2022-05-22
下一篇:
Java Residence类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap