當前位置: 首頁>>代碼示例>>Java>>正文


Java Project.isDisposed方法代碼示例

本文整理匯總了Java中com.intellij.openapi.project.Project.isDisposed方法的典型用法代碼示例。如果您正苦於以下問題:Java Project.isDisposed方法的具體用法?Java Project.isDisposed怎麽用?Java Project.isDisposed使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.intellij.openapi.project.Project的用法示例。


在下文中一共展示了Project.isDisposed方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: highlightCurrentColumn

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
@Override
@Contract
public void highlightCurrentColumn(@NotNull final Editor editor) {
    Validate.notNull(editor);

    final Project project = editor.getProject();

    if (null == project) {
        return;
    }

    if (project.isDisposed()) {
        return;
    }

    final Language languageInEditor = PsiUtilBase.getLanguageInEditor(editor, project);

    if (languageInEditor instanceof ImpexLanguage) {
        this.highlightColumnOfValueUnderCaret(editor);
    }
}
 
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:22,代碼來源:DefaultImpexColumnHighlighterService.java

示例2: highlightCurrentHeader

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
@Override
@Contract(pure = false)
public void highlightCurrentHeader(@NotNull final Editor editor) {
    Validate.notNull(editor);

    final Project project = editor.getProject();

    if (null == project) {
        return;
    }

    if (project.isDisposed()) {
        return;
    }

    final Language languageInEditor = PsiUtilBase.getLanguageInEditor(editor, project);

    if (languageInEditor instanceof ImpexLanguage) {
        this.highlightHeaderOfValueUnderCaret(editor);
    }
}
 
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:22,代碼來源:DefaultImpexHeaderNameHighlighterService.java

示例3: getStudyToolWindow

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
@Nullable
public static StudyToolWindow getStudyToolWindow(@NotNull final Project project) {
  if (project.isDisposed()) return null;

  ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(StudyToolWindowFactory.STUDY_TOOL_WINDOW);
  if (toolWindow != null) {
    Content[] contents = toolWindow.getContentManager().getContents();
    for (Content content: contents) {
      JComponent component = content.getComponent();
      if (component != null && component instanceof StudyToolWindow) {
        return (StudyToolWindow)component;
      }
    }
  }
  return null;
}
 
開發者ID:medvector,項目名稱:educational-plugin,代碼行數:17,代碼來源:StudyUtils.java

示例4: getProject

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
private static ManProject getProject( Project project )
{
  if( project.isDisposed() )
  {
    return null;
  }

  ManProject manProject = PROJECTS.get( project );
  if( manProject == null )
  {
    manProject = new ManProject( project );
    manProject.init();
    PROJECTS.put( project, manProject );
  }
  return manProject;
}
 
開發者ID:manifold-systems,項目名稱:manifold-ij,代碼行數:17,代碼來源:ManProject.java

示例5: continueOpening

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
private void continueOpening(final Project project) {
    if (project.isDisposed()) {
        return;
    }
    registerAntListener(project);
    resetSpringGeneralSettings(project);
    fixBackOfficeJRebelSupport(project);
}
 
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:9,代碼來源:HybrisProjectManagerListener.java

示例6: runWhenInitialized

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
public static void runWhenInitialized(final Project project, final Runnable r) {
    if (project.isDisposed()) return;

    if (isNoBackgroundMode()) {
        r.run();
        return;
    }

    if (!project.isInitialized()) {
        StartupManager.getInstance(project).registerPostStartupActivity(DisposeAwareRunnable.create(r, project));
        return;
    }

    runDumbAware(project, r);
}
 
開發者ID:seedstack,項目名稱:intellij-plugin,代碼行數:16,代碼來源:NavigatorUtil.java

示例7: initTabs

import com.intellij.openapi.project.Project; //導入方法依賴的package包/類
void initTabs() {
    Project project = fileEditor.getProject();
    tabbedPane.removeAll();
    if (project.isDisposed()) {
        fileEditor.editorStrategy.getFileMap().clear();
        return;
    }

    addTab("Overview", scrollPane1);
    fileEditor.editorStrategy.initTab(this);

    setDefaultLanguageForEditor();

    setCellRenderer();
}
 
開發者ID:PioBeat,項目名稱:GravSupport,代碼行數:16,代碼來源:LanguageFileEditorGUI.java


注:本文中的com.intellij.openapi.project.Project.isDisposed方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。