Package com.intellij.openapi.project

Examples of com.intellij.openapi.project.Project


  }

  @Nullable
  protected IssueTree getCurrentIssueTree()
  {
    final Project project = RevuUtils.getProject();

    return (project == null) ? null :
      project.getComponent(RevuToolWindowManager.class).getSelectedReviewBrowsingForm().getIssueTree();
  }
View Full Code Here


public class CollapseIssueTreeAction extends AnAction
{
  @Override
  public void actionPerformed(AnActionEvent e)
  {
    Project project = e.getData(PlatformDataKeys.PROJECT);
    if (project != null)
    {
      project.getComponent(RevuToolWindowManager.class).getSelectedReviewBrowsingForm().getIssueTree().collapseAll();
    }
  }
View Full Code Here

  }

  @Override
  protected void selectionChanged(@Nullable IssueTree issueTree, @Nullable IIssueTreeFilter item)
  {
    final Project project = RevuUtils.getProject();
    IssueBrowsingPane browsingPane = project.getComponent(RevuToolWindowManager.class).getSelectedReviewBrowsingForm();

    browsingPane.showFilter(item);
  }
View Full Code Here

*/
@SuppressWarnings("ComponentNotRegistered")
public class HighlightElementAndReferences extends AnAction {
  public void actionPerformed(AnActionEvent e) {

    final Project project = e.getProject();
    final FileEditorManager editorManager =
        FileEditorManager.getInstance(project);
    final HighlightManager highlightManager =
        HighlightManager.getInstance(project);
    final EditorColorsManager editorColorsManager =
View Full Code Here

    VirtualFile[] files = rootModel.getContentRoots();
    if (files.length > 0) {
      final VirtualFile contentRoot = files[0];

      final Project project = rootModel.getProject();
      myProjectName = project.getName();

      StartupManager.getInstance(project).runWhenProjectIsInitialized(new DumbAwareRunnable() {
        public void run() {
          ApplicationManager.getApplication().invokeLater(new Runnable() {
            public void run() {
View Full Code Here

    return indent.toString();
  }

  public void actionPerformed(AnActionEvent event) {
    Editor editor = event.getData(PlatformDataKeys.EDITOR);
    Project project = event.getData(PlatformDataKeys.PROJECT);

    DialogBuilder dialogBuilder = new DialogBuilder(project);
    dialogBuilder.setTitle("Formatting Block structure");

    final String text = editor != null ? editor.getDocument().getText() : "";
View Full Code Here

  }

  private SubmittedReportInfo submit(IdeaLoggingEvent[] ideaLoggingEvents, String description, String user,
                                     Component component) {
    final DataContext dataContext = DataManager.getInstance().getDataContext(component);
    final Project project = PlatformDataKeys.PROJECT.getData(dataContext);
    final IdeaLoggingEvent ideaLoggingEvent = ideaLoggingEvents[0];
    final String throwableText = ideaLoggingEvent.getThrowableText();
    this.myDescription = throwableText.substring(0, Math.min(Math.max(80, throwableText.length()), 80));

View Full Code Here

  }

  private static PsiClass getPsiClass(PsiElement psiElement, PsiClass wrapperClass,
      PsiType psiFieldType) {
    PsiClassType psiClassType = (PsiClassType) psiFieldType;
    Project project = psiElement.getProject();
    JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(project);
    GlobalSearchScope globalSearchScope = GlobalSearchScope.allScope(project);

    PsiClass lazyClass = javaPsiFacade.findClass(CLASS_LAZY, globalSearchScope);
    PsiClass providerClass = javaPsiFacade.findClass(CLASS_PROVIDER, globalSearchScope);
View Full Code Here

      fileBgColor = UIUtil.getListSelectionBackground();
    } else {
      VirtualFile virtualFile =
          usage instanceof UsageInFile ? ((UsageInFile) usage).getFile() : null;
      if (virtualFile != null) {
        Project project = myUsageView.getProject();
        PsiFile psiFile = PsiManager.getInstance(project).findFile(virtualFile);
        if (psiFile != null && psiFile.isValid()) {
          final Color color = FileColorManager.getInstance(project).getRendererBackground(psiFile);
          if (color != null) fileBgColor = color;
        }
View Full Code Here

    myUsageViewSettings.GROUP_BY_SCOPE = false;
  }

  @Override
  public void actionPerformed(AnActionEvent e) {
    final Project project = e.getData(PlatformDataKeys.PROJECT);
    if (project == null) return;

    Runnable searchEverywhere = mySearchEverywhereRunnable;
    mySearchEverywhereRunnable = null;
    hideHints();
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.