blob: 1f0f6456f6f4b1f67027e0be299d446c3caa1510 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2007,2008 E.D.Willink and others.
* 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:
* E.D.Willink - initial API and implementation
*
* </copyright>
*
* $Id: QVTrNewWizardPage.java,v 1.2 2008/08/10 06:44:17 ewillink Exp $
*/
package org.eclipse.qvt.declarative.editor.qvtrelation.ui;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.qvt.declarative.editor.ui.wizards.PagedNewWizardPage;
import org.eclipse.qvt.declarative.parser.ui.preferences.QVTPreferences;
/**
* The "New" wizard page allows setting the container for the new file as well
* as the file name. The page will only accept file name without the extension
* OR with the extension that matches the expected one (qvtr).
*/
public class QVTrNewWizardPage extends PagedNewWizardPage
{
public QVTrNewWizardPage(ISelection selection) {
super(selection);
}
@Override protected String getFileExtension() {
return QVTPreferences.getRelationTextExtension();
}
@Override protected String[] getFileExtensions() {
return QVTPreferences.getRelationTextExtensions();
}
}