Package org.mevenide.idea.global

Examples of org.mevenide.idea.global.MavenPluginsManager$MavenHomeListener


        }
    }

    private Report[] loadReports() {
        LOG.trace("Retrieving reports");
        final MavenPluginsManager plgMgr = MavenPluginsManager.getInstance(project);
        final PluginGoalContainer[] plugins = plgMgr.getPlugins();
        final Set<Report> reports = new HashSet<Report>(plugins.length);

        for (final PluginGoalContainer plugin : plugins) {
            final VirtualFile script = plugin.getScriptFile().getFile();
            if (script == null || !script.isValid() || !FileUtils.exists(script))
View Full Code Here


        cmndrPopup.add(action);

        final Runnable actionRegistrar = new Runnable() {
            public void run() {
                final ActionManager actMgr = ActionManager.getInstance();
                final MavenPluginsManager pluginsMgr = MavenPluginsManager.getInstance(project);
                final PluginGoalContainer[] plugins = pluginsMgr.getPlugins();
                for (GoalContainer plugin : plugins) {
                    final Goal[] goals = plugin.getGoals();
                    for (Goal goal : goals) {
                        final AnAction action = new GoalAction(goal);
                        if (actMgr.getAction(goal.getName()) == null)
View Full Code Here

                goals.get(plugin).add(goal);
            }
        }

        final MavenPluginsManager pluginsMgr = MavenPluginsManager.getInstance(project);
        final Runnable loader = new Runnable() {
            public void run() {
                final Set<Map.Entry<String, Map<String, Set<String>>>> entries = data.entrySet();
                for (Map.Entry<String, Map<String, Set<String>>> pomEntry : entries) {
                    final String url = pomEntry.getKey();
                    final Map<String, Set<String>> goals = pomEntry.getValue();

                    final Set<Map.Entry<String, Set<String>>> goalEntries = goals.entrySet();
                    for (Map.Entry<String, Set<String>> goalEntry : goalEntries) {
                        final String id = goalEntry.getKey();
                        final PluginGoalContainer plugin = pluginsMgr.getPlugin(id);
                        if (plugin == null)
                            continue;

                        final Set<String> pluginGoals = goalEntry.getValue();
                        for (String goalName : pluginGoals) {
View Full Code Here

        return pomNode;
    }

    private void parsePlugins() {
        pluginsNode.removeAllChildren();
        final MavenPluginsManager pluginsMgr = MavenPluginsManager.getInstance(project);
        final PluginGoalContainer[] plugins = pluginsMgr.getPlugins();

        //
        //sort the plugins by name
        //
        Arrays.sort(plugins, GOAL_CONTAINER_COMPARATOR);
View Full Code Here

TOP

Related Classes of org.mevenide.idea.global.MavenPluginsManager$MavenHomeListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.