本文整理汇总了Java中org.pentaho.di.ui.trans.dialog.TransDialog类的典型用法代码示例。如果您正苦于以下问题:Java TransDialog类的具体用法?Java TransDialog怎么用?Java TransDialog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TransDialog类属于org.pentaho.di.ui.trans.dialog包,在下文中一共展示了TransDialog类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: editProperties
import org.pentaho.di.ui.trans.dialog.TransDialog; //导入依赖的package包/类
public static boolean editProperties(TransMeta transMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange,
TransDialog.Tabs currentTab) {
if (transMeta == null)
return false;
TransDialog tid = new TransDialog(spoon.getShell(), SWT.NONE, transMeta, rep, currentTab);
tid.setDirectoryChangeAllowed(allowDirectoryChange);
TransMeta ti = tid.open();
// Load shared objects
//
if (tid.isSharedObjectsFileChanged() || ti != null) {
try {
SharedObjects sharedObjects = transMeta.readSharedObjects(rep);
spoon.sharedObjectsFileMap.put(sharedObjects.getFilename(), sharedObjects);
} catch (KettleException e) {
new ErrorDialog(spoon.getShell(), Messages.getString("Spoon.Dialog.ErrorReadingSharedObjects.Title"),
Messages.getString("Spoon.Dialog.ErrorReadingSharedObjects.Message", spoon.makeTransGraphTabName(transMeta)), e);
}
// If we added properties, add them to the variables too, so that they appear in the CTRL-SPACE variable completion.
//
spoon.setParametersAsVariablesInUI(transMeta, transMeta);
spoon.refreshTree();
spoon.delegates.tabs.renameTabs(); // cheap operation, might as will do it anyway
}
spoon.setShellText();
return ti != null;
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:32,代码来源:TransGraph.java
示例2: showEmptyGraph
import org.pentaho.di.ui.trans.dialog.TransDialog; //导入依赖的package包/类
/**
* Tell the user that the transformation is not running or that there is no monitoring configured.
*/
private void showEmptyGraph() {
if (perfComposite.isDisposed()) return;
emptyGraph = true;
Label label = new Label(perfComposite, SWT.CENTER);
label.setText(Messages.getString("TransLog.Dialog.PerformanceMonitoringNotEnabled.Message"));
label.setBackground(perfComposite.getBackground());
label.setFont(GUIResource.getInstance().getFontMedium());
FormData fdLabel = new FormData();
fdLabel.left=new FormAttachment(5,0);
fdLabel.right=new FormAttachment(95,0);
fdLabel.top=new FormAttachment(5,0);
label.setLayoutData(fdLabel);
Button button = new Button(perfComposite, SWT.CENTER);
button.setText(Messages.getString("TransLog.Dialog.PerformanceMonitoring.Button"));
button.setBackground(perfComposite.getBackground());
button.setFont(GUIResource.getInstance().getFontMedium());
button.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent event){
TransGraph.editProperties(spoon.getActiveTransformation(), spoon, spoon.rep, true, TransDialog.Tabs.MONITOR_TAB);
}
});
FormData fdButton = new FormData();
fdButton.left=new FormAttachment(40,0);
fdButton.right=new FormAttachment(60,0);
fdButton.top=new FormAttachment(label, 5);
button.setLayoutData(fdButton);
perfComposite.layout(true, true);
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:39,代码来源:TransPerfDelegate.java
示例3: editProperties
import org.pentaho.di.ui.trans.dialog.TransDialog; //导入依赖的package包/类
public static boolean editProperties(TransMeta transMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange,
TransDialog.Tabs currentTab) {
if (transMeta == null)
return false;
TransDialog tid = new TransDialog(spoon.getShell(), SWT.NONE, transMeta, rep, currentTab);
tid.setDirectoryChangeAllowed(allowDirectoryChange);
TransMeta ti = tid.open();
// Load shared objects
//
if (tid.isSharedObjectsFileChanged()) {
try {
SharedObjects sharedObjects = rep!=null ? rep.readTransSharedObjects(transMeta) : transMeta.readSharedObjects();
spoon.sharedObjectsFileMap.put(sharedObjects.getFilename(), sharedObjects);
} catch (KettleException e) {
new ErrorDialog(spoon.getShell(), BaseMessages.getString(PKG, "Spoon.Dialog.ErrorReadingSharedObjects.Title"), //$NON-NLS-1$
BaseMessages.getString(PKG, "Spoon.Dialog.ErrorReadingSharedObjects.Message", spoon.makeTabName(transMeta, true)), e); //$NON-NLS-1$
}
// If we added properties, add them to the variables too, so that they appear in the CTRL-SPACE variable completion.
//
spoon.setParametersAsVariablesInUI(transMeta, transMeta);
spoon.refreshTree();
spoon.delegates.tabs.renameTabs(); // cheap operation, might as will do it anyway
}
spoon.setShellText();
return ti != null;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:32,代码来源:TransGraph.java
示例4: showEmptyGraph
import org.pentaho.di.ui.trans.dialog.TransDialog; //导入依赖的package包/类
/**
* Tell the user that the transformation is not running or that there is no monitoring configured.
*/
private void showEmptyGraph() {
if (perfComposite.isDisposed()) return;
emptyGraph = true;
Label label = new Label(perfComposite, SWT.CENTER);
label.setText(BaseMessages.getString(PKG, "TransLog.Dialog.PerformanceMonitoringNotEnabled.Message"));
label.setBackground(perfComposite.getBackground());
label.setFont(GUIResource.getInstance().getFontMedium());
FormData fdLabel = new FormData();
fdLabel.left=new FormAttachment(5,0);
fdLabel.right=new FormAttachment(95,0);
fdLabel.top=new FormAttachment(5,0);
label.setLayoutData(fdLabel);
Button button = new Button(perfComposite, SWT.CENTER);
button.setText(BaseMessages.getString(PKG, "TransLog.Dialog.PerformanceMonitoring.Button"));
button.setBackground(perfComposite.getBackground());
button.setFont(GUIResource.getInstance().getFontMedium());
button.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent event){
TransGraph.editProperties(spoon.getActiveTransformation(), spoon, spoon.rep, true, TransDialog.Tabs.MONITOR_TAB);
}
});
FormData fdButton = new FormData();
fdButton.left=new FormAttachment(40,0);
fdButton.right=new FormAttachment(60,0);
fdButton.top=new FormAttachment(label, 5);
button.setLayoutData(fdButton);
perfComposite.layout(true, true);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:39,代码来源:TransPerfDelegate.java
示例5: editProperties
import org.pentaho.di.ui.trans.dialog.TransDialog; //导入依赖的package包/类
public static boolean editProperties( TransMeta transMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange,
TransDialog.Tabs currentTab ) {
if ( transMeta == null ) {
return false;
}
TransDialog tid = new TransDialog( spoon.getShell(), SWT.NONE, transMeta, rep, currentTab );
tid.setDirectoryChangeAllowed( allowDirectoryChange );
TransMeta ti = tid.open();
// Load shared objects
//
if ( tid.isSharedObjectsFileChanged() ) {
try {
SharedObjects sharedObjects =
rep != null ? rep.readTransSharedObjects( transMeta ) : transMeta.readSharedObjects();
spoon.sharedObjectsFileMap.put( sharedObjects.getFilename(), sharedObjects );
} catch ( KettleException e ) {
// CHECKSTYLE:LineLength:OFF
new ErrorDialog( spoon.getShell(),
BaseMessages.getString( PKG, "Spoon.Dialog.ErrorReadingSharedObjects.Title" ), BaseMessages.getString( PKG,
"Spoon.Dialog.ErrorReadingSharedObjects.Message", spoon.makeTabName( transMeta, true ) ), e );
}
// If we added properties, add them to the variables too, so that they appear in the CTRL-SPACE variable
// completion.
//
spoon.setParametersAsVariablesInUI( transMeta, transMeta );
spoon.refreshTree();
spoon.delegates.tabs.renameTabs(); // cheap operation, might as will do it anyway
}
spoon.setShellText();
return ti != null;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:37,代码来源:TransGraph.java
示例6: showEmptyGraph
import org.pentaho.di.ui.trans.dialog.TransDialog; //导入依赖的package包/类
/**
* Tell the user that the transformation is not running or that there is no monitoring configured.
*/
private void showEmptyGraph() {
if ( perfComposite.isDisposed() ) {
return;
}
emptyGraph = true;
Label label = new Label( perfComposite, SWT.CENTER );
label.setText( BaseMessages.getString( PKG, "TransLog.Dialog.PerformanceMonitoringNotEnabled.Message" ) );
label.setBackground( perfComposite.getBackground() );
label.setFont( GUIResource.getInstance().getFontMedium() );
FormData fdLabel = new FormData();
fdLabel.left = new FormAttachment( 5, 0 );
fdLabel.right = new FormAttachment( 95, 0 );
fdLabel.top = new FormAttachment( 5, 0 );
label.setLayoutData( fdLabel );
Button button = new Button( perfComposite, SWT.CENTER );
button.setText( BaseMessages.getString( PKG, "TransLog.Dialog.PerformanceMonitoring.Button" ) );
button.setBackground( perfComposite.getBackground() );
button.setFont( GUIResource.getInstance().getFontMedium() );
button.addSelectionListener( new SelectionAdapter() {
public void widgetSelected( SelectionEvent event ) {
TransGraph.editProperties(
spoon.getActiveTransformation(), spoon, spoon.rep, true, TransDialog.Tabs.MONITOR_TAB );
}
} );
FormData fdButton = new FormData();
fdButton.left = new FormAttachment( 40, 0 );
fdButton.right = new FormAttachment( 60, 0 );
fdButton.top = new FormAttachment( label, 5 );
button.setLayoutData( fdButton );
perfComposite.layout( true, true );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:42,代码来源:TransPerfDelegate.java
注:本文中的org.pentaho.di.ui.trans.dialog.TransDialog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论