commit | fd03d210e87a8b0ed7f9d9276e9745bbfa009c9d | [log] [tgz] |
---|---|---|
author | Lars Vogel <Lars.Vogel@vogella.com> | Tue Dec 21 15:20:55 2021 +0100 |
committer | Lars Vogel <Lars.Vogel@vogella.com> | Wed Dec 22 07:10:28 2021 -0500 |
tree | 116c60787d83b233793aa1132caa46e8435e8453 | |
parent | ee53eabc21d2a1703a4c4f5514dd76efd82d2ead [diff] |
Bug 577924 - e4 menu contribution template should define "always" at contribution strategy The e4 elements are defined with persistState=false so we should apply the fragment always instead of only initial. Change-Id: I2dce81dd536a345d9d913664c91f1ca54903d8d2 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/189050 Tested-by: PDE Bot <pde-bot@eclipse.org>
diff --git a/ui/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/e4/E4HandlerTemplate.java b/ui/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/e4/E4HandlerTemplate.java index e165dab..160851e 100644 --- a/ui/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/e4/E4HandlerTemplate.java +++ b/ui/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/e4/E4HandlerTemplate.java
@@ -112,7 +112,7 @@ extension.setId(getValue(KEY_PACKAGE_NAME) + ".fragment"); //$NON-NLS-1$ element.setName("fragment"); //$NON-NLS-1$ - element.setAttribute("apply", "initial"); //$NON-NLS-1$ //$NON-NLS-2$ + element.setAttribute("apply", "always"); //$NON-NLS-1$ //$NON-NLS-2$ element.setAttribute("uri", E4_FRAGMENT_FILE); //$NON-NLS-1$ extension.add(element);