Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 305365 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/dsf/debug/service/IFormattedValues.java (-7 / +7 lines)
Lines 117-137 Link Here
117
        private String fEditableValue;
117
        private String fEditableValue;
118
        
118
        
119
        public FormattedValueDMData(String value) {
119
        public FormattedValueDMData(String value) {
120
            fValue = value;
120
        	this(value, value);
121
            fEditableValue = value;
122
        }
123
        
124
        public String getFormattedValue() {
125
            return fValue;
126
        }
121
        }
127
        
122
        
128
        /**
123
        /**
129
		 * @since 2.1
124
		 * @since 2.1
130
		 */
125
		 */
131
        public void setEditableValue(String editableValue) {
126
        public FormattedValueDMData(String value, String editableValue) {
127
        	fValue = value;
132
        	fEditableValue = editableValue;
128
        	fEditableValue = editableValue;
133
        }
129
        }
134
        
130
        
131
        public String getFormattedValue() {
132
            return fValue;
133
        }
134
        
135
        /**
135
        /**
136
		 * @since 2.1
136
		 * @since 2.1
137
		 */
137
		 */
(-)src/org/eclipse/cdt/dsf/debug/ui/viewmodel/variable/SyncVariableDataAccess.java (-5 / +9 lines)
Lines 376-386 Link Here
376
        private String fFormatId;
376
        private String fFormatId;
377
        private boolean fEditable;
377
        private boolean fEditable;
378
378
379
        public GetFormattedValueValueQuery(IFormattedDataDMContext dmc, String formatId) {
380
        	this(dmc, formatId, false);
381
        }
382
379
        public GetFormattedValueValueQuery(IFormattedDataDMContext dmc, String formatId, boolean editable) {
383
        public GetFormattedValueValueQuery(IFormattedDataDMContext dmc, String formatId, boolean editable) {
380
            super();
384
        	super();
381
            fDmc = dmc;
385
        	fDmc = dmc;
382
            fFormatId = formatId;
386
        	fFormatId = formatId;
383
            fEditable = editable;
387
        	fEditable = editable;
384
        }
388
        }
385
389
386
        @Override
390
        @Override
Lines 430-436 Link Here
430
    	return getValue(element, formatId, true);
434
    	return getValue(element, formatId, true);
431
    }
435
    }
432
    
436
    
433
    public String getValue(Object element, String formatId, boolean editable) {
437
    private String getValue(Object element, String formatId, boolean editable) {
434
438
435
        /*
439
        /*
436
         * Get the DMC and the session. If element is not an register DMC, or
440
         * Get the DMC and the session. If element is not an register DMC, or

Return to bug 305365