capint
7/28/2015 - 2:30 PM

Melody >> Connector

Melody >> Connector

...
SemanticConnector.importArtifacts(CommandContext)
  >> MelodyTeamWorkspaceArtefactFactory.get(Artifact) // MelodyTeamWorkspaceArtefactFactory is registered with Orchestra Framework
  //and it is used to get a MelodyTeamWorkspaceArtefact
    >> MelodyTeamWorkspaceArtefactImpl.materialize(CommandContext, IProgressMonitor) 
      //Materialize artefact into the workspace	
      >> ProjectCreationHelper.openMelodyTeamConnectionProject/createMelodyTeamConnectionProject
        (String, String, String, String, String, IProgressMonitor)
        >> SemanticConnector.navigate(CommandContext)
          >> ...
1. Get connector type
RemoteConnectorProxy.getType()
  >> SemanticConnector.getType()

2. Are specified artifacts (in specified context) handled by the connector
RemoteConnectorProxy.isHandlingArtifacts(String)
  >> SemanticConnector.isHandlingArtifacts(CommandContext)

3. Import specified artifacts (the context) to the application environment
RemoteConnectorProxy.importArtifacts(String)	
  >> SemanticConnector.importArtifacts(CommandContext)	

4. Navigate to artifacts
RemoteConnectorProxy.navigate(String)	
  >> SemanticConnector.navigate(CommandContext)	
    >> SemanticConnector.checkActiveTransaction(CommandContext) //Check that no other transaction is active
1. Get connector type
RemoteConnectorProxy.getType()
  >> SemanticConnector.getType()

2. Are specified artifacts (in specified context) handled by the connector
RemoteConnectorProxy.isHandlingArtifacts(String)
  >> SemanticConnector.isHandlingArtifacts(CommandContext)

3. Import specified artifacts (the context) to the application environment
RemoteConnectorProxy.importArtifacts(String)	
  >> SemanticConnector.importArtifacts(CommandContext)

4.Export documentary content for specified context
RemoteConnectorProxy.documentaryExport(String)
  >> SemanticConnector.documentaryExport(CommandContext)
    >> SemanticConnector.writeGef(CommandContext) //Write out a GEF document for the given command context
      >> SemanticConnector.checkActiveTransaction(CommandContext) //Check that no other transaction is active