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.apicloud.navigator.ui.pages.NewUZProjectWizardPage.java

License:Open Source License

@Override
public void createControl(Composite parent) {
    composite = new Composite(parent, SWT.NULL);
    initializeDialogUnits(parent);/*from   w w  w .jav  a 2s .com*/
    PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.NEW_PROJECT_WIZARD_PAGE);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));

    createProjectNameGroup(composite);

    GridLayout layoutDes = new GridLayout();
    layoutDes.verticalSpacing = 0;

    list = new ArrayList<String>();
    GridLayout gdCategory2 = new GridLayout();
    gdCategory2.numColumns = 2;
    gdCategory2.verticalSpacing = 0;

    setPageComplete(validatePage());
    // Show description on opening
    setErrorMessage(null);
    setMessage(null);
    setControl(composite);
    Dialog.applyDialogFont(composite);

    Composite composite_4 = new Composite(composite, SWT.NONE);
    GridData gd_composite_4 = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 2);
    gd_composite_4.widthHint = 20;
    composite_4.setLayoutData(gd_composite_4);

    Composite composite_1 = new Composite(composite, SWT.NONE);
    composite_1.setLayout(new GridLayout(1, false));
    GridData gd_composite_1 = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 2);
    gd_composite_1.widthHint = 240;
    gd_composite_1.heightHint = 480;
    composite_1.setLayoutData(gd_composite_1);

    final Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);
    lblNewLabel_3.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));

    Composite composite_2 = new Composite(composite, SWT.NONE);
    composite_2.setLayout(new GridLayout(2, false));
    composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

    Label lblNewLabel_2 = new Label(composite_2, SWT.NONE);
    lblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
    lblNewLabel_2.setText("\u5E94\u7528\u6846\u67B6:");

    Composite composite_3 = new Composite(composite_2, SWT.NONE);
    composite_3.setLayout(new FillLayout(SWT.HORIZONTAL));
    GridData gd_composite_3 = new GridData(GridData.FILL_BOTH);
    gd_composite_3.widthHint = 350;
    gd_composite_3.heightHint = 271;
    composite_3.setLayoutData(gd_composite_3);

    ScrolledComposite scrolledComposite = new ScrolledComposite(composite_3,
            SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    scrolledComposite.setExpandHorizontal(true);
    scrolledComposite.setExpandVertical(true);

    composit = new Composite(scrolledComposite, SWT.NONE);
    composit.setLayout(new GridLayout(4, false));
    GridData gd_composite = new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1);
    int i = 0;
    for (APICloudProject project : projects) {
        Label l = new Label(composit, SWT.NONE);
        l.setData(project);
        if (i == 0) {
            defaultLabel = l;
            l.setImage(AuthenticActivator.getImage(project.getSelectImage()));
            lblNewLabel_3.setImage(AuthenticActivator.getImage(project.getReViewImage()));
        } else {
            l.setImage(AuthenticActivator.getImage(project.getImage()));

        }
        l.setLayoutData(gd_composite);
        l.addMouseListener(new MouseAdapter() {
            public void mouseUp(MouseEvent e) {
                APICloudProject project = (APICloudProject) defaultLabel.getData();
                defaultLabel.setImage(AuthenticActivator.getImage(project.getImage()));
                defaultLabel = (Label) e.getSource();
                project = (APICloudProject) defaultLabel.getData();
                defaultLabel.setImage(AuthenticActivator.getImage(project.getSelectImage()));
                lblNewLabel_3.setImage(AuthenticActivator.getImage(project.getReViewImage()));
            }
        });
        i++;
    }
    scrolledComposite.setContent(composit);
    scrolledComposite.setMinSize(composit.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    new Label(composite, SWT.NONE);

}

From source file:com.appcelerator.titanium.desktop.ui.wizard.DesktopPackagingPage.java

License:Apache License

public void createControl(Composite parent) {
    // TODO Change button text to 'Package Project'?
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(GridLayoutFactory.fillDefaults().numColumns(2).create());
    composite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
    setControl(composite);// w w w  . j  av  a 2s.com

    initializeDialogUnits(parent);

    // Description/Title
    Label description = new Label(composite, SWT.CENTER | SWT.WRAP);
    description.setText(Messages.DesktopPackagingPage_Description);
    description.setLayoutData(
            GridDataFactory.swtDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(2, 1).create());

    // The options section (on the left)
    Composite options = createOptionsComposite(composite);
    options.setLayoutData(GridDataFactory.fillDefaults().grab(false, true).create());

    // The help text section (on the right)
    Composite help = createHelpComposite(composite);
    help.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());

    Dialog.applyDialogFont(composite);

    restoreWidgetValues();

    validate();
}

From source file:com.appcelerator.titanium.desktop.ui.wizard.NewDesktopProjectCreationPage.java

License:Apache License

@Override
public void createControl(Composite parent) {
    super.createControl(parent);
    Composite group = createCommonControls(parent);
    // Loads the SDK versions
    sdkViewer.setInput(TitaniumDesktopSDKLocator.getInstance().getAvailable());
    SDKEntity selection = null;//from  www  . j  ava2s  . c om
    // Load the saved setting for the Titanium Desktop SDK and set it as the selected one (in case we still have it
    // available in the combo)
    IDialogSettings dialogSettings = getDialogSettings();
    if (dialogSettings != null) {
        selection = TitaniumDesktopSDKLocator.getInstance()
                .findVersion(String.valueOf(dialogSettings.get(TITANIUM_SDK_SETTING)));
    }
    if (selection == null) {
        selection = TitaniumDesktopSDKLocator.getInstance().getLatestVersion();
    }
    if (selection != null) {
        sdkViewer.setSelection(new StructuredSelection(selection));
    }

    // Add the platform selection buttons according to what is available
    Label deploymentLabel = new Label(group, SWT.NONE);
    deploymentLabel.setText(Messages.NewDesktopProjectCreationPage_languageModules);
    Composite platformsComposite = new Composite(group, SWT.NONE);
    platformsComposite.setLayout(new GridLayout(3, true));
    GridData gd = new GridData(GridData.FILL);
    platformsComposite.setLayoutData(gd);

    rubyButton = new Button(platformsComposite, SWT.CHECK);
    rubyButton.setText("Ruby"); //$NON-NLS-1$
    pythonButton = new Button(platformsComposite, SWT.CHECK);
    pythonButton.setText("Python"); //$NON-NLS-1$
    phpButton = new Button(platformsComposite, SWT.CHECK);
    phpButton.setText("PHP"); //$NON-NLS-1$

    Control control = getControl();
    Dialog.applyDialogFont(control);
    setControl(control);
}

From source file:com.aptana.deploy.capistrano.ui.wizard.CapifyProjectPage.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.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(composite);//from  www  .j a  va2  s  .co  m

    initializeDialogUnits(parent);

    // TODO What if file already exists? Do we disable the button? do we even show this page?

    // Actual contents
    Label label = new Label(composite, SWT.WRAP);
    label.setText(Messages.CapifyProjectPage_Description);
    label.setLayoutData(new GridData(500, SWT.DEFAULT));

    Button generateButton = new Button(composite, SWT.PUSH);
    generateButton.setText(Messages.CapifyProjectPage_GenerateButtonLabel);
    generateButton.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));
    generateButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            if (!terminalComposite.isEmpty()) {
                terminalComposite.clear();
            }
            // Send "capify" command to terminal
            terminalComposite.sendInput("capify .\n"); //$NON-NLS-1$

            // Poll to check if capistrano is installed
            if (checkCapifiedJob == null) {
                checkCapifiedJob = new Job("Checking if config/deploy.rb exists") //$NON-NLS-1$
                {
                    protected IStatus run(IProgressMonitor monitor) {
                        if (monitor != null && monitor.isCanceled()) {
                            return Status.CANCEL_STATUS;
                        }
                        if (isPageComplete()) {
                            PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {

                                public void run() {
                                    getContainer().updateButtons(); // ok update the wizard TODO Just finish for
                                    // them?
                                }
                            });
                        } else {
                            schedule(1000); // check again in a second
                        }
                        return Status.OK_STATUS;
                    }
                };
                checkCapifiedJob.setSystem(true);
            }
            checkCapifiedJob.cancel();
            checkCapifiedJob.schedule(1000);
        }
    });

    // Terminal
    terminalComposite = new TerminalComposite(composite, SWT.NONE);
    terminalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    // TODO Can we prevent user input to this terminal?
    terminalComposite.setWorkingDirectory(getProject().getLocation());
    terminalComposite.connect();

    // label/link
    Link link = new Link(composite, SWT.NONE);
    link.setText(Messages.CapifyProjectPage_LinkText);
    link.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            // Open browser window inside studio to url without closing wizard!
            IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
            try {
                IWebBrowser browser = support.createBrowser(IWorkbenchBrowserSupport.AS_EDITOR, "capify", null, //$NON-NLS-1$
                        null);
                browser.openURL(new URL(e.text));
            } catch (Exception e1) {
                IdeLog.logError(CapistranoPlugin.getDefault(), e1);
            }
        }
    });

    Dialog.applyDialogFont(composite);
}

From source file:com.aptana.deploy.capistrano.ui.wizard.InstallCapistranoGemPage.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.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(composite);//from  www. j a  v  a  2s. c  o m

    initializeDialogUnits(parent);

    // Actual contents
    Label label = new Label(composite, SWT.WRAP);
    label.setText(Messages.InstallCapistranoGemPage_Description);
    label.setLayoutData(new GridData(500, SWT.DEFAULT));

    Button generateButton = new Button(composite, SWT.PUSH);
    generateButton.setText(Messages.InstallCapistranoGemPage_InstallGemLabel);
    generateButton.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));
    generateButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            if (!terminalComposite.isEmpty()) {
                terminalComposite.clear();
            }

            // Need to check to see if we should run under sudo to install gem...
            if (!ExecutableUtil.isGemInstallable()) {
                // Does not have permission
                terminalComposite.sendInput("sudo "); //$NON-NLS-1$
            }

            // install gem
            terminalComposite.sendInput("gem install capistrano\n"); //$NON-NLS-1$

            // Poll to check if capistrano is installed
            if (checkGemInstalledJob == null) {
                checkGemInstalledJob = new Job("Checking if capistrano gem is installed") //$NON-NLS-1$
                {
                    protected IStatus run(IProgressMonitor monitor) {
                        if (monitor != null && monitor.isCanceled()) {
                            return Status.CANCEL_STATUS;
                        }
                        if (isCapistranoGemInstalled()) {
                            PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {

                                public void run() {
                                    getContainer().updateButtons(); // ok update the wizard
                                }
                            });
                        } else {
                            schedule(1000); // check again in a second
                        }
                        return Status.OK_STATUS;
                    }
                };
                checkGemInstalledJob.setSystem(true);
            }
            checkGemInstalledJob.cancel();
            checkGemInstalledJob.schedule(1000);
        }
    });

    // Terminal
    terminalComposite = new TerminalComposite(composite, SWT.NONE);
    terminalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

    terminalComposite.setWorkingDirectory(getProject().getLocation());
    terminalComposite.connect();

    Dialog.applyDialogFont(composite);
}

From source file:com.aptana.deploy.engineyard.ui.wizard.EngineYardDeployWizardPage.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.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(composite);/*from   www  . j a v a  2  s  . c om*/

    initializeDialogUnits(parent);

    // Actual contents
    Composite appSettings = new Composite(composite, SWT.NULL);
    appSettings.setLayout(new GridLayout(2, false));

    Label label = new Label(appSettings, SWT.NONE);
    label.setText(Messages.EngineYardDeployWizardPage_ApplicationNameLabel);

    Label note = new Label(composite, SWT.WRAP);
    Font dialogFont = JFaceResources.getDialogFont();
    FontData[] data = SWTUtils.italicizedFont(JFaceResources.getDialogFont());
    final Font italic = new Font(dialogFont.getDevice(), data);
    note.setFont(italic);
    note.addDisposeListener(new DisposeListener() {
        public void widgetDisposed(DisposeEvent e) {
            if (!italic.isDisposed()) {
                italic.dispose();
            }
        }
    });
    note.setLayoutData(new GridData(400, SWT.DEFAULT));
    note.setText(Messages.EngineYardDeployWizardPage_ApplicationNoteLabel);

    // Link to Engine Yard dashbaord
    Link link = new Link(composite, SWT.NONE);
    link.setText(Messages.EngineYardDeployWizardPage_ApplicationLinkLabel);
    link.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {

                public void run() {
                    try {
                        final String BROWSER_ID = "EngineYard-login"; //$NON-NLS-1$
                        final URL url = new URL("https://cloud.engineyard.com/dashboard"); //$NON-NLS-1$

                        final int style = IWorkbenchBrowserSupport.NAVIGATION_BAR
                                | IWorkbenchBrowserSupport.LOCATION_BAR | IWorkbenchBrowserSupport.STATUS;

                        IWorkbenchBrowserSupport workbenchBrowserSupport = PlatformUI.getWorkbench()
                                .getBrowserSupport();

                        if (workbenchBrowserSupport.isInternalWebBrowserAvailable()) {
                            IWebBrowser webBrowser = workbenchBrowserSupport.createBrowser(style, BROWSER_ID,
                                    null, null);
                            if (webBrowser != null)
                                webBrowser.openURL(url);
                        }

                    } catch (Exception e) {
                        IdeLog.logError(EngineYardPlugin.getDefault(), e);
                    }
                }
            });

            // close the wizard when the user clicks on the dashboard link
            ((WizardDialog) getContainer()).close();

        }
    });

    Dialog.applyDialogFont(composite);
}

From source file:com.aptana.deploy.engineyard.ui.wizard.EngineYardLoginWizardPage.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.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(composite);//from w ww .  j  av a2 s.  co m

    initializeDialogUnits(parent);

    // Actual contents
    Label label = new Label(composite, SWT.NONE);
    label.setText(Messages.EngineYardLoginWizardPage_EnterCredentialsLabel);

    Composite credentials = new Composite(composite, SWT.NONE);
    credentials.setLayout(new GridLayout(2, false));

    Label userIdLabel = new Label(credentials, SWT.NONE);
    userIdLabel.setText(Messages.EngineYardLoginWizardPage_EmailAddressLabel);
    userId = new Text(credentials, SWT.SINGLE | SWT.BORDER);
    userId.setMessage(Messages.EngineYardLoginWizardPage_EmailAddressExample);
    GridData gd = new GridData(300, SWT.DEFAULT);
    userId.setLayoutData(gd);
    userId.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            getContainer().updateButtons();
        }
    });

    Label passwordLabel = new Label(credentials, SWT.NONE);
    passwordLabel.setText(Messages.EngineYardLoginWizardPage_PasswordLabel);
    password = new Text(credentials, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD);
    password.setMessage(Messages.EngineYardLoginWizardPage_PasswordExample);
    password.setLayoutData(gd);
    password.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            getContainer().updateButtons();
        }
    });

    Button checkAuth = new Button(credentials, SWT.PUSH);
    checkAuth.setText(Messages.EngineYardLoginWizardPage_SubmitButtonLabel);
    checkAuth.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            if (validateLogin() && isPageComplete()) {
                getContainer().showPage(getNextPage());
            }
        }
    });

    // Signup link
    Link link = new Link(composite, SWT.NONE);
    link.setText(Messages.EngineYardLoginWizardPage_SignupLinkLabel);
    link.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            // Open the next dialog page where user can begin signup process!
            IWizardPage signupPage = new EngineYardSignupPage(userId.getText());
            signupPage.setWizard(getWizard());
            getContainer().showPage(signupPage);
        }
    });

    Dialog.applyDialogFont(composite);
}

From source file:com.aptana.deploy.engineyard.ui.wizard.EngineYardSignupPage.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.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(composite);//from   ww  w .  j  a  v a  2s  .co m

    initializeDialogUnits(parent);

    // Actual contents
    Label label = new Label(composite, SWT.NONE);
    label.setText(Messages.EngineYardSignupPage_EnterCredentialsLabel);

    Composite credentials = new Composite(composite, SWT.NONE);
    credentials.setLayout(new GridLayout(2, false));

    Label userIdLabel = new Label(credentials, SWT.NONE);
    userIdLabel.setText(Messages.EngineYardSignupPage_EmailAddressLabel);
    userId = new Text(credentials, SWT.SINGLE | SWT.BORDER);
    userId.setMessage(Messages.EngineYardSignupPage_EmailAddressExample);
    if (startingUserId != null && startingUserId.trim().length() > 0) {
        userId.setText(startingUserId);
    }
    GridData gd = new GridData(300, SWT.DEFAULT);
    userId.setLayoutData(gd);

    Label note = new Label(composite, SWT.WRAP);

    Font dialogFont = JFaceResources.getDialogFont();
    FontData[] data = SWTUtils.italicizedFont(JFaceResources.getDialogFont());
    final Font italic = new Font(dialogFont.getDevice(), data);
    note.setFont(italic);
    note.addDisposeListener(new DisposeListener() {
        public void widgetDisposed(DisposeEvent e) {
            if (!italic.isDisposed()) {
                italic.dispose();
            }
        }
    });

    gd = new GridData(400, SWT.DEFAULT);
    note.setLayoutData(gd);
    note.setText(Messages.EngineYardSignupPage_SignupNote);

    // Add signup button
    Button signup = new Button(composite, SWT.PUSH);
    signup.setText(Messages.EngineYardSignupPage_SignupButtonLabel);
    signup.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            //check if email address is valid
            if (!isEmailValid(userId.getText())) {
                MessageDialog.openError(getShell(), "Error", //$NON-NLS-1$
                        Messages.EngineYardSignupPage_InvalidEmail_Message);
                return;
            }

            // basically just perform finish!
            if (getWizard().performFinish()) {
                ((WizardDialog) getContainer()).close();
            }
        }
    });

    Dialog.applyDialogFont(composite);
}

From source file:com.aptana.deploy.ftp.ui.wizard.FTPDeployWizardPage.java

License:Open Source License

public void createControl(Composite parent) {
    ftpConnectionComposite = new FTPDeployComposite(parent, SWT.NONE, connectionPoint, this);
    ftpConnectionComposite//from   ww w. j a v a2  s . co m
            .setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(ftpConnectionComposite);

    initializeDialogUnits(parent);
    Dialog.applyDialogFont(ftpConnectionComposite);

    IProject project = container.getProject();
    boolean autoSync = SyncPreferenceUtil.isAutoSync(project);
    ftpConnectionComposite.setAutoSyncSelected(autoSync);
    if (autoSync) {
        ftpConnectionComposite.setSyncDirection(SyncPreferenceUtil.getAutoSyncDirection(project));
    }
    ftpConnectionComposite.validate();
}

From source file:com.aptana.deploy.heroku.ui.wizard.HerokuDeployWizardPage.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.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
    setControl(composite);//from   w  ww.  j av  a2 s.c om

    initializeDialogUnits(parent);

    // Actual contents
    Composite appSettings = new Composite(composite, SWT.NULL);
    appSettings.setLayout(new GridLayout(2, false));

    Label label = new Label(appSettings, SWT.NONE);
    label.setText(Messages.HerokuDeployWizardPage_ApplicationNameLabel);

    appName = new Text(appSettings, SWT.SINGLE | SWT.BORDER);
    appName.setLayoutData(new GridData(250, SWT.DEFAULT));
    // Set default name to project name
    appName.setText(getProjectName());
    appName.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            getContainer().updateButtons();
        }
    });

    publishButton = new Button(composite, SWT.CHECK);
    publishButton.setText(Messages.HerokuDeployWizardPage_PublishApplicationLabel);
    publishButton.setSelection(Platform.getPreferencesService().getBoolean(HerokuPlugin.getPluginIdentifier(),
            IPreferenceConstants.HEROKU_AUTO_PUBLISH, true, null));

    if (doesntHaveGitRepo()) {
        Label note = new Label(composite, SWT.WRAP);
        // We need this italic, we may need to set a font explicitly here to get it
        Font dialogFont = JFaceResources.getDialogFont();
        FontData[] data = SWTUtils.italicizedFont(JFaceResources.getDialogFont());
        final Font italic = new Font(dialogFont.getDevice(), data);
        note.setFont(italic);
        note.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent e) {
                if (!italic.isDisposed()) {
                    italic.dispose();
                }
            }
        });

        note.setLayoutData(new GridData(400, SWT.DEFAULT));
        note.setText(Messages.HerokuDeployWizardPage_NoGitRepoNote);
    }

    Dialog.applyDialogFont(composite);
}