Package com.intellij.openapi.project

Examples of com.intellij.openapi.project.Project


              Icons.ADD_DEPENDENCY);
    }

    @Override
    public void update(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }
View Full Code Here


            pEvent.getPresentation().setEnabled(goals.length > 0);
        }
    }

    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())) {
View Full Code Here

              Icons.REMOVE_DEPENDENCY);
    }

    @Override
    public void update(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }
View Full Code Here

            pEvent.getPresentation().setEnabled(projects.length > 0);
        }
    }

    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())) {
View Full Code Here

              RES.get("add.pom.action.desc"),
              Icons.ADD_DEPENDENCY);
    }

    public void actionPerformed(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }
View Full Code Here

        super(pText, pDescription, pIcon);
    }

    @Override
    public void update(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null) {
            pEvent.getPresentation().setEnabled(false);
            return;
        }
View Full Code Here

    }

    public void actionPerformed(final AnActionEvent pEvent) {
        final Goal[] goals = getGoals(pEvent);
        final VirtualFile file = getPomFile(pEvent);
        final Project project = getProject(pEvent);
        if (project != null && goals != null && goals.length > 0 && file != null && file.isValid() && !file.isDirectory())
            PomPluginGoalsManager.getInstance(project).execute(file, goals);
    }
View Full Code Here

        if (project != null && goals != null && goals.length > 0 && file != null && file.isValid() && !file.isDirectory())
            PomPluginGoalsManager.getInstance(project).execute(file, goals);
    }

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

        final PomManager pomMgr = PomManager.getInstance(getProject(pEvent));
View Full Code Here

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

    protected Goal[] getGoals(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null)
            return new Goal[0];

        if (PomManagerPanel.PLACE.equals(pEvent.getPlace())) {
            final PomManagerPanel ui = PomManager.getInstance(project).getToolWindowComponent();
View Full Code Here

              RES.get("remove.pom.action.desc"),
              Icons.REMOVE_DEPENDENCY);
    }

    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);
View Full Code Here

TOP

Related Classes of com.intellij.openapi.project.Project

Copyright © 2015 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.