Quickfixes

Capella offers a quickfix functionality. This functionality helps users to resolve some problems thrown by model validation warnings or errors. The quickfixes are available through a contextual menu command on a selected message (in the view Information) that provides one, or several, resolution proposals. The set of resolution proposals can be extended with additional specific quickfixes that can be contributed through an extension point.

The extension point is provided by:

The contribution to the extension point is done in the plugin.xml file of the plugin. Open this file and focus on the plugin.xml tab:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension point="org.polarsys.capella.core.validation.ui.ide.capellaQuickFix">
      <resolver
            class=""
            desc=""
            icon=""
            label="">
         <rules ruleId=""/>
      </resolver>
   </extension>
</plugin>

Detail of the different fields

Quickfix implementation

The AbstractCapellaMarkerResolution class provides some facilities to manage messages.

Sample

The quickfix for the rule DWF_D_41 set the given Class as Abstract