org.pentaho.di.core.Const.isOSX()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(196)

本文整理了Java中org.pentaho.di.core.Const.isOSX()方法的一些代码示例,展示了Const.isOSX()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Const.isOSX()方法的具体详情如下:
包路径:org.pentaho.di.core.Const
类名称:Const
方法名:isOSX

Const.isOSX介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

public PentahoReportingOutput( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr,
 TransMeta transMeta, Trans trans ) {
 super( stepMeta, stepDataInterface, copyNr, transMeta, trans );
 // To prevent CGLGraphicsConfig.getConfig() hang forever on mac
 if ( Const.isOSX() ) {
  GraphicsEnvironment.getLocalGraphicsEnvironment();
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

protected void ok() {
 if ( Const.isOSX() ) {
  // OSX bug workaround.
  //
  wArguments.applyOSXChanges();
 }
 getInfoArguments();
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

protected Button buildOkButton() {
 wOK = new Button( shell, SWT.PUSH );
 wOK.setText( BaseMessages.getString( PKG, "System.Button.OK" ) ); //$NON-NLS-1$
 wOK.setLayoutData( new FormDataBuilder().bottom().right(
  wCancel, Const.isOSX() ? 0 : -BaseDialog.LABEL_SPACING ).result() );
 wOK.addListener( SWT.Selection, lsOK );
 return wOK;
}

代码示例来源:origin: pentaho/pentaho-kettle

protected void ok() {
 abstractMeta.setAlwaysShowRunOptions( alwaysShowOption.getSelection() );
 abstractMeta.setShowDialog( alwaysShowOption.getSelection() );
 if ( Const.isOSX() ) {
  // OSX bug workaround.
  wVariables.applyOSXChanges();
  wParams.applyOSXChanges();
 }
 getInfo();
 retval = true;
 dispose();
}

代码示例来源:origin: pentaho/pentaho-kettle

} else {
 button.setLayoutData( new FormDataBuilder().top( anchorElement, footerTopPadding ).right(
  previousButton, Const.isOSX() ? 0 : -BaseDialog.LABEL_SPACING ).result() );

代码示例来源:origin: pentaho/pentaho-kettle

public Point getRealPosition( Composite canvas, int x, int y ) {
 Point p = new Point( 0, 0 );
 Composite follow = canvas;
 while ( follow != null ) {
  org.eclipse.swt.graphics.Point loc = follow.getLocation();
  Point xy = new Point( loc.x, loc.y );
  p.x += xy.x;
  p.y += xy.y;
  follow = follow.getParent();
 }
 int offsetX = -16;
 int offsetY = -64;
 if ( Const.isOSX() ) {
  offsetX = -2;
  offsetY = -24;
 }
 p.x = x - p.x + offsetX;
 p.y = y - p.y + offsetY;
 return screen2real( p.x, p.y );
}

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * hideExpandedContent( TransGraph graph )
 * 
 * @param graph
 *          the TransGraph whose web browser will be hidden
 */
public static void hideExpandedContent( TransGraph graph ) {
 doToExpandedContent( graph, browser -> {
  if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
   graph.extraViewComposite.setVisible( true );
  }
  browser.moveBelow( null );
  browser.getParent().layout( true, true );
  browser.getParent().redraw();
 } );
}

代码示例来源:origin: pentaho/pentaho-kettle

break;
if ( Const.isOSX() ) {
 Shell parentShell = composite.getShell();
 final List<TableView> tableViews = new ArrayList<TableView>();

代码示例来源:origin: pentaho/pentaho-kettle

lastControl, BaseDialog.ELEMENT_SPACING * 2 ).right( 100, 0 ).result() );
wOK.setLayoutData( new FormDataBuilder().top( lastControl, BaseDialog.ELEMENT_SPACING * 2 ).right(
 wCancel, Const.isOSX() ? 0 : -BaseDialog.LABEL_SPACING ).result() );

代码示例来源:origin: pentaho/pentaho-kettle

int width = ( Const.isOSX() ? 75 : 70 );
fd_btnHelp.left = new FormAttachment( 0, 10 );
fd_btnHelp.bottom = new FormAttachment( 100, -10 );
fd_btnHelp.width = ( Const.isOSX() ? 85 : 75 );
btnHelp.setLayoutData( fd_btnHelp );
btnHelp.setText( BaseMessages.getString( PKG, "System.Button.Help" ) );

代码示例来源:origin: pentaho/pentaho-kettle

private void setXMLStreamField() {
 try {
  wXMLField.removeAll();
  RowMetaInterface r = transMeta.getPrevStepFields( stepname );
  if ( r != null ) {
   String[] fieldNames = r.getFieldNames();
   if ( fieldNames != null ) {
    for ( int i = 0; i < fieldNames.length; i++ ) {
     wXMLField.add( fieldNames[i] );
    }
   }
  }
 } catch ( KettleException ke ) {
  if ( !Const.isOSX() ) { // see PDI-8871 for details
   shell.setFocus();
  }
  wXMLField.add( EMPTY_FIELDS );
  wXMLField.setText( EMPTY_FIELDS );
  new ErrorDialog( shell, BaseMessages.getString( PKG, "GetXMLDataDialog.FailedToGetFields.DialogTitle" ),
    BaseMessages.getString( PKG, "GetXMLDataDialog.FailedToGetFields.DialogMessage" ), ke );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

okButton.setText( "OK" );
FormData fd_okButton = new FormData();
if ( Const.isOSX() ) {
 fd_okButton.left = new FormAttachment( 0, 215 );
} else {

代码示例来源:origin: pentaho/pentaho-kettle

FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wPath, 5 );
fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 );
wbBrowse.setLayoutData( fdBrowse );

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * showExpandedContent( TransGraph graph )
 * 
 * @param graph
 *          TransGraph to create the web browser for. If the wev browser hasn't been created this will create one.
 *          Else it will just bring the web browser associated to this TransGraph to the top.
 */
public static void showExpandedContent( TransGraph graph ) {
 if ( graph == null ) {
  return;
 }
 Browser browser = getExpandedContentForTransGraph( graph );
 if ( browser == null ) {
  return;
 }
 if ( !isVisible( graph ) ) {
  maximizeExpandedContent( browser );
 }
 if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
  graph.extraViewComposite.setVisible( false );
 }
 browser.moveAbove( null );
 browser.getParent().layout( true );
 browser.getParent().redraw();
}

代码示例来源:origin: pentaho/pentaho-kettle

FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wPath, 5 );
fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 );
wbBrowse.setLayoutData( fdBrowse );

代码示例来源:origin: pentaho/pentaho-kettle

FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wPath, 5 );
fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 );
wbBrowse.setLayoutData( fdBrowse );

代码示例来源:origin: pentaho/pentaho-kettle

FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wPath, 5 );
fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 );
wbBrowse.setLayoutData( fdBrowse );

代码示例来源:origin: pentaho/pentaho-kettle

FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wPath, 5 );
fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 );
wbBrowse.setLayoutData( fdBrowse );

代码示例来源:origin: pentaho/pentaho-kettle

int limit = 10;
final int SASH_LIMIT = Const.isOSX() ? 150 : limit;
final Sash sash = (Sash) comp;

代码示例来源:origin: pentaho/pentaho-kettle

int colmax = tablecolumn[colnr].getWidth();
if ( strmax > colmax ) {
 if ( Const.isOSX() || Const.isLinux() ) {
  strmax *= 1.4;

相关文章