@Override protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control includeMask= createIncludeMask(composite); includeMask.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); return composite; }
@Override protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control includeMask= createIncludeMask(composite); includeMask.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); return composite; }
protected Control createDialogArea(Composite parent) { Composite outer = (Composite) super.createDialogArea(parent); Text text = new Text(outer, SWT.MULTI | SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.NO_FOCUS | SWT.H_SCROLL); text.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL); gridData.grabExcessVerticalSpace = true; gridData.grabExcessHorizontalSpace = true; text.setLayoutData(gridData); text.setText(getLogSummary()); return outer; }
protected Control createDialogArea(Composite parent) { Composite outer = (Composite) super.createDialogArea(parent); Text text = new Text(outer, SWT.MULTI | SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.NO_FOCUS | SWT.H_SCROLL); text.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL); gridData.grabExcessVerticalSpace = true; gridData.grabExcessHorizontalSpace = true; text.setLayoutData(gridData); text.setText(getLogSummary()); return outer; }
@Override protected Control createDialogArea(Composite parent2) { Composite parent= (Composite) super.createDialogArea(parent2); Control c= fCompareEditorInput.createContents(parent); c.setLayoutData(new GridData(GridData.FILL_BOTH)); statusLabel = new Label(parent, SWT.NONE); statusLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Shell shell= c.getShell(); shell.setText(fCompareEditorInput.getTitle()); shell.setImage(fCompareEditorInput.getTitleImage()); applyDialogFont(parent); return parent; }
/** * Creates the layout of the extended dialog window. * @param parent The parent composite * @return The created control */ protected Control createDialogArea(Composite parent) { Composite result= (Composite) super.createDialogArea(parent); fContents= createPageArea(result); fContents.setLayoutData(new GridData(GridData.FILL_BOTH)); if (fUseEmbeddedProgressMonitorPart) { // Insert a progress monitor fProgressMonitorPart= new ProgressMonitorPart(result, new GridLayout(), SWT.DEFAULT); fProgressMonitorPart.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fProgressMonitorPart.setVisible(false); applyDialogFont(fProgressMonitorPart); } Label separator= new Label(result, SWT.SEPARATOR | SWT.HORIZONTAL); separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); return result; }
/** * Creates the layout of the extended dialog window. * @param parent The parent composite * @return The created control */ @Override protected Control createDialogArea(Composite parent) { Composite result= (Composite) super.createDialogArea(parent); fContents= createPageArea(result); fContents.setLayoutData(new GridData(GridData.FILL_BOTH)); if (fUseEmbeddedProgressMonitorPart) { // Insert a progress monitor fProgressMonitorPart= new ProgressMonitorPart(result, new GridLayout(), SWT.DEFAULT); fProgressMonitorPart.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fProgressMonitorPart.setVisible(false); applyDialogFont(fProgressMonitorPart); } Label separator= new Label(result, SWT.SEPARATOR | SWT.HORIZONTAL); separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); return result; }
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); Label label = new Label(composite, SWT.WRAP); label.setText(VariablesViewMessages.DetailPaneMaxLengthDialog_1); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH); label.setLayoutData(data); label.setFont(parent.getFont()); fTextWidget = new Text(composite, SWT.SINGLE | SWT.BORDER); fTextWidget.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); fTextWidget.setText(fValue); fTextWidget.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent e) { validateInput(); fValue = fTextWidget.getText(); } }); fErrorTextWidget = new Text(composite, SWT.READ_ONLY); fErrorTextWidget.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); fErrorTextWidget.setBackground(fErrorTextWidget.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); setErrorMessage(fErrorMessage); applyDialogFont(composite); return composite; }
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); getShell().setText(MessageFormat.format(LaunchConfigurationsMessages.FavoritesDialog_1, new Object[] { getModeLabel() })); createFavoritesArea(composite); handleFavoriteSelectionChanged(); return composite; }
protected Control createDialogArea(Composite parent) { Composite container = (Composite)super.createDialogArea(parent); createEventTypesGroup(container); createLimitSection(container); createSessionSection(container); Dialog.applyDialogFont(container); return container; }
@Override protected Control createDialogArea(Composite parent2) { Composite parent = (Composite) super.createDialogArea(parent2); input.createPartControl(parent); Shell shell = getShell(); shell.setText(input.getTitle()); shell.setImage(input.getTitleImage()); Dialog.applyDialogFont(parent2); return parent; }
protected Control createDialogArea(Composite parent2) { Composite parent = (Composite) super.createDialogArea(parent2); input.createPartControl(parent); Shell shell = getShell(); shell.setText(input.getTitle()); shell.setImage(input.getTitleImage()); Dialog.applyDialogFont(parent2); return parent; }
protected Control createDialogArea(Composite parent2) { Composite parent= (Composite) super.createDialogArea(parent2); Control c= fCompareEditorInput.createContents(parent); c.setLayoutData(new GridData(GridData.FILL_BOTH)); IPreferenceStore store= fCompareEditorInput.getCompareConfiguration().getPreferenceStore(); if (store != null) { if (store.getBoolean(ComparePreferencePage.SHOW_MORE_INFO)) { statusLabel = new Label(parent, SWT.NONE); statusLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); } } Shell shell= c.getShell(); shell.setText(fCompareEditorInput.getTitle()); shell.setImage(fCompareEditorInput.getTitleImage()); applyDialogFont(parent); return parent; }
@Override protected Control createDialogArea(Composite parent) { Composite container = (Composite) super.createDialogArea(parent); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = layout.marginHeight = 9; container.setLayout(layout); GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 300; gd.heightHint = 300; container.setLayoutData(gd); fLoopViewer = new TreeViewer(container); fLoopViewer.setContentProvider(new ContentProvider()); fLoopViewer.setLabelProvider(new LoopLabelProvider()); Tree tree = fLoopViewer.getTree(); gd = new GridData(GridData.FILL_BOTH); tree.setLayoutData(gd); fLoopViewer.setInput(PDEPlugin.getDefault()); fLoopViewer.expandAll(); getShell().setText(PDEUIMessages.LoopDialog_title); return container; }
@Override protected Control createDialogArea(Composite parent) { Composite container = (Composite) super.createDialogArea(parent); GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 400; gd.heightHint = 300; container.setLayoutData(gd); Label label = new Label(container, SWT.NONE); label.setText(PDEUIMessages.PluginStatusDialog_label); treeViewer = new TreeViewer(container); treeViewer.setContentProvider(new ContentProvider()); treeViewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); treeViewer.setComparator(new ViewerComparator()); treeViewer.setInput(fInput); treeViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); getShell().setText(PDEUIMessages.PluginStatusDialog_pluginValidation); Dialog.applyDialogFont(container); return container; }
protected Control createDialogArea(Composite parent) { Composite container = (Composite) super.createDialogArea(parent); createEventTypesGroup(container); createLimitSection(container); createSessionSection(container); createFilterSection(container); Dialog.applyDialogFont(container); return container; }
/** * Creates and populates the dialog area */ protected Control createDialogArea(Composite parent) { IWorkbench workbench = PlatformUI.getWorkbench(); workbench.getHelpSystem().setHelp( parent, IJavaDebugHelpContextIds.EXPRESSION_INPUT_DIALOG); Composite composite= (Composite) super.createDialogArea(parent); // Create the composite which will hold the input widgetry createInputArea(composite); // Create the error reporting text area createErrorText(composite); // Create the source viewer after creating the error text so that any // necessary error messages can be set. populateInputArea(); return composite; }
@Override protected Control createDialogArea(Composite parent) { Composite comp = (Composite) super.createDialogArea(parent); SWTFactory.createWrapLabel(comp, DebugUIMessages.MonitorMemoryBlockDialog_EnterExpressionToMonitor, 1, LABEL_WIDTH); expressionInput = SWTFactory.createCombo(comp, SWT.BORDER, 1, MemoryViewUtil.getHistory()); if (fPrefillExp != null) { expressionInput.setText(fPrefillExp); } expressionInput.addModifyListener(this); if (needLength) { SWTFactory.createLabel(comp, DebugUIMessages.MonitorMemoryBlockDialog_NumberOfBytes, 1); lengthInput = SWTFactory.createSingleText(comp, 1); if (fPrefillLength != null) { lengthInput.setText(fPrefillLength); } lengthInput.addModifyListener(this); } PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IDebugUIConstants.PLUGIN_ID + ".MonitorMemoryBlockDialog_context"); //$NON-NLS-1$ return comp; }
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); folder = new CTabFolder(composite, SWT.NONE); configureFolder(); createFolderItems(folder); GridData folderData = new GridData(SWT.FILL, SWT.FILL, true, true); folderData.widthHint = convertHorizontalDLUsToPixels(TAB_WIDTH_IN_DLUS); folderData.heightHint = convertVerticalDLUsToPixels(TAB_HEIGHT_IN_DLUS); folder.setLayoutData(folderData); folder.addSelectionListener(createFolderSelectionListener()); folder.addDisposeListener(e -> releaseContributions()); return composite; }
@Override protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); createMarkerLimitArea(composite); createTypesArea(composite); createResourceArea(composite); createAttributesArea(composite); createResetArea(composite); createSeparatorLine(composite); updateUIFromFilter(getFilter()); return composite; }