eclipse plugin - add the map_data attribute to the new scenario template
This commit is contained in:
parent
ae7fc60abb
commit
06c3913792
2 changed files with 8 additions and 0 deletions
|
@ -174,9 +174,11 @@ public class ScenarioNewWizard extends Wizard implements INewWizard {
|
|||
params.add(new ReplaceableParameter("$$scenario_id", page0_.getScenarioId()));
|
||||
params.add(new ReplaceableParameter("$$next_scenario_id", page0_.getNextScenarioId()));
|
||||
params.add(new ReplaceableParameter("$$scenario_name", page0_.getScenarioName()));
|
||||
params.add(new ReplaceableParameter("$$map_data", page0_.getMapData()));
|
||||
|
||||
params.add(new ReplaceableParameter("$$turns_number", String.valueOf(page0_.getTurnsNumber())));
|
||||
|
||||
|
||||
String template = TemplateProvider.getProcessedTemplate("scenario", params);
|
||||
|
||||
if (template == null)
|
||||
|
|
|
@ -282,4 +282,10 @@ public class ScenarioPage0 extends WizardPage {
|
|||
public int getTurnsNumber() {
|
||||
return txtTurns_.getSelection();
|
||||
}
|
||||
/**
|
||||
* @return the map data for the current scenario
|
||||
*/
|
||||
public String getMapData() {
|
||||
return txtMapData_.getText();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue