File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
org.omg.sysml.interactive/src/org/omg/sysml/interactive Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,8 @@ protected String publish(String name) {
467467 * @return output of the command
468468 */
469469 public String load (Map <String , String > parameters ) {
470- this .counter ++;
470+ counter ++;
471+
471472 if (parameters .containsKey (HELP_KEY )) {
472473 return SysMLInteractiveHelp .getLoadHelp ();
473474 }
@@ -541,16 +542,16 @@ private String load(RemoteBranch branch) {
541542 modelRefresher .getIssues ().forEach (System .out ::println );
542543
543544 delta .getProjectRoots ().forEach ((eObject , dto ) -> {
544- next ( SYSMLX_EXTENSION );
545- Resource xmiResource = getResource ( );
545+ Resource resource = this . createResource ( eObject . toString () + SYSML_EXTENSION );
546+ this . addInputResource ( resource );
546547 if (eObject instanceof Namespace ) {
547- xmiResource .getContents ().add (eObject );
548+ resource .getContents ().add (eObject );
548549 } else {
549550 Namespace root = SysMLFactory .eINSTANCE .createNamespace ();
550551 NamespaceUtil .addOwnedMemberTo (root , (Element ) eObject );
551- xmiResource .getContents ().add (root );
552+ resource .getContents ().add (root );
552553 }
553- addResourceToIndex (xmiResource );
554+ addResourceToIndex (resource );
554555 });
555556
556557 return "Loaded Project " + remoteProject .getProjectName () + " (" + remoteProject .getRemoteId ().toString () + ")\n " ;
You can’t perform that action at this time.
0 commit comments