Community
Participate
Working Groups
There is a defect in the logger that occurs when running STEM headless (it will not pick up custom compartments defined in the model builder). A workaround enables the normal STEM logger (just drag it into the scenario) and eliminates custom headless logger (so users will not need the `-log` flag in the headless command). The problem arises because the model (and it's value provider) are not being loaded early enough. A work around is to add one line of code to the generated class {YOUR_MODEL}BEditPlugin$Implementation to instantiate a new {YOUR_MODEL}RelativeValueProviderAdapterFactory() in the constructor for {YOUR_MODEL}BEditPlugin$Implementation. The model builder should be updated to add this line of code automatically. Please find an example below. Also need to add an import for {YOUR_MODEL}RelativeValueProviderAdapterFactory. public final class {YOUR_MODEL}BEditPlugin extends EMFPlugin { . . . /** * The actual implementation of the Eclipse <b>Plugin</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public static class Implementation extends EclipseUIPlugin { /** * Creates an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public Implementation() { super(); // Remember the static instance. // plugin = this; >>>>>> new {YOUR_MODEL}RelativeValueProviderAdapterFactory(); } } }