eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[console] Completion proposal doesn't appear after dot #699

Closed eclipse-ocl-bot closed 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 345282 | | Status | CLOSED FIXED | | Importance | P3 normal | | Reported | May 10, 2011 11:09 EDT | | Modified | May 27, 2014 09:52 EDT | | Version | 3.1.0 | | Reporter | Adolfo Sanchez-Barbudo Herrera |

Description

Eclipse Modeling M7 + OCL Examples nightly.

In the Xtext Console, after selecting any model object, if I write "self." + ctrl + space no completion proposal appear. Then, if I write any other letter (for instance "self.g") + ctrl + space the completion proposal successfully appear.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 10, 2011 12:13

The Xtext guys take the view that unprefixed propsals offer too many alterantives so they don't offer anything by default.

It is up to me to get round to providing the appropriate customisation, which will be easier once the scoping is auto-generated.

eclipse-ocl-bot commented 1 month ago

By Adolfo Sanchez-Barbudo Herrera on May 10, 2011 13:45

Ok.

As extra info:

  1. I write "self.n" + ctrl + space.
  2. I remove one letter (press backspace) => "self." appear in the Xtext console writtable area.
  3. All the alternatives appear in the still visible popup dialog/box.

Regards,\ Adolfo.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 10, 2011 13:59

Interesting. That might be a way to make Xtext do the work anyway.

However when Xtext provides proposals, its looking for names with similar namespace characteristics. I'm not sure that the customized scoping offers all the possibilities. There are lots of thinhgs to choose from, but I doubt that everything is there. It's an area that I've not paid much attention to.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Feb 12, 2012 08:30

Many of the proposals are easily fixed by shared code correctly observing the scoping protocols. Pushed to master.

Scoped names such as A::B::C are a problem since they are curerently parsed as a list in a surrounding context. It may be necessary to restructure the grammar to make scoped name references child elements.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 02, 2012 15:29

In M6

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Apr 09, 2013 15:29

The specific report was finally fixed by Bug 405228; not an Xtext limitation after all.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 27, 2014 09:44

CLOSED after more than a year in RESOLVED state.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 27, 2014 09:52

and CLOSE