iets3.opensource icon indicating copy to clipboard operation
iets3.opensource copied to clipboard

Disable intentions of ISolvable

Open depd18 opened this issue 7 months ago • 4 comments

In my current project i would like to be able to disable intentions that occur from the IETS3 framework , for example intentions of group Solver.

Image

This is also the case for:

depd18 avatar Jul 07 '25 09:07 depd18

@kbirken is it possible to make those actions "opt in" by default?

@depd18 please have a look at the isApplicable condition to figure out if you could customize things. In case you already have custom root concepts in the following hierarchy

Image

you could override the isSolverEnabledUnderThisRoot() for your concept.

arimer avatar Jul 07 '25 09:07 arimer

@depd18 could you also please tell which version of iets3 you are using?

arimer avatar Jul 07 '25 09:07 arimer

The iets3 version is - 2022.2.10704.a86ee4e

depd18 avatar Jul 07 '25 13:07 depd18

Also, be aware that 2022.2 is running out of maintenance. Consider migrating to one of the newever versions rather sooner than later.

arimer avatar Jul 08 '25 08:07 arimer

Intentions can be switched off in the settings on page "Editor > MPS Intentions", e.g.:

Image

I would assume that there is a way to set this programmatically for some project, but I did not research it yet. But I would assume this is the way to go if intentions should be disabled.

kbirken avatar Dec 04 '25 16:12 kbirken

I would assume that there is a way to set this programmatically for some project, but I did not research it yet.

IntentionsManager manager = IntentionsManager.getInstance(); 
node<BaseIntentionDeclaration> intentionDeclaration = ...
manager.disableIntention(intentionDeclaration.getGeneratedId());

alexanderpann avatar Dec 12 '25 09:12 alexanderpann