This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 257811
Collapse All | Expand All

(-)a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/configurations/Configuration.java (-4 / +5 lines)
Lines 155-166 Link Here
155
155
156
    @Override
156
    @Override
157
    public String toString() {
157
    public String toString() {
158
        StringBuilder sb = new StringBuilder(getDisplayName());
158
        // Please note that toString() is used in some UIs
159
        // And I can not be sure I know all the places it is used in a UI :(
159
        if (isDefault()) {
160
        if (isDefault()) {
160
            sb.append(' ').append(getString("ActiveTxt"));
161
            return getDisplayName() + " " + getString("ActiveTxt"); // NOI18N
162
        } else {
163
            return getDisplayName();
161
        }
164
        }
162
        sb.append(isValid() ? " [valid] @" : " [invalid] @").append(System.identityHashCode(this)); // NOI18N
163
        return sb.toString();
164
    }
165
    }
165
166
166
    public void addAuxObject(ConfigurationAuxObject pao) {
167
    public void addAuxObject(ConfigurationAuxObject pao) {

Return to bug 257811