blended-modeling / eatxt

Eclipse Public License 2.0
1 stars 1 forks source link

Suggest wrong elements when autocompletion #11

Closed Wilson008 closed 3 years ago

Wilson008 commented 3 years ago

for example: EAPackage aa ElectricalComponent a pin q part connector HardwareConnector category
isActive true hardwareComponentPrototype hardwareComponentPrototype All the autocompletion should be correct.

Wilson008 commented 3 years ago

The current solution is: We added type judgment conditions before getting scopes, specifically only when context's type matches and target's type matches would all to get scopes by getting the fully qualified name. Note that context and target are bonded in pairs. The special case here is about HardwareComponentPrototype underneath DesignLevel, so we have a dedicated process fragment for this which could be found in code (with comments).