Actifsource

#6789 [Bug/TplEd] Exception if the focus change from LineContext to a ProtectedContext

Actifsource code generator for any programming language
Release: Actifsource V11.1.0

If inside a template the focus changes from a LineContext? to a ProtectedContext?, this exeption can occur:

ch.actifsource.util.AssertionFailure?: tried to set state while still notifying (null -> ch.actifsource.ui.templateeditor.templatetexteditor.templateoperationseditor.SelectorTemplateOperationEditorInput?@2e6b93fa)

    at ch.actifsource.util.Assert.fail(Assert.java:41)
    at ch.actifsource.ui.widget.util.ObservableStateCheckForNull?.setState(ObservableStateCheckForNull?.java:55)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractMainContentPageEditorInput?$SelectorInput?.setState(AbstractMainContentPageEditorInput?.java:47)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractMainContentPageEditorInput?.setSelectorEditorInput(AbstractMainContentPageEditorInput?.java:82)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ContextPropertyEditorUpdatingActiveContextModel?.updateSelector(AbstractTemplateSelectionModel?.java:120)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ContextPropertyEditorUpdatingActiveContextModel?.activeContextUpdated(AbstractTemplateSelectionModel?.java:109)
    at ch.actifsource.ui.templateeditor.selection.ActiveContextPathSelectionModel?.setActivePathElement(ActiveContextPathSelectionModel?.java:49)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ContextPropertyEditorUpdatingActiveContextModel?.setActivePathElement(AbstractTemplateSelectionModel?.java:103)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?.setActiveContextPathElement(AbstractTemplateSelectionModel?.java:489)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?.updateActiveContextIfInvalid(AbstractTemplateSelectionModel?.java:417)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?.access$1(AbstractTemplateSelectionModel?.java:414)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ActiveSelectionModelConnectionModel?.set(AbstractTemplateSelectionModel?.java:68)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?.setActiveTemplateOperationsEditorScope(AbstractTemplateSelectionModel?.java:483)
    at ch.actifsource.ui.templateeditor.selection.ActiveTemplateOperationEditorModel?.setTemplateOperationEditorScope(ActiveTemplateOperationEditorModel?.java:39)
    at ch.actifsource.ui.templateeditor.contextpropertyeditor.ContextSelectorEditor?.setInput(ContextSelectorEditor?.java:398)
    at ch.actifsource.ui.templateeditor.contextpropertyeditor.ContextSelectorEditor?.setInput(ContextSelectorEditor?.java:1)
    at ch.actifsource.ui.templateeditor.contextpropertyeditor.ContextPropertyEditor?.setEditor(ContextPropertyEditor?.java:137)
    at ch.actifsource.ui.templateeditor.contextpropertyeditor.ContextPropertyEditor?.setInput(ContextPropertyEditor?.java:122)
    at ch.actifsource.ui.templateeditor.templatetexteditor.filecontextpage.FileContextPageEditorConnection?$1.selectorEditorInputChanged(FileContextPageEditorConnection?.java:248)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractMainContentPageEditorInput?$SelectorInput?.doNotifyStateChanged(AbstractMainContentPageEditorInput?.java:36)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractMainContentPageEditorInput?$SelectorInput?.doNotifyStateChanged(AbstractMainContentPageEditorInput?.java:1)
    at ch.actifsource.ui.widget.util.ObservableStateCheckForNull?.notifyStateChanged(ObservableStateCheckForNull?.java:77)
    at ch.actifsource.ui.widget.util.ObservableStateCheckForNull?.resumeNotification(ObservableStateCheckForNull?.java:96)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractMainContentPageEditorInput?.resumeNotification(AbstractMainContentPageEditorInput?.java:110)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ContextPropertyEditorUpdatingActiveContextModel?.updateSelector(AbstractTemplateSelectionModel?.java:121)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ContextPropertyEditorUpdatingActiveContextModel?.activeContextUpdated(AbstractTemplateSelectionModel?.java:109)
    at ch.actifsource.ui.templateeditor.selection.ActiveContextPathSelectionModel?.setActivePathElement(ActiveContextPathSelectionModel?.java:49)
    at ch.actifsource.ui.templateeditor.selection.AbstractTemplateSelectionModel?$ContextPropertyEditorUpdatingActiveContextModel?.setActivePathElement(AbstractTemplateSelectionModel?.java:103)
    at ch.actifsource.ui.templateeditor.templatetexteditor.templateoperationseditor.TemplateOperationEditorInputScope?.makeContextActiveAndValidateSelection(TemplateOperationEditorInputScope?.java:92)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractLineContextRulerFigure?.handleClick(AbstractLineContextRulerFigure?.java:329)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractLineContextRulerFigure?.access$1(AbstractLineContextRulerFigure?.java:323)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.AbstractLineContextRulerFigure?$1.mousePressed(AbstractLineContextRulerFigure?.java:98)
    at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:935)
    at org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed(SWTEventDispatcher.java:242)
    at org.eclipse.draw2d.LightweightSystem?$EventHandler?.mouseDown(LightweightSystem?.java:523)
    at org.eclipse.swt.widgets.TypedListener?.handleEvent(TypedListener?.java:192)
    at org.eclipse.swt.widgets.EventTable?.sendEvent(EventTable?.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine?$9.run(PartRenderingEngine?.java:1113)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine?.run(PartRenderingEngine?.java:997)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle?.run(EclipseAppHandle?.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher?.runApplication(EclipseAppLauncher?.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher?.start(EclipseAppLauncher?.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter?.run(EclipseStarter?.java:354)
    at org.eclipse.core.runtime.adaptor.EclipseStarter?.run(EclipseStarter?.java:181)
    at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl?.invoke(NativeMethodAccessorImpl?.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426)