eclipse plugin: Tweak a bit the setup workspace workflow

This commit is contained in:
Timotei Dolean 2011-07-06 16:53:24 +00:00
parent 3eb560cc83
commit baef72e2ee
4 changed files with 10 additions and 10 deletions

View file

@ -299,4 +299,4 @@ WorkspaceUtils_29=Workspace was set up successfully.
WorkspaceUtils_30=There was an error trying to setup the workspace.
WorkspaceUtils_33=Please set all plugin's preferences before using it.
WorkspaceUtils_7=Not all mandatory preferences were setup, aborting. Please re-run this if you want to use the plugin.
WorkspaceUtils_9=Good. The preferences were set.\nNow, I'll make projects for each existing campaign and user addon. It will take a while. Press OK to continue.
WorkspaceUtils_9=Good. The preferences are set.\n

View file

@ -29,7 +29,6 @@ import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IViewPart;
@ -332,17 +331,17 @@ public class WorkspaceUtils
{
PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(
WesnothPlugin.getShell(), "org.wesnoth.preferences.InstallsPage", null, null); //$NON-NLS-1$
if ( pref.open() == Window.CANCEL ||
!checkPathsAreSet ( null, true ) )
pref.open();
if ( !checkPathsAreSet ( null, true ) )
{
GUIUtils.showErrorMessageBox( Messages.WorkspaceUtils_7 );
return;
}
}
if (guided)
{
GUIUtils.showInfoMessageBox( Messages.WorkspaceUtils_9 );
}
if (guided)
{
GUIUtils.showInfoMessageBox( Messages.WorkspaceUtils_9 );
}
WorkspaceJob job = new WorkspaceJob( Messages.WorkspaceUtils_13 ){

View file

@ -27,6 +27,9 @@ public abstract class NewWizardTemplate extends Wizard implements INewWizard
protected Object data_ = null;
protected String objectName_ = ""; //$NON-NLS-1$
// TODO: wizards should ask the install
// TODO: detect automatically whether a project is in data or add-ons/
// without the need for the user to specify
public NewWizardTemplate()
{
setNeedsProgressMonitor(true);

View file

@ -22,8 +22,6 @@ public class WizardGenerator extends NewWizardTemplate
private int indent_;
public WizardGenerator(String title, String tagName, int indent) {
// TODO: wizards should ask the install
SchemaParser.getInstance( null ).parseSchema(false);
setWindowTitle(title);
Tag tagContent = SchemaParser.getInstance( null ).getTags().get(tagName);