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 Color orig = shell.getBackground();
fdLocal.left = new FormAttachment( 0 ); cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly cRunConfiguration.setLayoutData( fdLocal );
fdLocal.left = new FormAttachment( 0 ); cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly cRunConfiguration.setLayoutData( fdLocal );
gButtonGroup.setBackground( shell.getBackground() ); // the default looks ugly gButtonGroup.setLayoutData( fdButtonGroup );
protected void optionsSectionLayout( Class<?> PKG, String prefix ) { gDetails = new Group( shell, SWT.SHADOW_ETCHED_IN ); gDetails.setText( BaseMessages.getString( PKG, prefix + ".DetailsGroup.Label" ) ); props.setLook( gDetails ); // The layout gDetails.setLayout( new FormLayout() ); fdDetails = new FormData(); fdDetails.top = new FormAttachment( cRunConfiguration, 15 ); fdDetails.right = new FormAttachment( 100, -15 ); fdDetails.left = new FormAttachment( 0, 15 ); gDetails.setBackground( shell.getBackground() ); // the default looks ugly gDetails.setLayoutData( fdDetails ); optionsSectionControls(); }
fdTechGroup.bottom = new FormAttachment( wReplace, -margin ); fdTechGroup.right = new FormAttachment( 100, 0 ); gTechGroup.setBackground( shell.getBackground() ); // the default looks ugly gTechGroup.setLayoutData( fdTechGroup );
fdTechGroup.top = new FormAttachment( wTkRename, 2 * margin ); fdTechGroup.right = new FormAttachment( 100, 0 ); gTechGroup.setBackground( shell.getBackground() ); // the default looks ugly gTechGroup.setLayoutData( fdTechGroup );
public static TreeRoot create(Shell shell, int width, int height, TreeElement... elements) { Tree tree = new Tree(shell, SWT.NONE); tree.setBackground(shell.getBackground()); return new TreeRoot(tree, width, height, elements); }
@Override public void createControl(Composite parent) { book = new PageBook(parent, SWT.NONE); messageText = new Text(book, SWT.WRAP | SWT.READ_ONLY); messageText.setBackground(parent.getShell().getBackground()); messageText.setText(notAvailableMessage); getSite().setSelectionProvider(this); // Page might be set before the page is initialized initializeAndShowPage(casViewPage); }
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); text.setEditable(false); text.setBackground(shell.getBackground()); text.setText(message); int width = messageComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; problemsText.setMargins(30, 0, 30, 0); problemsText.setEditable(false); problemsText.setBackground(shell.getBackground()); for (int i = 0; i < problems.length; i++) { problemsText.append(problems[i] + '\n'); text.setBackground(shell.getBackground()); text.setText(Compatibility.getMessage("SWT_InvalidCert_Connect")); //$NON-NLS-1$
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); text.setEditable(false); text.setBackground(shell.getBackground()); text.setText(message); int width = messageComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; problemsText.setMargins(30, 0, 30, 0); problemsText.setEditable(false); problemsText.setBackground(shell.getBackground()); for (int i = 0; i < problems.length; i++) { problemsText.append(problems[i] + '\n'); text.setBackground(shell.getBackground()); text.setText(Compatibility.getMessage("SWT_InvalidCert_Connect")); //$NON-NLS-1$
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); text.setEditable(false); text.setBackground(shell.getBackground()); text.setText(message); int width = messageComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; problemsText.setMargins(30, 0, 30, 0); problemsText.setEditable(false); problemsText.setBackground(shell.getBackground()); for (int i = 0; i < problems.length; i++) { problemsText.append(problems[i] + '\n'); text.setBackground(shell.getBackground()); text.setText(Compatibility.getMessage("SWT_InvalidCert_Connect")); //$NON-NLS-1$
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); text.setEditable(false); text.setBackground(shell.getBackground()); text.setText(message); int width = messageComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; problemsText.setMargins(30, 0, 30, 0); problemsText.setEditable(false); problemsText.setBackground(shell.getBackground()); for (int i = 0; i < problems.length; i++) { problemsText.append(problems[i] + '\n'); text.setBackground(shell.getBackground()); text.setText(Compatibility.getMessage("SWT_InvalidCert_Connect")); //$NON-NLS-1$
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); text.setEditable(false); text.setBackground(shell.getBackground()); text.setText(message); int width = messageComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; problemsText.setMargins(30, 0, 30, 0); problemsText.setEditable(false); problemsText.setBackground(shell.getBackground()); for (int i = 0; i < problems.length; i++) { problemsText.append(problems[i] + '\n'); text.setBackground(shell.getBackground()); text.setText(Compatibility.getMessage("SWT_InvalidCert_Connect")); //$NON-NLS-1$
shell.open(); shellGC = new GC(shell); shellBackground = shell.getBackground();
gc.setBackground(window.getBackground()); gc.fillRectangle(image2.getBounds()); gc.dispose();