Ticket #187 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Java model delta for playedBy bindings

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.3.2
Component: otmodel Version: 1.2.4
Keywords: Cc:

Description (last modified by stephan) (diff)

Changing a role's playedBy binding should be reflected in corresponding java model deltas.

The place to add this would be org.eclipse.jdt.internal.core.JavaElementDeltaBuilder#findContentChange, and the change should be classified as IJavaElementDelta.F_SUPER_TYPES.

Unfortunately, the SourceTypeElementInfo does not contain the necessary information about base classes. This would need to be added from CompilationUnitStructureRequestor#enterType. (Check if this would be inconsistent with the use of the OTModelManager in said enterType).

These deltas are needed, e.g., for updating callin markers. See #185

Change History

Changed 3 years ago by stephan

  • milestone changed from OTDT_2.0.0 to OTDT_1.3.0

Changed 3 years ago by stephan

  • milestone changed from OTDT_1.3.0 to OTDT_1.3.1

Changed 2 years ago by stephan

  • description modified (diff)
  • milestone changed from OTDT_1.3.1 to OTDT_1.3.2

Changed 2 years ago by stephan

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

Resolved in r22435 by

  • adding a field + accessors to SourceTypeElementInfo
  • letting CompilationUnitStructureRequestor pass this additional data (in createTypeInfo not enterType as planned); also in SourceIndexerRequestor#enterClass.
  • JavaElementDeltaBuilder finally creates the delta with flag F_SUPER_TYPES

Changed 2 years ago by stephan

See comment:3:ticket:185 for application of this fix for the callin marker creator.

Note: See TracTickets for help on using tickets.