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(); } }
protected void ok() { if ( Const.isOSX() ) { // OSX bug workaround. // wArguments.applyOSXChanges(); } getInfoArguments(); dispose(); }
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; }
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(); }
} else { button.setLayoutData( new FormDataBuilder().top( anchorElement, footerTopPadding ).right( previousButton, Const.isOSX() ? 0 : -BaseDialog.LABEL_SPACING ).result() );
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 ); }
/** * 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(); } ); }
break; if ( Const.isOSX() ) { Shell parentShell = composite.getShell(); final List<TableView> tableViews = new ArrayList<TableView>();
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() );
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 ); } }
okButton.setText( "OK" ); FormData fd_okButton = new FormData(); if ( Const.isOSX() ) { fd_okButton.left = new FormAttachment( 0, 215 ); } else {
FormData fdBrowse = new FormData(); fdBrowse.left = new FormAttachment( wPath, 5 ); fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 ); wbBrowse.setLayoutData( fdBrowse );
/** * 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(); }
FormData fdBrowse = new FormData(); fdBrowse.left = new FormAttachment( wPath, 5 ); fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 ); wbBrowse.setLayoutData( fdBrowse );
FormData fdBrowse = new FormData(); fdBrowse.left = new FormAttachment( wPath, 5 ); fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 ); wbBrowse.setLayoutData( fdBrowse );
FormData fdBrowse = new FormData(); fdBrowse.left = new FormAttachment( wPath, 5 ); fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 ); wbBrowse.setLayoutData( fdBrowse );
FormData fdBrowse = new FormData(); fdBrowse.left = new FormAttachment( wPath, 5 ); fdBrowse.top = new FormAttachment( wlPath, Const.isOSX() ? 0 : 5 ); wbBrowse.setLayoutData( fdBrowse );
int limit = 10; final int SASH_LIMIT = Const.isOSX() ? 150 : limit; final Sash sash = (Sash) comp;
int colmax = tablecolumn[colnr].getWidth(); if ( strmax > colmax ) { if ( Const.isOSX() || Const.isLinux() ) { strmax *= 1.4;