<commit_before>/**
 *  Copyright (c) 2015-2017 <NAME>.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *  <NAME> <<EMAIL>> - initial API and implementation
 */
package ts.eclipse.ide.ui.wizards;

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;

/**
 * Main wizard page to create a TypeScript project.
 *
 */
public class WizardNewTypeScriptProjectCreationPage extends WizardNewProjectCreationPage {

	private final BasicNewResourceWizard wizard;

	public WizardNewTypeScriptProjectCreationPage(String pageName, BasicNewResourceWizard wizard) {
		super(pageName);
		this.wizard = wizard;
	}

	@Override
	public void createControl(Composite parent) {
		super.createControl(parent);
		createWorkingSetGroup((Composite) getControl(), wizard.getSelection(),
				new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$
		Dialog.applyDialogFont(getControl());
	}

}<commit_msg>Expose createPageBody for wizard page.<commit_after>/**
 *  Copyright (c) 2015-2017 <NAME>.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *  <NAME> <<EMAIL>> - initial API and implementation
 */
package ts.eclipse.ide.ui.wizards;

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;

/**
 * Main wizard page to create a TypeScript project.
 *
 */
public class WizardNewTypeScriptProjectCreationPage extends WizardNewProjectCreationPage {

	private final BasicNewResourceWizard wizard;

	public WizardNewTypeScriptProjectCreationPage(String pageName, BasicNewResourceWizard wizard) {
		super(pageName);
		this.wizard = wizard;
	}

	@Override
	public final void createControl(Composite parent) {
		super.createControl(parent);
		Composite body = (Composite) getControl();
		createPageBody(body);
		Dialog.applyDialogFont(body);
	}

	/**
	 * Create page body. User can override this method to add new UI fields.
	 * 
	 * @param parent
	 */
	protected void createPageBody(Composite parent) {
		createWorkingSetGroup(parent, wizard.getSelection(), new String[] { "org.eclipse.ui.resourceWorkingSetPage" }); //$NON-NLS-1$
	}

}
{'fraction_non_alphanumeric': 0.10194524495677233, 'fraction_numerical': 0.009365994236311239, 'mean_word_length': 4.895966029723992, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5941324', 'n_tokens_mistral': 876, 'n_tokens_neox': 800, 'n_words': 210}