/*******************************************************************************
 * Copyright (c) 2014, 2015 IBH SYSTEMS GmbH.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBH SYSTEMS GmbH - initial API and implementation
 *******************************************************************************/
package de.dentrassi.pm.storage.web.internal;

import java.util.LinkedList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import de.dentrassi.osgi.web.LinkTarget;
import de.dentrassi.pm.common.web.InterfaceExtender;
import de.dentrassi.pm.common.web.menu.MenuEntry;

public class AboutMenuExtender implements InterfaceExtender
{
    private final List<MenuEntry> entries = new LinkedList<> ();

    public AboutMenuExtender ()
    {
        this.entries.add ( new MenuEntry ( null, 0, "About", Integer.MAX_VALUE, new LinkTarget ( "https://github.com/ctron/package-drone/wiki" ), null, null, true ) );
    }

    @Override
    public List<MenuEntry> getMainMenuEntries ( final HttpServletRequest request )
    {
        return this.entries;
    }
}

@@ -1030,23 +1030,13 @@
 y ( 
-null, 0, %22About
+%22Help
 %22, I
@@ -1052,16 +1052,31 @@
 X_VALUE,
+ %22Wiki%22, 1_000,
  new Lin
@@ -1156,16 +1156,353 @@
 ue ) );%0A
+        this.entries.add ( new MenuEntry ( %22Help%22, Integer.MAX_VALUE, %22Documentation%22, 1_000, new LinkTarget ( %22http://doc.packagedrone.org/book%22 ), null, null, true ) );%0A        this.entries.add ( new MenuEntry ( %22Help%22, Integer.MAX_VALUE, %22About%22, Integer.MAX_VALUE, new LinkTarget ( %22http://packagedrone.org%22 ), null, null, true ) );%0A
     %7D%0A%0A 

add a bit more help in the menu bar