Author: timotei
Date: Sat Jul 30 10:01:07 2011
New Revision: 50486
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50486&view=rev
Log:
eclipse plugin: Work with interfaces rather than with
concrete classes ( Path -> IPath)
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/WizardPageTemplate.java
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/era/EraPage0.java
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/faction/FactionPage0.java
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/generator/WizardLauncherPage0.java
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/scenario/ScenarioPage0.java
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/WizardPageTemplate.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/WizardPageTemplate.java?rev=50486&r1=50485&r2=50486&view=diff
==============================================================================
---
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/WizardPageTemplate.java
(original)
+++
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/WizardPageTemplate.java
Sat Jul 30 10:01:07 2011
@@ -4,6 +4,7 @@
package org.wesnoth.wizards;
import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.widgets.Composite;
@@ -35,7 +36,7 @@
* Uses the standard container selection dialog to choose the new value
for
* the project field.
*/
- public Path handleBrowseContainer()
+ public IPath handleBrowseContainer()
{
ContainerSelectionDialog dialog = new
ContainerSelectionDialog(getShell(),
ResourcesPlugin.getWorkspace().getRoot(),
false, Messages.NewWizardPageTemplate_1);
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/era/EraPage0.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/era/EraPage0.java?rev=50486&r1=50485&r2=50486&view=diff
==============================================================================
--- trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/era/EraPage0.java
(original)
+++ trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/era/EraPage0.java
Sat Jul 30 10:01:07 2011
@@ -11,6 +11,7 @@
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.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -82,7 +83,7 @@
@Override
public void widgetSelected(SelectionEvent e)
{
- Path path = handleBrowseContainer();
+ IPath path = handleBrowseContainer();
if (path != null)
txtDirectory_.setText(path.toString());
}
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/faction/FactionPage0.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/faction/FactionPage0.java?rev=50486&r1=50485&r2=50486&view=diff
==============================================================================
---
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/faction/FactionPage0.java
(original)
+++
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/faction/FactionPage0.java
Sat Jul 30 10:01:07 2011
@@ -11,6 +11,7 @@
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.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -87,7 +88,7 @@
@Override
public void widgetSelected(SelectionEvent e)
{
- Path path = handleBrowseContainer();
+ IPath path = handleBrowseContainer();
if (path != null)
txtDirectory_.setText(path.toString());
}
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/generator/WizardLauncherPage0.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/generator/WizardLauncherPage0.java?rev=50486&r1=50485&r2=50486&view=diff
==============================================================================
---
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/generator/WizardLauncherPage0.java
(original)
+++
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/generator/WizardLauncherPage0.java
Sat Jul 30 10:01:07 2011
@@ -11,6 +11,7 @@
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.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -88,7 +89,7 @@
@Override
public void widgetSelected(SelectionEvent e)
{
- Path path = handleBrowseContainer();
+ IPath path = handleBrowseContainer();
if (path != null)
txtDirectory_.setText(path.toString());
}
Modified:
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/scenario/ScenarioPage0.java
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/scenario/ScenarioPage0.java?rev=50486&r1=50485&r2=50486&view=diff
==============================================================================
---
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/scenario/ScenarioPage0.java
(original)
+++
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/wizards/scenario/ScenarioPage0.java
Sat Jul 30 10:01:07 2011
@@ -13,6 +13,7 @@
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.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
@@ -116,7 +117,7 @@
@Override
public void widgetSelected(SelectionEvent e)
{
- Path path = handleBrowseContainer();
+ IPath path = handleBrowseContainer();
if (path != null)
txtProject_.setText(path.toString());
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits