// Path: org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/internal/EditorConfigMessages.java
// public class EditorConfigMessages extends NLS {
// 
// 	private static final String BUNDLE_NAME = "org.eclipse.ec4e.internal.EditorConfigMessages"; //$NON-NLS-1$
// 
// 	// Buttons
// 	public static String Browse_button;
// 
// 	// Wizards
// 	public static String NewEditorConfigWizard_windowTitle;
// 	public static String NewEditorConfigFileWizardPage_title;
// 	public static String NewEditorConfigFileWizardPage_description;
// 	public static String NewEditorConfigFileWizardPage_folderText_Label;
// 	public static String NewEditorConfigFileWizardPage_containerSelectionDialog_title;
// 	public static String NewEditorConfigFileWizardPage_folder_required_error;
// 	public static String NewEditorConfigFileWizardPage_folder_noexists_error;
// 	public static String NewEditorConfigFileWizardPage_project_noaccessible_error;
// 	public static String NewEditorConfigFileWizardPage_folder_already_editorconfig_error;
// 
// 	// Search
// 	public static String EditorConfigSearchQuery_label;
// 	public static String EditorConfigSearchQuery_singularReference;
// 	public static String EditorConfigSearchQuery_pluralReferences;
// 
// 	static {
// 		NLS.initializeMessages(BUNDLE_NAME, EditorConfigMessages.class);
// 	}
// 
// }


import org.ec4j.core.EditorConfigConstants;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.ec4e.internal.EditorConfigMessages;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
/**
 *  Copyright (c) 2017 Angelo ZERR.
 *  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:
 *  Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
 */
package org.eclipse.ec4e.internal.wizards;


/**
 * Wizard page to fill information of .editorconfig file to create.
 *
 */
public class NewEditorConfigFileWizardPage extends WizardPage {

	private static final String PAGE_NAME = NewEditorConfigFileWizardPage.class.getName();

	private static final IPath EDITOTR_CONFIG_PATH = new Path(EditorConfigConstants.EDITORCONFIG);

	private Text folderText;

	private ISelection selection;

	/**
	 * Constructor for NewEditorConfigFileWizardPage.
	 * 
	 * @param pageName
	 */
	public NewEditorConfigFileWizardPage(ISelection selection) {
		super(PAGE_NAME);
// Path: org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/internal/EditorConfigMessages.java
// public class EditorConfigMessages extends NLS {
// 
// 	private static final String BUNDLE_NAME = "org.eclipse.ec4e.internal.EditorConfigMessages"; //$NON-NLS-1$
// 
// 	// Buttons
// 	public static String Browse_button;
// 
// 	// Wizards
// 	public static String NewEditorConfigWizard_windowTitle;
// 	public static String NewEditorConfigFileWizardPage_title;
// 	public static String NewEditorConfigFileWizardPage_description;
// 	public static String NewEditorConfigFileWizardPage_folderText_Label;
// 	public static String NewEditorConfigFileWizardPage_containerSelectionDialog_title;
// 	public static String NewEditorConfigFileWizardPage_folder_required_error;
// 	public static String NewEditorConfigFileWizardPage_folder_noexists_error;
// 	public static String NewEditorConfigFileWizardPage_project_noaccessible_error;
// 	public static String NewEditorConfigFileWizardPage_folder_already_editorconfig_error;
// 
// 	// Search
// 	public static String EditorConfigSearchQuery_label;
// 	public static String EditorConfigSearchQuery_singularReference;
// 	public static String EditorConfigSearchQuery_pluralReferences;
// 
// 	static {
// 		NLS.initializeMessages(BUNDLE_NAME, EditorConfigMessages.class);
// 	}
// 
// }


// Path: org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/internal/wizards/NewEditorConfigFileWizardPage.java
import org.ec4j.core.EditorConfigConstants;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.ec4e.internal.EditorConfigMessages;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;

/**
 *  Copyright (c) 2017 Angelo ZERR.
 *  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:
 *  Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
 */
package org.eclipse.ec4e.internal.wizards;


/**
 * Wizard page to fill information of .editorconfig file to create.
 *
 */
public class NewEditorConfigFileWizardPage extends WizardPage {

	private static final String PAGE_NAME = NewEditorConfigFileWizardPage.class.getName();

	private static final IPath EDITOTR_CONFIG_PATH = new Path(EditorConfigConstants.EDITORCONFIG);

	private Text folderText;

	private ISelection selection;

	/**
	 * Constructor for NewEditorConfigFileWizardPage.
	 * 
	 * @param pageName
	 */
	public NewEditorConfigFileWizardPage(ISelection selection) {
		super(PAGE_NAME);
		setTitle(EditorConfigMessages.NewEditorConfigFileWizardPage_title);