|
Lines 75-81
Link Here
|
| 75 |
@Override |
75 |
@Override |
| 76 |
public void run() { |
76 |
public void run() { |
| 77 |
if (getDefinitionName() != null) { |
77 |
if (getDefinitionName() != null) { |
| 78 |
Job job = createM2TJob(); |
78 |
Job job = createXpandJob(); |
| 79 |
// Show console and make sure that all system output produced during execution gets displayed there |
79 |
// Show console and make sure that all system output produced during execution gets displayed there |
| 80 |
ExtendedPlatformUI.showSystemConsole(); |
80 |
ExtendedPlatformUI.showSystemConsole(); |
| 81 |
job.schedule(); |
81 |
job.schedule(); |
|
Lines 83-89
Link Here
|
| 83 |
} |
83 |
} |
| 84 |
|
84 |
|
| 85 |
M2TConfigurationWizard wizard = new M2TConfigurationWizard(getSelectedModelObject(), getMetaModel()); |
85 |
M2TConfigurationWizard wizard = new M2TConfigurationWizard(getSelectedModelObject(), getMetaModel()); |
| 86 |
wizard.setM2TJobName(getM2TJobName()); |
86 |
wizard.setM2TJobName(getXpandJobName()); |
| 87 |
wizard.setScopingResourceLoader(getScopingResourceLoader()); |
87 |
wizard.setScopingResourceLoader(getScopingResourceLoader()); |
| 88 |
wizard.setOutletsPreference(getOutletsPreference()); |
88 |
wizard.setOutletsPreference(getOutletsPreference()); |
| 89 |
wizard.setDefaultOutlet(getDefaultOutlet()); |
89 |
wizard.setDefaultOutlet(getDefaultOutlet()); |
|
Lines 91-98
Link Here
|
| 91 |
wizardDialog.open(); |
91 |
wizardDialog.open(); |
| 92 |
} |
92 |
} |
| 93 |
|
93 |
|
| 94 |
protected XpandJob createM2TJob() { |
94 |
protected XpandJob createXpandJob() { |
| 95 |
XpandJob job = new XpandJob(getM2TJobName(), getMetaModel(), getXpandEvaluationRequests()); |
95 |
XpandJob job = new XpandJob(getXpandJobName(), getMetaModel(), getXpandEvaluationRequests()); |
| 96 |
job.setScopingResourceLoader(getScopingResourceLoader()); |
96 |
job.setScopingResourceLoader(getScopingResourceLoader()); |
| 97 |
job.getOutlets().addAll(getOutlets()); |
97 |
job.getOutlets().addAll(getOutlets()); |
| 98 |
job.setPriority(Job.BUILD); |
98 |
job.setPriority(Job.BUILD); |
|
Lines 100-106
Link Here
|
| 100 |
return job; |
100 |
return job; |
| 101 |
} |
101 |
} |
| 102 |
|
102 |
|
| 103 |
protected String getM2TJobName() { |
103 |
protected String getXpandJobName() { |
| 104 |
return Messages.job_generatingCode; |
104 |
return Messages.job_generatingCode; |
| 105 |
} |
105 |
} |
| 106 |
|
106 |
|