Package org.mevenide.idea.project

Examples of org.mevenide.idea.project.PomManager


            }
        }
    }

    public void writeExternal(final Element pElt) throws WriteExternalException {
        final PomManager pomMgr = PomManager.getInstance(project);
        final VirtualFilePointer[] filePointers = pomMgr.getFilePointers();
        for (VirtualFilePointer pointer : filePointers) {
            final Element pomElt = new Element("pom");
            pomElt.setAttribute("url", pointer.getUrl());
            final ProjectJdk jdk = getJdk(pointer.getUrl());
            if (jdk != null)
View Full Code Here


        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }

        final PomManager pomMgr = PomManager.getInstance(project);
        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = pomMgr.getToolWindowComponent();
            if (ui == null) {
                pEvent.getPresentation().setEnabled(false);
                return;
            }
View Full Code Here

    public void actionPerformed(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null)
            return;

        final PomManager pomMgr = PomManager.getInstance(project);
        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = pomMgr.getToolWindowComponent();
            if (ui == null)
                return;

            final String[] projects = ui.getPomsWithSelectedGoals(false);
            final Goal[] goals = ui.getSelectedGoalsForPom(null, true);
View Full Code Here

        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }

        final PomManager pomMgr = PomManager.getInstance(project);
        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = pomMgr.getToolWindowComponent();
            if (ui == null) {
                pEvent.getPresentation().setEnabled(false);
                return;
            }
View Full Code Here

    public void actionPerformed(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null)
            return;

        final PomManager pomMgr = PomManager.getInstance(project);
        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = pomMgr.getToolWindowComponent();
            if (ui == null)
                return;

            final PomPluginGoalsManager plgMgr = PomPluginGoalsManager.getInstance(project);
View Full Code Here

        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }

        final PomManager pomMgr = PomManager.getInstance(project);
        final String url = getSelectedPomUrl(pEvent);
        if (pomMgr.contains(url))
            return;

        pomMgr.add(url);
    }
View Full Code Here

        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }

        final PomManager pomMgr = PomManager.getInstance(project);
        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = pomMgr.getToolWindowComponent();
            if (ui == null) {
                pEvent.getPresentation().setEnabled(false);
                return;
            }
View Full Code Here

    protected VirtualFile getPomFile(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null)
            return null;

        final PomManager pomMgr = PomManager.getInstance(getProject(pEvent));

        final String[] poms;
        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = pomMgr.getToolWindowComponent();
            if (ui != null)
                poms = ui.getPomsWithSelectedGoals(false);
            else
                poms = new String[0];
        }
        else
            poms = pomMgr.getFileUrls();

        final String pomUrl = PomUtils.selectPom(project, poms, DLG_TITLE, DLG_LABEL);
        return pomMgr.getFile(pomUrl);
    }
View Full Code Here

    public void actionPerformed(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null)
            return;

        final PomManager pomMgr = PomManager.getInstance(project);
        final String url = getSelectedPomUrl(pEvent);
        if (!pomMgr.contains(url))
            return;

        pomMgr.remove(url);
    }
View Full Code Here

            pEvent.getPresentation().setEnabled(false);
            return;
        }

        final VirtualFile file = getVirtualFile(pEvent);
        final PomManager pomMgr = PomManager.getInstance(project);

        final boolean enabled = file != null && !pomMgr.contains(file.getUrl());
        if (pEvent.getPlace().equalsIgnoreCase(PomManagerPanel.PLACE))
            pEvent.getPresentation().setEnabled(enabled);
        else
            pEvent.getPresentation().setVisible(enabled);
    }
View Full Code Here

TOP

Related Classes of org.mevenide.idea.project.PomManager

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.