本文整理汇总了Java中org.pentaho.di.ui.core.PropsUI类的典型用法代码示例。如果您正苦于以下问题:Java PropsUI类的具体用法?Java PropsUI怎么用?Java PropsUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropsUI类属于org.pentaho.di.ui.core包,在下文中一共展示了PropsUI类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TransDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public TransDialog(Shell parent, int style, TransMeta transMeta, Repository rep)
{
super(parent, style);
this.log = LogWriter.getInstance();
this.props = PropsUI.getInstance();
this.transMeta = transMeta;
this.rep = rep;
this.newDirectory = null;
schemas = new ArrayList<PartitionSchema>();
for (int i=0;i<transMeta.getPartitionSchemas().size();i++)
{
schemas.add( (PartitionSchema) transMeta.getPartitionSchemas().get(i).clone() );
}
previousSchemaIndex = -1;
directoryChangeAllowed=true;
changed=false;
}
示例2: RepositoryExplorerDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
private RepositoryExplorerDialog(Shell par, int style, Repository rep, VariableSpace variableSpace)
{
super(par, style);
this.props=PropsUI.getInstance();
this.rep=rep;
this.log=rep.getLog();
this.variableSpace = variableSpace;
sortColumn = 0;
ascending = false;
objectMap = new HashMap<String, RepositoryElementMetaInterface>();
repositoryMeta = rep.getRepositoryMeta();
capabilities = repositoryMeta.getRepositoryCapabilities();
securityProvider = rep.getSecurityProvider();
securityManager = rep.getSecurityManager();
readonly = securityProvider.isReadOnly();
includeDeleted = false;
}
示例3: LayoutGeneral
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
/**
* Creates the Complete General Tab
* @param parent The Parent Folder
* @param meta The Meta Include for this Project
* @param props The PropsUI from the Kettle Project
* @param fieldNames The FieldNames from the Previous Step
*/
public LayoutGeneral(final CTabFolder parent, ARXPluginMeta meta, final PropsUI props, String[] fieldNames) {
this.meta = meta;
this.props = props;
this.fieldNames = fieldNames;
composites = new LayoutCompositeInterface[2];
CTabItem tabGeneral = new CTabItem(parent, SWT.NONE);
tabGeneral.setText(Resources.getMessage("General.2"));
ScrolledComposite scroller = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);
this.build(scroller);
tabGeneral.setControl(scroller);
{
}
}
示例4: EditRowsDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public EditRowsDialog( Shell parent, int style,
String title, String message, RowMetaInterface rowMeta, List<Object[]> rowBuffer ) {
this.title = title;
this.message = message;
this.rowBuffer = rowBuffer;
this.rowMeta = rowMeta;
this.parentShell = parent;
this.style = ( style != SWT.None ) ? style : this.style;
props = PropsUI.getInstance();
bounds = null;
hscroll = -1;
vscroll = -1;
title = null;
message = null;
this.log = LogChannel.GENERAL;
}
示例5: main
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public static void main(String[] args) throws Exception
{
Display display = new Display();
LogChannelInterface log = new LogChannel(APP_NAME);
PropsUI.init(display, Props.TYPE_PROPERTIES_SPOON);
Translator2 translator = new Translator2(display);
translator.loadConfiguration();
translator.open();
try
{
while (!display.isDisposed ())
{
if (!display.readAndDispatch()) display.sleep ();
}
}
catch(Throwable e)
{
log.logError(BaseMessages.getString(PKG, "i18n.UnexpectedError",e.getMessage()));
log.logError(Const.getStackTracker(e));
}
}
示例6: Tab
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public Tab( CTabFolder tabFolder, String label, PropsUI props ) {
super( tabFolder, SWT.NONE );
FormLayout formLayout = new FormLayout();
formLayout.marginLeft = BAServerCommonDialog.MEDIUM_MARGIN;
formLayout.marginRight = BAServerCommonDialog.MEDIUM_MARGIN;
formLayout.marginTop = BAServerCommonDialog.LARGE_MARGIN;
formLayout.marginBottom = BAServerCommonDialog.LARGE_MARGIN;
setLayout( formLayout );
props.setLook( this );
CTabItem tabItem = new CTabItem( tabFolder, SWT.NONE );
tabItem.setText( label );
tabItem.setControl( this );
}
示例7: DatabaseExplorerDialogLegacy
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public DatabaseExplorerDialogLegacy(Shell parent, int style, DatabaseMeta conn, List<DatabaseMeta> databases, boolean look, boolean splitSchemaAndTable)
{
super(parent, style);
this.parent = parent;
this.dbMeta=conn;
this.databases = databases;
this.justLook=look;
this.splitSchemaAndTable = splitSchemaAndTable;
selectedSchema=null;
selectedTable=null;
props=PropsUI.getInstance();
log=new LogChannel("DBExplorer");
dbcache = DBCache.getInstance();
}
示例8: DatabaseExplorerDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public DatabaseExplorerDialog(Shell parent, int style, DatabaseMeta conn, List<DatabaseMeta> databases, boolean look, boolean splitSchemaAndTable)
{
super(parent, style);
this.parent = parent;
this.dbMeta=conn;
this.databases = databases;
this.justLook=look;
this.splitSchemaAndTable = splitSchemaAndTable;
selectedSchema=null;
selectedTable=null;
props=PropsUI.getInstance();
log=LogWriter.getInstance();
dbcache = DBCache.getInstance();
}
示例9: SelectObjectDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public SelectObjectDialog(Shell parent, Repository rep, boolean showTransformations, boolean showJobs) {
super(parent, SWT.NONE);
this.props = PropsUI.getInstance();
this.rep = rep;
this.showTrans = showTransformations;
this.showJobs = showJobs;
// TODO: make this a configuration option in the dialog!
//
this.includeDeleted = false;
shellText = BaseMessages.getString(PKG, "SelectObjectDialog.Dialog.Main.Title"); //$NON-NLS-1$
lineText = BaseMessages.getString(PKG, "SelectObjectDialog.Dialog.Object.Title"); //$NON-NLS-1$
objectName = null;
objectDirectory = null;
sortColumn = 0;
ascending = false;
}
示例10: TransDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public TransDialog(Shell parent, int style, TransMeta transMeta, Repository rep)
{
super(parent, style);
this.props = PropsUI.getInstance();
this.transMeta = transMeta;
this.rep = rep;
this.newDirectory = null;
directoryChangeAllowed=true;
changed=false;
// Create a copy of the trans log table object
//
transLogTable = (TransLogTable) transMeta.getTransLogTable().clone();
performanceLogTable = (PerformanceLogTable) transMeta.getPerformanceLogTable().clone();
channelLogTable = (ChannelLogTable) transMeta.getChannelLogTable().clone();
stepLogTable = (StepLogTable) transMeta.getStepLogTable().clone();
}
示例11: SelectObjectDialog
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public SelectObjectDialog(Shell parent, Repository rep, boolean showTransformations, boolean showJobs)
{
super(parent, SWT.NONE);
this.props = PropsUI.getInstance();
this.rep = rep;
this.showTrans = showTransformations;
this.showJobs = showJobs;
shellText = Messages.getString("SelectObjectDialog.Dialog.Main.Title"); //$NON-NLS-1$
lineText = Messages.getString("SelectObjectDialog.Dialog.Object.Title"); //$NON-NLS-1$
objectName = null;
objectDirectory = null;
sortColumn = 0;
ascending = false;
}
示例12: main
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public static void main(String[] args)
{
Display display = new Display();
LogWriter log = LogWriter.getInstance();
PropsUI.init(display, Props.TYPE_PROPERTIES_SPOON);
Translator2 translator = new Translator2(display);
translator.loadConfiguration();
translator.open();
try
{
while (!display.isDisposed ())
{
if (!display.readAndDispatch()) display.sleep ();
}
}
catch(Throwable e)
{
log.logError(APP_NAME, Messages.getString("i18n.UnexpectedError",e.getMessage()));
log.logError(APP_NAME, Const.getStackTracker(e));
}
}
示例13: paintControl
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public void paintControl(PaintEvent e) {
Point area = getArea();
if (area.x == 0 || area.y == 0)
return; // nothing to do!
Display disp = shell.getDisplay();
if (disp.isDisposed())
return; // Nothing to do!
Image img = new Image(disp, area.x, area.y);
GC gc = new GC(img);
drawJob(disp, gc, PropsUI.getInstance().isBrandingActive());
e.gc.drawImage(img, 0, 0);
gc.dispose();
img.dispose();
// spoon.setShellText();
}
示例14: Spoon
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public Spoon(Display d, Repository rep) {
this.log = LogWriter.getInstance();
this.rep = rep;
if (d != null) {
display = d;
destroy = false;
} else {
display = new Display();
destroy = true;
}
props = PropsUI.getInstance();
shell = new Shell(display);
shell.setText(APPL_TITLE);
staticSpoon = this;
JndiUtil.initJNDI();
SpoonFactory.setSpoonInstance(this);
}
示例15: getComposite
import org.pentaho.di.ui.core.PropsUI; //导入依赖的package包/类
public Composite getComposite(Composite parent, ImportRuleInterface importRule) {
rule = (DatabaseConfigurationImportRule) importRule;
databaseMeta = rule.getDatabaseMeta();
PropsUI props = PropsUI.getInstance();
composite = new Composite(parent, SWT.NONE);
props.setLook(composite);
composite.setLayout(new FillLayout());
label = new Label(composite, SWT.SINGLE | SWT.BORDER | SWT.LEFT);
props.setLook(label);
label.setText("Database configuration : (not configured)");
button = new Button(composite, SWT.PUSH);
button.setText("Edit...");
button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { editDatabase(); } });
return composite;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:DatabaseConfigurationImportRuleComposite.java