本文整理匯總了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();
}