Skip to content
Snippets Groups Projects
Commit 24293456 authored by Dott. Federico Volpini's avatar Dott. Federico Volpini
Browse files

minor fixes

parent 66eb3f6b
No related branches found
No related tags found
No related merge requests found
......@@ -624,14 +624,17 @@ public class GUI extends WizardMod {
private void genEffectivePom(List<IProject> parts){
//System.out.println("Generating Effective POM");
for(int i=0; i<parts.size();i++){
IProject part = parts.get(i);
String partName = part.getName();
mpa.getAAL_UAPP().getAppParts().add(new Part("part"+(i+1),partName));
//System.out.println("Part name:"+partName);
IMavenProjectRegistry projectManager = MavenPlugin.getMavenProjectRegistry();
IFile pomResource = part.getFile(IMavenConstants.POM_FILE_NAME);
IMavenProjectFacade projectFacade = projectManager.create(pomResource, true, null);
......@@ -639,10 +642,13 @@ public class GUI extends WizardMod {
IMaven maven = MavenPlugin.getMaven();
if(pomResource != null && projectFacade != null){
//System.out.println("Resource not null, trying to hrlp:effective-pom");
MavenExecutionRequest request;
try {
request = projectManager.createExecutionRequest(pomResource, projectFacade.getResolverConfiguration(), null);
List<String> goals = new ArrayList<String>();
Properties props = new Properties();
props.setProperty("output", mavenTempDir+"/"+partName+".epom.xml");
......@@ -652,6 +658,7 @@ public class GUI extends WizardMod {
request.setGoals(goals);
request.setUserProperties(props);
maven.execute(request, null);
//System.out.println("Done.");
EffectivePOMContainer.addDocument(partName, mavenTempDir+"/"+partName+".epom.xml");
EffectivePOMContainer.getDependencies();
} catch (CoreException e) {
......
......@@ -71,7 +71,6 @@ public class PageDU extends PageImpl {
ckbOS1.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
System.out.println("OS Selected");
ckbPL1.setSelection(false);
ckbOS1.setSelection(true);
ckbCU1.setSelection(false);
......@@ -90,7 +89,6 @@ public class PageDU extends PageImpl {
ckbPL1.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
System.out.println("Platform Selected");
ckbPL1.setSelection(true);
ckbOS1.setSelection(false);
ckbCU1.setSelection(false);
......@@ -109,7 +107,6 @@ public class PageDU extends PageImpl {
ckbCU1.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
System.out.println("Container Selected");
ckbPL1.setSelection(false);
ckbOS1.setSelection(false);
ckbCU1.setSelection(true);
......
......@@ -159,6 +159,7 @@ public class StartPage extends PageImpl {
name = new Text(container, SWT.BORDER | SWT.SINGLE | SWT.READ_ONLY);
name.setLayoutData(gd);
name.setText(app.getDestination());
name.addVerifyListener(new FileV());
Button b1 = new Button(container, SWT.PUSH);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment