private void setValues() { if ( runConfiguration == null ) { runConfiguration = executionConfigurationManager.getRunConfigurationByType( DefaultRunConfiguration.TYPE ); runConfigurationMap.put( DefaultRunConfiguration.TYPE, runConfiguration ); } clearOptions(); runConfiguration.getUI().attach( this ); gOptions.layout(); shell.pack(); wEngine.setText( StringUtils.capitalize( runConfiguration.getType() ) ); wName.setText( Const.NVL( runConfiguration.getName(), "" ) ); wDescription.setText( Const.NVL( runConfiguration.getDescription(), "" ) ); }
props.setLook( wMonetDBmclientParamGroup ); wMonetDBmclientParamGroup.setLayout( tabLayout ); wMonetDBmclientParamGroup.layout();
/** * Sets the size of the "Example" widgets. */ @Override void setExampleWidgetSize () { sashGroup.layout (true); }
void setVisible(boolean state) { if (state) fPart.layout(); fPart.setVisible(state); }
private void refreshPingPanel() { if (speedManager == null) { return; } if(speedManager.isAvailable()){// && speedManager.isEnabled()) { autoSpeedPanelLayout.topControl = autoSpeedInfoPanel; autoSpeedPanel.layout(); pingGraph.refresh(); for (int i=0;i<plot_views.length;i++){ plot_views[i].refresh(); } for (int i=0;i<zone_views.length;i++){ zone_views[i].refresh(false); } } else { autoSpeedPanelLayout.topControl = autoSpeedDisabledPanel; autoSpeedPanel.layout(); } }
layoutGroup.layout (true); })); preferredButton.setLayoutData (new GridData (SWT.FILL, SWT.CENTER, true, false, 2, 1));
group.layout(); main.layout();
setLayoutData (); layoutComposite.layout (true); layoutGroup.layout (true);
fLimitToGroup.layout();
fLimitToGroup.layout();
setLayoutData (); layoutComposite.layout (true); layoutGroup.layout (true);
setLayoutData (); layoutComposite.layout (true); layoutGroup.layout (true);
/** * Takes information from TableEditors and stores it. */ @Override void resetEditors (boolean tab) { TableItem oldItem = comboEditor.getItem (); comboEditor.setEditor (null, null, -1); if (oldItem != null) { int row = table.indexOf (oldItem); try { new String (nameText.getText ()); } catch (NumberFormatException e) { nameText.setText (oldItem.getText (NAME_COL)); } String [] insert = new String [] {nameText.getText (), combo.getText ()}; data.set (row, insert); for (int i = 0 ; i < TOTAL_COLS; i++) { oldItem.setText (i, data.get (row) [i]); } if (!tab) disposeEditors (); } setLayoutState (); refreshLayoutComposite (); setTopControl (currentLayer); layoutGroup.layout (true); }
/** * Takes information from TableEditors and stores it. */ @Override void resetEditors (boolean tab) { TableItem oldItem = comboEditor.getItem (); comboEditor.setEditor (null, null, -1); if (oldItem != null) { int row = table.indexOf (oldItem); try { new String (nameText.getText ()); } catch (NumberFormatException e) { nameText.setText (oldItem.getText (NAME_COL)); } String [] insert = new String [] {nameText.getText (), combo.getText ()}; data.set (row, insert); for (int i = 0 ; i < TOTAL_COLS; i++) { oldItem.setText (i, data.get (row) [i]); } if (!tab) disposeEditors (); } setLayoutState (); refreshLayoutComposite (); layoutComposite.layout (true); layoutGroup.layout (true); }
private void deactivate( boolean closing ) { if ( !closing ){ if ( listener != null ){ CoreFactory.getSingleton().removeLifecycleListener( listener ); listener = null; } if ( !composite.isDisposed()){ Messages.setLanguageText( activate, "label.activate" ); activate.setSelection( false ); tempULLimit.setEnabled( true ); tempDLLimit.setEnabled( true ); remLabel.setText( "" ); temp_rates.layout( true ); } } if ( event != null ){ event.cancel(); event = null; } } });
@Override public void runSupport() { fileName.setText(_fileName); fileSize.setText(_fileSize); torrentStatus.setText(_torrentStatus); int pos = _torrentStatus.indexOf( "http://" ); if ( pos > 0 ){ torrentStatus.setLink( UrlUtils.getURL( _torrentStatus )); }else{ torrentStatus.setLink( null ); } torrentStatus.setForeground(_statusIsError?Colors.red:null); saveIn.setText(_path); hash.setText(_hash); pieceNumber.setText(_pieceData); //$NON-NLS-1$ pieceSize.setText(_pieceLength); creation_date.setText(_creation_date); privateStatus.setText(isPrivate); boolean do_relayout = false; do_relayout = setCommentAndFormatLinks(lblComment, _comment.length() > 5000 && Constants.isWindowsXP ? _comment.substring(0, 5000) : _comment ) | do_relayout; do_relayout = setCommentAndFormatLinks(user_comment, _user_comment) | do_relayout; if (do_relayout) { gInfo.layout(); Utils.updateScrolledComposite(scrolled_comp); } } });
next.setFont(newFont); newFont.dispose(); group.layout(); update();
next.setFont(newFont); newFont.dispose(); group.layout(); update();
coolBar.addListener(SWT.Resize, event -> exampleGroup.layout());