|
73 | 73 | import org.omg.sysml.lang.sysml.util.SysMLLibraryUtil; |
74 | 74 | import org.omg.sysml.plantuml.SysML2PlantUMLLinkProvider; |
75 | 75 | import org.omg.sysml.plantuml.SysML2PlantUMLSvc; |
76 | | -import org.omg.sysml.util.NamespaceUtil; |
77 | 76 | import org.omg.sysml.util.SysMLUtil; |
78 | 77 | import org.omg.sysml.util.TypeUtil; |
79 | 78 | import org.omg.sysml.util.repository.EObjectUUIDTracker; |
@@ -375,7 +374,7 @@ else if (matchStyle(styles, "JSON")) { |
375 | 374 | else if (styles.isEmpty() || matchStyle(styles, "TREE")){ |
376 | 375 | return SysMLInteractiveUtil.formatTree(element); |
377 | 376 | } else { |
378 | | - return "ERROR:Invalid style. Possible styles: TREE and JSON"; |
| 377 | + return "ERROR:Invalid style. Possible styles: TREE and JSON\n"; |
379 | 378 | } |
380 | 379 | } catch (Exception e) { |
381 | 380 | return SysMLInteractiveUtil.formatException(e); |
@@ -474,11 +473,11 @@ public String load(Map<String, String> parameters) { |
474 | 473 | } |
475 | 474 |
|
476 | 475 | if (parameters.containsKey(PROJECT_ID_KEY) && parameters.containsKey(PROJECT_NAME_KEY)) { |
477 | | - return "ERROR:Name and id cannot be provided at the same time."; |
| 476 | + return "ERROR:Project name and id cannot be provided at the same time\n"; |
478 | 477 | } |
479 | 478 |
|
480 | 479 | if (parameters.containsKey(BRANCH_ID_KEY) && parameters.containsKey(BRANCH_NAME_KEY)) { |
481 | | - return "ERROR:Branch name and branch id cannot be provided at the same time"; |
| 480 | + return "ERROR:Branch name and id cannot be provided at the same time\n"; |
482 | 481 | } |
483 | 482 |
|
484 | 483 | final ProjectRepository repository = new ProjectRepository(apiBasePath); |
@@ -519,7 +518,9 @@ private String load(RemoteBranch branch) { |
519 | 518 | return "ERROR:Branch doesn't exist\n"; |
520 | 519 | } |
521 | 520 |
|
522 | | - System.out.println("Selected branch " + branch.getName()); |
| 521 | + System.out.println("API base path: " + apiBasePath); |
| 522 | + System.out.println(); |
| 523 | + System.out.println("Selected branch " + branch.getName() + " (" + branch.getRemoteId().toString() + ")"); |
523 | 524 |
|
524 | 525 | if (!tracker.isLibraryTracked()) { |
525 | 526 | System.out.println("Caching library UUIDs..."); |
|
0 commit comments