当前位置: 首页>>代码示例>>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;未经允许,请勿转载。