eclipse plugin: Move the Installs stuff to it's own package
This commit is contained in:
parent
120663c9ba
commit
7532db65fc
10 changed files with 38 additions and 19 deletions
|
@ -18,6 +18,7 @@ import org.eclipse.xtext.resource.XtextResource;
|
|||
import org.eclipse.xtext.ui.editor.hyperlinking.HyperlinkHelper;
|
||||
import org.eclipse.xtext.ui.editor.hyperlinking.IHyperlinkAcceptor;
|
||||
import org.wesnoth.Logger;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.preferences.Preferences;
|
||||
import org.wesnoth.preferences.Preferences.Paths;
|
||||
import org.wesnoth.preprocessor.Define;
|
||||
|
@ -25,7 +26,6 @@ import org.wesnoth.ui.Messages;
|
|||
import org.wesnoth.ui.WMLUtil;
|
||||
import org.wesnoth.ui.emf.ObjectStorageAdapter;
|
||||
import org.wesnoth.utils.ProjectUtils;
|
||||
import org.wesnoth.utils.WesnothInstallsUtils;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
|
||||
|
||||
|
|
|
@ -35,10 +35,13 @@ Export-Package: org.wesnoth,
|
|||
org.wesnoth.builder,
|
||||
org.wesnoth.editors,
|
||||
org.wesnoth.handlers,
|
||||
org.wesnoth.installs,
|
||||
org.wesnoth.jface,
|
||||
org.wesnoth.navigator,
|
||||
org.wesnoth.preferences,
|
||||
org.wesnoth.preprocessor,
|
||||
org.wesnoth.product,
|
||||
org.wesnoth.propertypages,
|
||||
org.wesnoth.schema,
|
||||
org.wesnoth.templates,
|
||||
org.wesnoth.utils,
|
||||
|
@ -48,6 +51,7 @@ Export-Package: org.wesnoth,
|
|||
org.wesnoth.wizards.era,
|
||||
org.wesnoth.wizards.faction,
|
||||
org.wesnoth.wizards.generator,
|
||||
org.wesnoth.wizards.newfile,
|
||||
org.wesnoth.wizards.scenario,
|
||||
org.wesnoth.wml.core,
|
||||
org.wesnoth.wml.schema,
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
|||
import org.eclipse.core.runtime.Path;
|
||||
import org.wesnoth.Logger;
|
||||
import org.wesnoth.Messages;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.preferences.Preferences;
|
||||
import org.wesnoth.preferences.Preferences.Paths;
|
||||
import org.wesnoth.utils.AntUtils;
|
||||
|
@ -37,7 +38,6 @@ import org.wesnoth.utils.ProjectUtils;
|
|||
import org.wesnoth.utils.ResourceUtils;
|
||||
import org.wesnoth.utils.StringUtils;
|
||||
import org.wesnoth.utils.WMLSaxHandler;
|
||||
import org.wesnoth.utils.WesnothInstallsUtils;
|
||||
import org.wesnoth.utils.WorkspaceUtils;
|
||||
import org.wesnoth.wml.core.ConfigFile;
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2011 by Timotei Dolean <timotei21@gmail.com>
|
||||
*
|
||||
* 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
|
||||
*******************************************************************************/
|
||||
package org.wesnoth.installs;
|
||||
|
||||
public class WesnothInstall
|
||||
{
|
||||
public String Name;
|
||||
public String Version;
|
||||
|
||||
public WesnothInstall(String name, String version)
|
||||
{
|
||||
Name = name;
|
||||
Version = version;
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.wesnoth.utils;
|
||||
package org.wesnoth.installs;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
@ -18,21 +18,12 @@ import org.eclipse.swt.SWT;
|
|||
import org.wesnoth.Constants;
|
||||
import org.wesnoth.Logger;
|
||||
import org.wesnoth.preferences.Preferences;
|
||||
import org.wesnoth.utils.GUIUtils;
|
||||
import org.wesnoth.utils.ProjectUtils;
|
||||
import org.wesnoth.utils.WorkspaceUtils;
|
||||
|
||||
public class WesnothInstallsUtils
|
||||
{
|
||||
public static class WesnothInstall
|
||||
{
|
||||
public String Name;
|
||||
public String Version;
|
||||
|
||||
public WesnothInstall(String name, String version)
|
||||
{
|
||||
Name = name;
|
||||
Version = version;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of the current wesnoth installations available
|
||||
* in the preferences store
|
|
@ -53,12 +53,12 @@ import org.eclipse.xtext.ui.editor.preferences.fields.LabelFieldEditor;
|
|||
import org.wesnoth.Constants;
|
||||
import org.wesnoth.Messages;
|
||||
import org.wesnoth.WesnothPlugin;
|
||||
import org.wesnoth.installs.WesnothInstall;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.templates.ReplaceableParameter;
|
||||
import org.wesnoth.templates.TemplateProvider;
|
||||
import org.wesnoth.utils.GUIUtils;
|
||||
import org.wesnoth.utils.StringUtils;
|
||||
import org.wesnoth.utils.WesnothInstallsUtils;
|
||||
import org.wesnoth.utils.WesnothInstallsUtils.WesnothInstall;
|
||||
|
||||
public class WesnothInstallsPage extends AbstractPreferencePage
|
||||
{
|
||||
|
|
|
@ -14,10 +14,10 @@ import org.eclipse.swt.widgets.Control;
|
|||
import org.eclipse.swt.widgets.Group;
|
||||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.ui.dialogs.PropertyPage;
|
||||
import org.wesnoth.installs.WesnothInstall;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.utils.ProjectCache;
|
||||
import org.wesnoth.utils.ProjectUtils;
|
||||
import org.wesnoth.utils.WesnothInstallsUtils;
|
||||
import org.wesnoth.utils.WesnothInstallsUtils.WesnothInstall;
|
||||
|
||||
public class WesnothProjectPage extends PropertyPage
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ import org.eclipse.core.resources.IResource;
|
|||
import org.eclipse.ui.console.MessageConsole;
|
||||
import org.wesnoth.Logger;
|
||||
import org.wesnoth.Messages;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.preferences.Preferences;
|
||||
import org.wesnoth.preferences.Preferences.Paths;
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.eclipse.ui.console.MessageConsole;
|
|||
import org.wesnoth.Constants;
|
||||
import org.wesnoth.Logger;
|
||||
import org.wesnoth.Messages;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.preferences.Preferences;
|
||||
import org.wesnoth.preferences.Preferences.Paths;
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.eclipse.ui.dialogs.PreferencesUtil;
|
|||
import org.wesnoth.Logger;
|
||||
import org.wesnoth.Messages;
|
||||
import org.wesnoth.WesnothPlugin;
|
||||
import org.wesnoth.installs.WesnothInstallsUtils;
|
||||
import org.wesnoth.navigator.WesnothProjectsExplorer;
|
||||
import org.wesnoth.preferences.Preferences;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue