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


Java PropsUI类代码示例

本文整理汇总了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;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:TransDialog.java

示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:23,代码来源:RepositoryExplorerDialog.java

示例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);
	{

	}
}
 
开发者ID:WiednerF,项目名称:ARXPlugin,代码行数:23,代码来源:LayoutGeneral.java

示例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;
}
 
开发者ID:mattcasters,项目名称:pentaho-pdi-dataset,代码行数:19,代码来源:EditRowsDialog.java

示例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));
      }
  }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:Translator2.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pdi-platform-utils-plugin,代码行数:17,代码来源:Tab.java

示例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();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:17,代码来源:DatabaseExplorerDialogLegacy.java

示例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();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:17,代码来源:DatabaseExplorerDialog.java

示例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;

}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:SelectObjectDialog.java

示例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();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:TransDialog.java

示例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;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:18,代码来源:SelectObjectDialog.java

示例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));
    }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:Translator2.java

示例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();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:JobGraph.java

示例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);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:23,代码来源:Spoon.java

示例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


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