bundles/org.eclipse.packagedrone.repo.channel.web.description/src/org/eclipse/packagedrone/repo/channel/web/description/DescriptionController.java
@Override
    public List<MenuEntry> getViews ( final HttpServletRequest request, final Object object )
    {
        if ( ! ( object instanceof ChannelId ) )
        {
            return null;
        }

        final ChannelId channel = (ChannelId)object;

        final List<MenuEntry> result = new LinkedList<> ();

        final Map<String, Object> model = new HashMap<> ( 1 );
        model.put ( "channelId", channel.getId () );

        result.add ( new MenuEntry ( "Help", 100_000, "Description", 1_000, LinkTarget.createFromController ( DescriptionController.class, "channelDescription" ).expand ( model ), Modifier.DEFAULT, "comment" ) );

        return result;
    }
@Override
    public List<MenuEntry> getViews ( final HttpServletRequest request, final Object object )
    {
        if ( ! ( object instanceof ChannelId ) )
        {
            return null;
        }

        final ChannelId channel = (ChannelId)object;

        final List<MenuEntry> result = new LinkedList<> ();

        final Map<String, Object> model = new HashMap<> ( 1 );
        model.put ( "channelId", channel.getId () );

        result.add ( new MenuEntry ( "Help", 100_000, "Description", 1_000, LinkTarget.createFromController ( DescriptionController.class, "channelDescription" ).expand ( model ), Modifier.DEFAULT, "comment" ) );

        return result;
    }
@ Override public List < MenuEntry > getViews ( final HttpServletRequest request , final Object object ) { if ( ! ( object instanceof ChannelId ) ) { return null ; } final ChannelId channel = ( ChannelId ) object ; final List < MenuEntry > result = new LinkedList <> ( ) ; final Map < String , Object > model = new HashMap <> ( 1 ) ; model . put ( "channelId" , channel . getId ( ) ) ; result . add ( new MenuEntry ( "Help" , 100_000 , "Description" , 1_000 , LinkTarget . createFromController ( DescriptionController . class , "channelDescription" ) . expand ( model ) , Modifier . DEFAULT , "comment" ) ) ; return result ; }
interface extensions
interface extensions