コード例 #1
0
 /** @return The resolved module version */
 public ModuleVersionResolveState resolveModuleRevisionId() {
   if (targetModuleRevision == null) {
     targetModuleRevision = selector.resolveModuleRevisionId();
     selector.getSelectedModule().addUnattachedDependency(this);
   }
   return targetModuleRevision;
 }
コード例 #2
0
 public void removeFromTargetConfigurations() {
   for (ConfigurationNode targetConfiguration : targetConfigurations) {
     targetConfiguration.removeIncomingEdge(this);
   }
   targetConfigurations.clear();
   if (targetModuleRevision != null) {
     selector.getSelectedModule().removeUnattachedDependency(this);
   }
 }
コード例 #3
0
 public void attachToTargetConfigurations() {
   if (targetModuleRevision.state != ModuleState.Selected) {
     return;
   }
   calculateTargetConfigurations();
   for (ConfigurationNode targetConfiguration : targetConfigurations) {
     targetConfiguration.addIncomingEdge(this);
   }
   if (!targetConfigurations.isEmpty()) {
     selector.getSelectedModule().removeUnattachedDependency(this);
   }
 }