/*
 * The MIT License
 * 
 * Copyright (c) 2011-2012, Jesse Farinacci, Frederic Gurr
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package hudson.views.tabbar;

import hudson.Extension;
import hudson.views.ViewsTabBar;
import hudson.views.ViewsTabBarDescriptor;

import javax.inject.Inject;

/**
 * This plugin provides an alternate rendering of the Views bar which runs along
 * the top of all views. This plugin is useful for instances which have a very
 * large number of views and want a compact rendering.
 * 
 * @author <a href="mailto:jieryn@gmail.com">Jesse Farinacci</a>
 * @since 1.0
 */
public final class DropDownViewsTabBar extends ViewsTabBar {
    @Extension
    public static class DescriptorImpl extends ViewsTabBarDescriptor {
        @Override
        public String getDisplayName() {
            return Messages.DisplayName();
        }
    }

    @Inject
    private DropDownGlobalConfiguration dropDownGlobalConfiguration;

    public DropDownGlobalConfiguration getDropDownGlobalConfiguration() {
        return dropDownGlobalConfiguration;
    }
}

/*
 * The MIT License
 * 
 * Copyright (c) 2011-2012, Jesse Farinacci, Frederic Gurr
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package hudson.views.tabbar;

import hudson.Extension;
import hudson.views.ViewsTabBar;
import hudson.views.ViewsTabBarDescriptor;

import javax.inject.Inject;

import org.kohsuke.stapler.DataBoundConstructor;

/**
 * This plugin provides an alternate rendering of the Views bar which runs along
 * the top of all views. This plugin is useful for instances which have a very
 * large number of views and want a compact rendering.
 * 
 * @author <a href="mailto:jieryn@gmail.com">Jesse Farinacci</a>
 * @since 1.0
 */
public final class DropDownViewsTabBar extends ViewsTabBar {
    @Extension
    public static class DescriptorImpl extends ViewsTabBarDescriptor {
        @Override
        public String getDisplayName() {
            return Messages.DisplayName();
        }
    }

    @DataBoundConstructor
    public DropDownViewsTabBar() {
        super();
    }

    @Inject
    private DropDownGlobalConfiguration dropDownGlobalConfiguration;

    public DropDownGlobalConfiguration getDropDownGlobalConfiguration() {
        return dropDownGlobalConfiguration;
    }
}

add missing @DBC