本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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();
}