Package com.intellij.openapi.project

Examples of com.intellij.openapi.project.Project


        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


              RES.get("refresh.pom.win.action.desc"),
              Icons.SYNC);
    }

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

            module = pModule;
        }

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

            final ToolWindow tw = SynchronizationResultsPanel.getInstance(project);
            if (tw == null)
View Full Code Here

    public Object getCellEditorValue() {
        return value;
    }

    public void actionPerformed(final ActionEvent pEvent) {
        final Project project = model.getXmlFile().getProject();
        final MavenReportManager mgr = MavenReportManager.getInstance(project);
        final Report[] reports = mgr.getReports();

        final SelectFromListDialog dlg = new SelectFromListDialog(
                project,
View Full Code Here

                  RES.get("close.problems.pane.desc"),
                  Icons.CANCEL);
        }

        public void actionPerformed(final AnActionEvent pEvent) {
            final Project project = getProject(pEvent);
            final ToolWindow tw = SynchronizationResultsPanel.getInstance(project);
            if (tw == null)
                return;

            tw.setAvailable(false, null);
View Full Code Here

    private class AddDependencyToIdeaRunnable implements Runnable {
        protected final LibraryTablesRegistrar libTableMgr = LibraryTablesRegistrar.getInstance();

        public void run() {
            final Project project = problem.getProject();
            final Module module = problem.getModule();
            final LibraryTable libTable = libTableMgr.getLibraryTable(project);

            //
            //if a library with the name of the dependency already exists,
View Full Code Here

              Icons.FIX_PROBLEMS,
              pProblemInfo);
    }

    public void actionPerformed(final AnActionEvent pEvent) {
        final Project project = problem.getProject();
        final PomModelManager modelMgr = PomModelManager.getInstance(project);
        final PsiProject psi = modelMgr.getPsiProject(problem.getPomUrl());
        if(psi == null)
            return;
       
View Full Code Here

                        RES.get("incorrect.root.tag", rootTagName));
            else
                return rootTag;
        }

        final Project project = file.getProject();
        final PsiManager psiMgr = PsiManager.getInstance(project);
        final PsiElementFactory eltFactory = psiMgr.getElementFactory();

        final String tagExpr = "<" + parseRootTagName() + "/>";
        rootTag = eltFactory.createTagFromText(tagExpr);
View Full Code Here

              Icons.ADD_DEPENDENCY);
    }

    @Override
    public void update(final AnActionEvent pEvent) {
        final Project project = getProject(pEvent);
        if (project == null)
            pEvent.getPresentation().setEnabled(false);
        else {
            final RepoPathElement[] selectedItems = getSelectedItems(RepoPathElement.LEVEL_VERSION);
            pEvent.getPresentation().setEnabled(selectedItems.length > 0);
View Full Code Here

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

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

        final String pomUrl = PomUtils.selectPom(project,
                                                 "Select POM",
View Full Code Here

TOP

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

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.