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


Java JobGraph类代码示例

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


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


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