Example usage for org.eclipse.jface.dialogs Dialog applyDialogFont

List of usage examples for org.eclipse.jface.dialogs Dialog applyDialogFont

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs Dialog applyDialogFont.

Prototype

public static void applyDialogFont(Control control) 

Source Link

Document

Applies the dialog font to all controls that currently have the default font.

Usage

From source file:com.binge.workforce.widgets.internal.ContainerSelectionGroup.java

License:Open Source License

/**
 * Creates the contents of the composite.
 * //w  ww. j  a va  2s  .  c o  m
 * @param message
 * @param heightHint
 * @param widthHint
 */
public void createContents(String message, int heightHint, int widthHint) {
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    setLayout(layout);
    setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    Label label = new Label(this, SWT.WRAP);
    label.setText(message);
    label.setFont(this.getFont());

    if (allowNewContainerName) {
        containerNameField = new Text(this, SWT.SINGLE | SWT.BORDER);
        GridData gd = new GridData(GridData.FILL_HORIZONTAL);
        gd.widthHint = widthHint;
        containerNameField.setLayoutData(gd);
        containerNameField.addListener(SWT.Modify, listener);
        containerNameField.setFont(this.getFont());
    } else {
        // filler...
        new Label(this, SWT.NONE);
    }

    createTreeViewer(heightHint);
    Dialog.applyDialogFont(this);
}

From source file:com.bluexml.side.application.ui.newsideproject.newSideProject.WizardModelOptionsPage.java

License:Open Source License

public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NULL);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));

    // Show description on opening
    setErrorMessage(null);//w w w. j ava 2  s . c o  m
    setMessage(null);
    setControl(composite);
    Dialog.applyDialogFont(composite);

    final Label chooseInitialModelLabel = new Label(composite, SWT.NONE);
    chooseInitialModelLabel.setLayoutData(new GridData(204, SWT.DEFAULT));
    chooseInitialModelLabel.setToolTipText(Activator.Messages.getString("WizardModelOptionsPage.0")); //$NON-NLS-1$
    chooseInitialModelLabel.setText(Activator.Messages.getString("WizardModelOptionsPage.1")); //$NON-NLS-1$

    final Button dataModelButton = new Button(composite, SWT.CHECK);
    dataModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createDataModel = dataModelButton.getSelection();
        }
    });
    dataModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.2")); //$NON-NLS-1$

    final Button formModelButton = new Button(composite, SWT.CHECK);
    formModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createFormModel = formModelButton.getSelection();
        }
    });
    formModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.3")); //$NON-NLS-1$

    final Button workflowModelButton = new Button(composite, SWT.CHECK);
    workflowModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createWorkflowModel = workflowModelButton.getSelection();
        }
    });
    workflowModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.4")); //$NON-NLS-1$

    final Button portalModelButton = new Button(composite, SWT.CHECK);
    portalModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createPortalModel = portalModelButton.getSelection();
        }
    });
    portalModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.5")); //$NON-NLS-1$

    final Button viewModelButton = new Button(composite, SWT.CHECK);
    viewModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createViewModel = viewModelButton.getSelection();
        }
    });
    viewModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.6")); //$NON-NLS-1$

    final Button requirementModelButton = new Button(composite, SWT.CHECK);
    requirementModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createRequirementModel = requirementModelButton.getSelection();
        }
    });
    requirementModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.7")); //$NON-NLS-1$

    final Label modelNameLabel = new Label(composite, SWT.NONE);
    modelNameLabel.setText(Activator.Messages.getString("WizardModelOptionsPage.10")); //$NON-NLS-1$

    modelNameText = new Text(composite, SWT.BORDER);
    final GridData gd_modelNameText = new GridData(SWT.FILL, SWT.CENTER, true, false);
    modelNameText.setLayoutData(gd_modelNameText);
    modelNameText.addFocusListener(new FocusAdapter() {
        public void focusLost(final FocusEvent e) {
            modelName = getModelNameValue();
        }
    });

    modelNameText.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validatePage();
        }
    });
    modelNameText.setText(DEFAULT_MODEL_NAME);

    final Label forClassModelLabel = new Label(composite, SWT.NONE);
    forClassModelLabel.setText(Activator.Messages.getString("WizardModelOptionsPage.8")); //$NON-NLS-1$

    pathText = new Text(composite, SWT.BORDER);
    pathText.addFocusListener(new FocusAdapter() {
        public void focusLost(final FocusEvent e) {
            stringPath = getPackagePathValue();
        }
    });

    pathText.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validatePage();
        }
    });
    pathText.setTextLimit(300);

    final GridData gd_pathText = new GridData(SWT.FILL, SWT.CENTER, true, false);
    gd_pathText.widthHint = 248;
    pathText.setLayoutData(gd_pathText);

    setPageComplete(validatePage());
}

From source file:com.bluexml.side.Integration.eclipse.branding.enterprise.wizard.WizardModelOptionsPage.java

License:Open Source License

public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NULL);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));

    // Show description on opening
    setErrorMessage(null);// w ww  . j a v a2s .  co m
    setMessage(null);
    setControl(composite);
    Dialog.applyDialogFont(composite);

    final Label chooseInitialModelLabel = new Label(composite, SWT.NONE);
    chooseInitialModelLabel.setLayoutData(new GridData(204, SWT.DEFAULT));
    chooseInitialModelLabel.setToolTipText(Activator.Messages.getString("WizardModelOptionsPage.0")); //$NON-NLS-1$
    chooseInitialModelLabel.setText(Activator.Messages.getString("WizardModelOptionsPage.1")); //$NON-NLS-1$

    final Button dataModelButton = new Button(composite, SWT.CHECK);
    dataModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createDataModel = dataModelButton.getSelection();
        }
    });
    dataModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.2")); //$NON-NLS-1$

    final Button formModelButton = new Button(composite, SWT.CHECK);
    formModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createFormModel = formModelButton.getSelection();
        }
    });
    formModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.3")); //$NON-NLS-1$

    final Button workflowModelButton = new Button(composite, SWT.CHECK);
    workflowModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createWorkflowModel = workflowModelButton.getSelection();
        }
    });
    workflowModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.4")); //$NON-NLS-1$

    final Button portalModelButton = new Button(composite, SWT.CHECK);
    portalModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createPortalModel = portalModelButton.getSelection();
        }
    });
    portalModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.5")); //$NON-NLS-1$

    final Button viewModelButton = new Button(composite, SWT.CHECK);
    viewModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createViewModel = viewModelButton.getSelection();
        }
    });
    viewModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.6")); //$NON-NLS-1$

    final Button requirementModelButton = new Button(composite, SWT.CHECK);
    requirementModelButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(final SelectionEvent e) {
            createRequirementModel = requirementModelButton.getSelection();
        }
    });
    requirementModelButton.setText(Activator.Messages.getString("WizardModelOptionsPage.7")); //$NON-NLS-1$

    final Label modelNameLabel = new Label(composite, SWT.NONE);
    modelNameLabel.setText(Activator.Messages.getString("WizardModelOptionsPage.10")); //$NON-NLS-1$

    modelNameText = new Text(composite, SWT.BORDER);
    final GridData gd_modelNameText = new GridData(SWT.FILL, SWT.CENTER, true, false);
    modelNameText.setLayoutData(gd_modelNameText);
    modelNameText.addFocusListener(new FocusAdapter() {
        public void focusLost(final FocusEvent e) {
            modelName = getModelNameValue();
        }
    });

    modelNameText.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validatePage();
        }
    });
    modelNameText.setText(Wizard.DEFAULT_MODEL_NAME);

    final Label forClassModelLabel = new Label(composite, SWT.NONE);
    forClassModelLabel.setText(Activator.Messages.getString("WizardModelOptionsPage.8")); //$NON-NLS-1$

    pathText = new Text(composite, SWT.BORDER);
    pathText.addFocusListener(new FocusAdapter() {
        public void focusLost(final FocusEvent e) {
            stringPath = getPackagePathValue();
        }
    });

    pathText.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validatePage();
        }
    });
    pathText.setTextLimit(300);

    final GridData gd_pathText = new GridData(SWT.FILL, SWT.CENTER, true, false);
    gd_pathText.widthHint = 248;
    pathText.setLayoutData(gd_pathText);

    setPageComplete(validatePage());
}

From source file:com.boothen.jsonedit.quickoutline.QuickOutlinePopup.java

License:Open Source License

private Text createFilterText(Composite parent) {
    Text text = new Text(parent, SWT.NONE);
    Dialog.applyDialogFont(text);

    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    data.verticalIndent = 2;//from   ww  w . j  a  v a 2s.  c  o  m
    data.horizontalAlignment = GridData.FILL;
    data.verticalAlignment = GridData.CENTER;
    text.setLayoutData(data);

    applyInfoColor(text);

    text.addKeyListener(new KeyAdapter() {
        @Override
        public void keyPressed(KeyEvent e) {
            if (e.keyCode == SWT.CR || e.keyCode == SWT.KEYPAD_CR) // Enter keys
                gotoSelectedElement();
            if (e.keyCode == SWT.ARROW_DOWN)
                treeViewer.getTree().setFocus();
            if (e.keyCode == SWT.ARROW_UP)
                treeViewer.getTree().setFocus();
            if (e.character == SWT.ESC) // ESC
                hide();
        }
    });

    return text;
}

From source file:com.cisco.yangide.editor.preferences.AbstractConfigurationBlockPreferencePage.java

License:Open Source License

@Override
protected Control createContents(Composite parent) {

    fOverlayStore.load();//from w w  w .  ja  v  a2 s.  com
    fOverlayStore.start();

    Control content = fConfigurationBlock.createControl(parent);

    initialize();

    Dialog.applyDialogFont(content);
    return content;
}

From source file:com.cisco.yangide.ext.model.editor.preferences.ModelEditorPreferencePage.java

License:Open Source License

@Override
protected Control createContents(Composite parent) {
    Composite pageArea = new Composite(parent, SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(3).spacing(LayoutConstants.getSpacing().x, 3).applyTo(pageArea);

    Label label = new Label(pageArea, SWT.NONE);
    label.setText("Diagram Editor Font: ");
    GridDataFactory.swtDefaults().align(SWT.BEGINNING, SWT.TOP).span(1, 3).applyTo(label);

    preview = new Label(pageArea, SWT.BORDER | SWT.SHADOW_NONE);
    GridDataFactory.fillDefaults().grab(true, false).span(1, 2).applyTo(preview);

    Button editBtn = new Button(pageArea, SWT.PUSH);
    GridDataFactory.fillDefaults().hint(100, SWT.DEFAULT).applyTo(editBtn);
    editBtn.setText("Edit...");
    editBtn.addSelectionListener(new SelectionAdapter() {
        @Override// w  w  w  .  java  2  s. c  om
        public void widgetSelected(SelectionEvent e) {
            FontDialog dialog = new FontDialog(getShell());
            dialog.setFontList(fontData);
            FontData fd = dialog.open();
            if (fd != null) {
                fontData = new FontData[] { fd };
                update();
            }
        }
    });
    Button systemBtn = new Button(pageArea, SWT.PUSH);
    GridDataFactory.fillDefaults().hint(100, SWT.DEFAULT).applyTo(systemBtn);
    systemBtn.setText("Use System Font");
    systemBtn.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            fontData = JFaceResources.getDefaultFont().getFontData();
            update();
        }
    });

    Composite note = createNoteComposite(JFaceResources.getDialogFont(), pageArea, "Note: ",
            "Changing the font does not update open editors.");
    GridDataFactory.fillDefaults().grab(true, false).span(2, 1).applyTo(note);

    Dialog.applyDialogFont(pageArea);
    load();
    return pageArea;
}

From source file:com.cisco.yangide.ext.refactoring.ui.ChangeRevisionInputWizardPage.java

License:Open Source License

@Override
public void createControl(Composite parent) {
    Composite content = new Composite(parent, SWT.NONE);
    GridLayoutFactory.swtDefaults().numColumns(3).spacing(0, 5).applyTo(content);

    new Label(content, SWT.NONE).setText(Messages.ChangeRevisionInputWizardPage_revisionLabel);
    revisionTxt = new Text(content, SWT.BORDER);
    revisionTxt.setEditable(false);/*from  w  ww . j a  va2s.c o  m*/
    Button revisionBtn = new Button(content, SWT.FLAT | SWT.PUSH);
    GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.TOP).hint(24, 24).applyTo(revisionBtn);
    revisionBtn.setImage(RefactoringImages.getImage(RefactoringImages.IMG_CALENDAR));
    revisionBtn.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            RevisionDialog dialog = new RevisionDialog(getShell());
            try {
                dialog.setRevision(revisionTxt.getText());
            } catch (ParseException ex) {
                setErrorMessage(ex.getMessage());
                setPageComplete(false);
            }
            if (dialog.open() == Window.OK) {
                revisionTxt.setText(dialog.getRevision());
                setState();
            }
        }
    });

    new Label(content, SWT.NONE).setText(Messages.ChangeRevisionInputWizardPage_descriptionLabel);
    descriptionTxt = new Text(content, SWT.BORDER | SWT.MULTI);
    GridDataFactory.fillDefaults().span(4, 1).align(SWT.FILL, SWT.TOP).grab(true, false).hint(SWT.DEFAULT, 50)
            .applyTo(descriptionTxt);

    descriptionTxt.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            setState();
        }
    });

    newFileCheck = new Button(content, SWT.CHECK);
    GridDataFactory.fillDefaults().span(3, 1).align(SWT.FILL, SWT.TOP).applyTo(newFileCheck);
    newFileCheck.setText(Messages.ChangeRevisionInputWizardPage_newFileCheckLabel);
    newFileCheck.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            setState();
        }
    });

    Label tableLabel = new Label(content, SWT.NONE);
    tableLabel.setText(Messages.ChangeRevisionInputWizardPage_refGroupLabel);
    GridDataFactory.fillDefaults().span(3, 1).align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(tableLabel);

    Composite group = new Composite(content, SWT.NONE);
    GridLayoutFactory.swtDefaults().margins(0, 0).numColumns(2).applyTo(group);
    GridDataFactory.fillDefaults().span(3, 1).grab(true, true).align(SWT.FILL, SWT.TOP).applyTo(group);

    table = new TableViewer(group, SWT.CHECK | SWT.BORDER);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, true).hint(SWT.DEFAULT, 200)
            .applyTo(table.getControl());
    table.setContentProvider(ArrayContentProvider.getInstance());
    table.getTable().setHeaderVisible(true);
    table.getTable().setLinesVisible(true);

    TableViewerColumn viewerColumn = new TableViewerColumn(table, SWT.NONE);
    TableColumn column = viewerColumn.getColumn();
    column.setText(Messages.ChangeRevisionInputWizardPage_refTableName);
    column.setWidth(250);
    column.setResizable(true);
    viewerColumn.setLabelProvider(new ColumnLabelProvider() {
        @Override
        public Image getImage(Object element) {
            return YangUIImages.getImage(IYangUIConstants.IMG_YANG_FILE);
        }

        @Override
        public String getText(Object element) {
            IFile file = (IFile) element;
            return file.getName();
        }
    });

    viewerColumn = new TableViewerColumn(table, SWT.NONE);
    column = viewerColumn.getColumn();
    column.setText(Messages.ChangeRevisionInputWizardPage_refTablePath);
    column.setWidth(300);
    column.setResizable(true);
    viewerColumn.setLabelProvider(new ColumnLabelProvider() {
        @Override
        public String getText(Object element) {
            IFile file = (IFile) element;
            return file.getProjectRelativePath().toString();
        }
    });

    viewerColumn = new TableViewerColumn(table, SWT.NONE);
    column = viewerColumn.getColumn();
    column.setText(Messages.ChangeRevisionInputWizardPage_refTableProject);
    column.setWidth(200);
    column.setResizable(true);
    viewerColumn.setLabelProvider(new ColumnLabelProvider() {
        @Override
        public String getText(Object element) {
            IFile file = (IFile) element;
            return file.getProject().getName();
        }
    });

    Composite controls = new Composite(group, SWT.NONE);
    GridLayoutFactory.swtDefaults().margins(0, 0).applyTo(controls);
    GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.TOP).applyTo(controls);

    Button tableSelectAllBtn = new Button(controls, SWT.PUSH);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).applyTo(tableSelectAllBtn);
    tableSelectAllBtn.setText(Messages.ChangeRevisionInputWizardPage_refTableSellectAllBtn);
    tableSelectAllBtn.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            for (int i = 0; i < table.getTable().getItemCount(); i++) {
                table.getTable().getItem(i).setChecked(true);
            }
            setState();
        }
    });

    Button tableDeselectAllBtn = new Button(controls, SWT.PUSH);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).applyTo(tableDeselectAllBtn);
    tableDeselectAllBtn.setText(Messages.ChangeRevisionInputWizardPage_refTableDeselectAllBtn);
    tableDeselectAllBtn.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            for (int i = 0; i < table.getTable().getItemCount(); i++) {
                table.getTable().getItem(i).setChecked(false);
            }
            setState();
        }
    });
    table.getTable().addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            setState();
        }
    });

    Dialog.applyDialogFont(content);
    setControl(content);
}

From source file:com.cisco.yangide.ext.refactoring.ui.ExtractGroupingInputWizardPage.java

License:Open Source License

@Override
public void createControl(Composite parent) {
    Composite content = new Composite(parent, SWT.NONE);
    GridLayoutFactory.swtDefaults().numColumns(2).spacing(0, 5).applyTo(content);

    new Label(content, SWT.NONE).setText(Messages.ExtractGroupingInputWizardPage_groupingNameLabel);
    groupNameTxt = new Text(content, SWT.BORDER);
    groupNameTxt.addModifyListener(new ModifyListener() {
        @Override/*from   w ww. j  a  v a  2  s . c  o m*/
        public void modifyText(ModifyEvent e) {
            setState();
        }
    });
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(groupNameTxt);

    Dialog.applyDialogFont(content);
    setControl(content);
}

From source file:com.cisco.yangide.ext.refactoring.ui.InlineGroupingInputWizardPage.java

License:Open Source License

@Override
public void createControl(Composite parent) {
    Composite content = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    layout.verticalSpacing = 5;/*from   ww  w.ja va  2s .  c o  m*/
    content.setLayout(layout);

    String name = node instanceof UsesNode ? ((UsesNode) node).getGrouping().getName() : node.getName();
    new Label(content, SWT.NONE).setText(NLS.bind("Inline grouping {0}:", name));

    allInlineSel = new Button(content, SWT.RADIO);
    allInlineSel.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    allInlineSel.setText("&All references");
    allInlineSel.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            setState();
        }
    });

    deleteGroupCheck = new Button(content, SWT.CHECK);
    GridData gd = new GridData(SWT.FILL, SWT.TOP, true, false);
    gd.horizontalIndent = 15;
    deleteGroupCheck.setLayoutData(gd);
    deleteGroupCheck.setText("&Delete grouping declaration");
    deleteGroupCheck.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            setState();
        }

    });

    singleInlineSel = new Button(content, SWT.RADIO);
    singleInlineSel.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    singleInlineSel.setText("&Only the selected reference");
    singleInlineSel.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            setState();
        }
    });

    Dialog.applyDialogFont(content);
    setControl(content);
}

From source file:com.cisco.yangide.ext.refactoring.ui.RenameInputWizardPage.java

License:Open Source License

@Override
public void createControl(Composite parent) {
    Composite content = new Composite(parent, SWT.NONE);
    content.setLayout(new GridLayout(2, false));

    new Label(content, SWT.NONE).setText("New name:");

    newNameTxt = new Text(content, SWT.BORDER);
    newNameTxt.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    newNameTxt.addModifyListener(new ModifyListener() {
        @Override//from w ww.j a  v  a  2 s .  c o  m
        public void modifyText(ModifyEvent e) {
            textModified();
        }
    });
    newNameTxt.setText(initialValue);
    newNameTxt.selectAll();

    new Label(content, SWT.NONE).setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false, 2, 1));

    // updateReferences = new Button(content, SWT.CHECK);
    // updateReferences.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, false, 2, 1));
    // updateReferences.setText("Update references");
    // updateReferences.setSelection(true);

    // final YangRenameProcessor processor = (YangRenameProcessor) ((RenameRefactoring)
    // getRefactoring())
    // .getProcessor();

    // processor.setUpdateReferences(updateReferences.getSelection());
    // updateReferences.addSelectionListener(new SelectionAdapter() {
    // @Override
    // public void widgetSelected(SelectionEvent e) {
    // processor.setUpdateReferences(updateReferences.getSelection());
    // }
    // });

    Dialog.applyDialogFont(content);
    setControl(content);
}