protected void runConfigurationSectionLayout( Class<?> PKG, String prefix ) { cRunConfiguration = new Composite( shell, SWT.NONE ); cRunConfiguration.setLayout( new FormLayout() ); props.setLook( cRunConfiguration ); FormData fdLocal = new FormData(); fdLocal.top = new FormAttachment( 0, 15 ); fdLocal.right = new FormAttachment( 100, -15 ); fdLocal.left = new FormAttachment( 0, 15 ); cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly cRunConfiguration.setLayoutData( fdLocal ); Label wlRunConfiguration = new Label( cRunConfiguration, SWT.LEFT ); props.setLook( wlRunConfiguration ); wlRunConfiguration.setText( "Run configuration:" ); FormData fdlRunConfiguration = new FormData(); fdlRunConfiguration.top = new FormAttachment( 0 ); fdlRunConfiguration.left = new FormAttachment( 0 ); wlRunConfiguration.setLayoutData( fdlRunConfiguration ); wRunConfiguration = new CCombo( cRunConfiguration, SWT.BORDER ); props.setLook( wRunConfiguration ); FormData fdRunConfiguration = new FormData(); fdRunConfiguration.width = 200; fdRunConfiguration.top = new FormAttachment( wlRunConfiguration, 5 ); fdRunConfiguration.left = new FormAttachment( 0 ); wRunConfiguration.setLayoutData( fdRunConfiguration ); }
final Composite composite = new Composite( wTree, SWT.NONE ); if ( !isCarbon ) { composite.setBackground( shell.getDisplay().getSystemColor( SWT.COLOR_BLACK ) );
final Composite composite = new Composite( wTree, SWT.NONE ); if ( !isCarbon ) { composite.setBackground( shell.getDisplay().getSystemColor( SWT.COLOR_BLACK ) );
final Composite composite = new Composite( wTree, SWT.NONE ); if ( !isCarbon ) { composite.setBackground( shell.getDisplay().getSystemColor( SWT.COLOR_BLACK ) );
fdLocal.left = new FormAttachment( 0 ); cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly cRunConfiguration.setLayoutData( fdLocal );
composite.setLayout( compLayout ); composite.setBackground( display.getSystemColor( SWT.COLOR_INFO_BACKGROUND ) );
fdLocal.left = new FormAttachment( 0 ); cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly cRunConfiguration.setLayoutData( fdLocal );
perfComposite.setBackground( GUIResource.getInstance().getColorBackground() ); perfComposite.setLayout( new FormLayout() );
gButtonGroup.setBackground( shell.getBackground() ); // the default looks ugly gButtonGroup.setLayoutData( fdButtonGroup );
private void addViewTab( CTabFolder tabFolder ) { Composite viewComposite = new Composite( tabFolder, SWT.NONE ); viewComposite.setLayout( new FormLayout() ); viewComposite.setBackground( GUIResource.getInstance().getColorDemoGray() );
private void addDesignTab( CTabFolder tabFolder ) { Composite designComposite = new Composite( tabFolder, SWT.NONE ); designComposite.setLayout( new FormLayout() ); designComposite.setBackground( GUIResource.getInstance().getColorDemoGray() );
metricsComposite.setBackground( GUIResource.getInstance().getColorBackground() ); metricsComposite.setLayout( new FormLayout() );
metricsComposite.setBackground( GUIResource.getInstance().getColorBackground() ); metricsComposite.setLayout( new FormLayout() );
private Composite createCompositeSeparator(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setBackground(fSeparatorColor); return composite; }
private Composite createCompositeSeparator(Composite parent) { Composite composite = new Composite(parent, SWT.NO_FOCUS); composite.setBackground(fSeparatorColor); return composite; }
@Override public void setBackground (Color color) { super.setBackground(color); background = color; for (int i = 0; i < sashes.length; i++) { sashes[i].setBackground(background); } } @Override
/** * Sets the background for this PagingControl. * the background color is also set for the labels */ public void setBackground(Color color) { super.setBackground(color); info.setBackground(color); pageSizeL.setBackground(color); } }
@Override public void propertyChange(PropertyChangeEvent event) { if (ACTIVE_TAB_BG_END.equals(event.getProperty())) { if (fComposite.isFocusControl()) { fComposite.setBackground(JFaceResources.getColorRegistry().get(ACTIVE_TAB_BG_END)); } } } };
@Override public void setBackground(Color color) { if (null != label && !label.isDisposed()) { label.setBackground(color); } if (null != content && !content.isDisposed()) { content.setBackground(color); } super.setBackground(color); }
@Override public void setBackground(Color backgroundColor) { super.setBackground(backgroundColor); dateText.setBackground(backgroundColor); if ((getStyle() & SWT.FLAT) != 0) { pickButton.setBackground(backgroundColor); clearControl.setBackground(backgroundColor); } else { pickButton.setBackground(null); clearControl.setBackground(null); } }