|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2005, 2022 IBM Corporation and others. |
| 2 | + * Copyright (c) 2005, 2025 IBM Corporation and others. |
3 | 3 | * |
4 | 4 | * This program and the accompanying materials |
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0 |
@@ -272,7 +272,12 @@ protected Map<String, Object> collectBreakpointProperties(IMemento memento) { |
272 | 272 |
|
273 | 273 | //collect attributes from the 'breakpoint' node |
274 | 274 | map.put(IImportExportConstants.IE_BP_ENABLED, memento.getBoolean(IImportExportConstants.IE_BP_ENABLED)); |
275 | | - map.put(IImportExportConstants.IE_BP_PERSISTANT, memento.getBoolean(IImportExportConstants.IE_BP_PERSISTANT)); |
| 275 | + if (memento.getBoolean(IImportExportConstants.IE_BP_PERSISTENT) != null) { |
| 276 | + map.put(IImportExportConstants.IE_BP_PERSISTENT, |
| 277 | + memento.getBoolean(IImportExportConstants.IE_BP_PERSISTENT)); |
| 278 | + } else { |
| 279 | + map.put(IImportExportConstants.IE_BP_PERSISTENT, memento.getBoolean("persistant")); //$NON-NLS-1$ |
| 280 | + } |
276 | 281 | map.put(IImportExportConstants.IE_BP_REGISTERED, memento.getBoolean(IImportExportConstants.IE_BP_REGISTERED)); |
277 | 282 |
|
278 | 283 | //collect attributes from the 'marker' node |
@@ -338,7 +343,7 @@ protected void restoreBreakpoint(IMarker marker, final Map<String, Object> attri |
338 | 343 | // create the breakpoint |
339 | 344 | breakpoint = fManager.createBreakpoint(marker); |
340 | 345 | breakpoint.setEnabled(((Boolean)attributes.get(IImportExportConstants.IE_BP_ENABLED)).booleanValue()); |
341 | | - breakpoint.setPersisted(((Boolean)attributes.get(IImportExportConstants.IE_BP_PERSISTANT)).booleanValue()); |
| 346 | + breakpoint.setPersisted(((Boolean)attributes.get(IImportExportConstants.IE_BP_PERSISTENT)).booleanValue()); |
342 | 347 | breakpoint.setRegistered(((Boolean)attributes.get(IImportExportConstants.IE_BP_REGISTERED)).booleanValue()); |
343 | 348 | fAdded.add(breakpoint); |
344 | 349 | if (fImportBreakpoints && fCreateWorkingSets && fCurrentWorkingSetProperty != null) { |
|
0 commit comments