You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixing 'edit host configuration' menu item (#1456)
* fixing 'edit host configuration' menu item - due to listeners on object being disposed of when menu not open
* review comments
* further review comments, remove editBlockAction as instance var, return from createEditBlockLabelAndAction
(cherry picked from commit f05f3dc)
@@ -170,16 +154,21 @@ public void menuAboutToShow(IMenuManager manager) {
170
154
logSubMenu.setVisible(false);
171
155
noLogPlotterSubMenu.setVisible(true);
172
156
}
157
+
editBlockAction.setEnabled(canWrite);
173
158
updateAll(true);
174
159
}
175
160
});
176
-
StringeditBlockLabel = EDIT_BLOCK_PREFIX;
161
+
}
162
+
163
+
privateIActioncreateEditBlockLabelAndAction() {
164
+
StringeditBlockLabel = EDIT_BLOCK_PREFIX;
177
165
if (this.block.inComponent()) {
178
166
editBlockLabel += COMPONENT_SUFFIX;
179
167
} else {
180
168
editBlockLabel += CONFIGURATION_SUFFIX;
181
169
}
182
-
editBlockAction = newAction(editBlockLabel) {
170
+
171
+
returnnewAction(editBlockLabel) {
183
172
@Override
184
173
publicvoidrun() {
185
174
newEditBlockHandler(block.getName()).execute(null); //TODO e4 migrate: This will be added as a command which includes a shell at that time make this correct
@@ -204,9 +193,4 @@ public static boolean canAddPlot() {
0 commit comments