コード例 #1
0
  public void unrelateAcrossR9600From(Query_c target, boolean notifyChanges) {
    if (target == null) return;

    if (IsSupertypeQuery == null) return; // already unrelated

    if (target != IsSupertypeQuery) {
      Exception e = new Exception();
      e.fillInStackTrace();
      CorePlugin.logError("Tried to unrelate from non-related instance across R9600", e);
      return;
    }

    if (target != null) {
      target.clearBackPointerR9600To(this);
    }

    if (IsSupertypeQuery != null) {

      m_id = IsSupertypeQuery.getId();
      IsSupertypeQuery = null;
      target.removeRef();
      if (notifyChanges) {
        RelationshipChangeModelDelta change =
            new RelationshipChangeModelDelta(
                Modeleventnotification_c.DELTA_ELEMENT_UNRELATED, this, target, "9600", "");
        Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change);
      }
    }
  }
コード例 #2
0
  public void relateAcrossR9600To(Query_c target, boolean notifyChanges) {
    if (target == null) return;

    if (target == IsSupertypeQuery) return; // already related

    if (IsSupertypeQuery != target) {

      Object oldKey = getInstanceKey();

      if (IsSupertypeQuery != null) {

        IsSupertypeQuery.clearBackPointerR9600To(this);

        if (Boolean.valueOf(System.getenv("PTC_MCC_ENABLED")) == true) { // $NON-NLS-1$
          Ooaofooa.log.println(
              ILogger.CONSISTENCY,
              "DescriptionQuery_c.relateAcrossR9600To(Query_c target)",
              "Relate performed across R9600 from Description Query to Query without unrelate of prior instance.");
        }
      }

      IsSupertypeQuery = target;
      m_id = target.getId();
      updateInstanceKey(oldKey, getInstanceKey());
      target.setBackPointerR9600To(this);
      target.addRef();
      if (notifyChanges) {
        RelationshipChangeModelDelta change =
            new RelationshipChangeModelDelta(
                Modeleventnotification_c.DELTA_ELEMENT_RELATED, this, target, "9600", "");
        Ooaofooa.getDefaultInstance().fireModelElementRelationChanged(change);
      }
    }
  }
コード例 #3
0
  // declare transform functions
  public void Configureparticipants(final Object p_Monitor) {
    Ooaofooa.log.println(
        ILogger.OPERATION,
        "Description Query",
        " Operation entered: DescriptionQuery::Configureparticipants");
    final ModelRoot modelRoot = getModelRoot();
    Query_c v_query = Query_c.getOneSQU_QOnR9600(this);

    Search_c.Gatherparticipants(p_Monitor, v_query.getId());
  } // End configureParticipants
コード例 #4
0
 public boolean evaluate(Object candidate) {
   Query_c selected = (Query_c) candidate;
   boolean retval = false;
   retval = (selected.getId().equals(m_p39598));
   return retval;
 }
コード例 #5
0
 public java.util.UUID getId() {
   if (IsSupertypeQuery != null) {
     return IsSupertypeQuery.getId();
   }
   return IdAssigner.NULL_UUID;
 }