mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 01:02:45 +00:00
eclipse plugin: prevent bugs using "overriden" method name
This commit is contained in:
parent
e7248b0682
commit
bce2061d3b
@ -19,6 +19,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.jface.operation.IRunnableWithProgress;
|
||||
|
||||
import wesnoth_eclipse_plugin.Logger;
|
||||
import wesnoth_eclipse_plugin.builder.WesnothProjectNature;
|
||||
import wesnoth_eclipse_plugin.utils.Pair;
|
||||
import wesnoth_eclipse_plugin.utils.ResourceUtils;
|
||||
@ -68,7 +69,7 @@ public class CampaignNewWizard extends NewWizardTemplate
|
||||
});
|
||||
} catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
Logger.getInstance().logException(e);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -115,7 +116,7 @@ public class CampaignNewWizard extends NewWizardTemplate
|
||||
|
||||
} catch (CoreException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
Logger.getInstance().logException(e);
|
||||
}
|
||||
|
||||
monitor.done();
|
||||
@ -128,7 +129,7 @@ public class CampaignNewWizard extends NewWizardTemplate
|
||||
params.add(new ReplaceableParameter("$$campaign_name", page1_.getCampaignName()));
|
||||
params.add(new ReplaceableParameter("$$author", page1_.getAuthor()));
|
||||
params.add(new ReplaceableParameter("$$version", page1_.getVersion()));
|
||||
params.add(new ReplaceableParameter("$$description", page1_.getDescription()));
|
||||
params.add(new ReplaceableParameter("$$description", page1_.getCampaignDescription()));
|
||||
params.add(new ReplaceableParameter("$$icon", page1_.getIconPath()));
|
||||
params.add(new ReplaceableParameter("$$email", page1_.getEmail()));
|
||||
params.add(new ReplaceableParameter("$$passphrase", page1_.getPassphrase()));
|
||||
|
@ -13,14 +13,10 @@ import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
|
||||
|
||||
public class CampaignPage0 extends WizardNewProjectCreationPage
|
||||
{
|
||||
|
||||
public CampaignPage0() {
|
||||
super("campaignPage0");
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.dialogs.WizardNewProjectCreationPage#createControl(org.eclipse.swt.widgets.Composite)
|
||||
*/
|
||||
@Override
|
||||
public void createControl(Composite parent)
|
||||
{
|
||||
@ -28,9 +24,6 @@ public class CampaignPage0 extends WizardNewProjectCreationPage
|
||||
setMessage("Specify the name of the campaign project.");
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()
|
||||
*/
|
||||
@Override
|
||||
public boolean canFlipToNextPage()
|
||||
{
|
||||
|
@ -31,9 +31,6 @@ public class CampaignPage1 extends WizardPage
|
||||
private Text txtIcon_;
|
||||
private Button chkMultiCampaign_;
|
||||
|
||||
/**
|
||||
* Create the wizard.
|
||||
*/
|
||||
public CampaignPage1() {
|
||||
super("campaignPage1");
|
||||
setTitle("Create New Campaign");
|
||||
@ -41,11 +38,6 @@ public class CampaignPage1 extends WizardPage
|
||||
setPageComplete(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create contents of the wizard.
|
||||
*
|
||||
* @param parent
|
||||
*/
|
||||
@Override
|
||||
public void createControl(Composite parent)
|
||||
{
|
||||
@ -146,15 +138,6 @@ public class CampaignPage1 extends WizardPage
|
||||
updateIsPageComplete();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()
|
||||
*/
|
||||
@Override
|
||||
public boolean canFlipToNextPage()
|
||||
{
|
||||
return (isPageComplete() && getNextPage() != null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the mandatory fields and updates the isPageComplete status
|
||||
*/
|
||||
@ -205,8 +188,7 @@ public class CampaignPage1 extends WizardPage
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
@Override
|
||||
public String getDescription()
|
||||
public String getCampaignDescription()
|
||||
{
|
||||
return txtDescription_.getText();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user