package org.nakedobjects.object.help;

import org.nakedobjects.object.reflect.MemberIdentifier;

public class HelpManagerAssist implements HelpManager {
    private HelpManager decorated;
    private boolean showIdentifier = false;
    
    public void setShowIdentifier(boolean showIdentifier) {
        this.showIdentifier = showIdentifier;
    }
    
    public void setDecorated(HelpManager decorated) {
        this.decorated = decorated;
    }
    
    public String help(MemberIdentifier identifier) {
        String help = "";
        if(decorated != null) {
            help = decorated.help(identifier);
        }
        return showIdentifier ?  (identifier.toString() + "\n\n") : "" + help;
    }

    
}


/*
Naked Objects - a framework that exposes behaviourally complete
business objects directly to the user.
Copyright (C) 2000 - 2005  Naked Objects Group Ltd

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

The authors can be contacted via www.nakedobjects.org (the
registered address of Naked Objects Group is Kingsway House, 123 Goldworth
Road, Woking GU21 1NR, UK).
*/
@@ -678,18 +678,16 @@
 () + %22%5Cn
-%5Cn
 %22) : %22%22 

Removed addition whitespace from help text.