本文整理汇总了Java中com.intellij.openapi.project.Project.getComponent方法的典型用法代码示例。如果您正苦于以下问题:Java Project.getComponent方法的具体用法?Java Project.getComponent怎么用?Java Project.getComponent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.project.Project
的用法示例。
在下文中一共展示了Project.getComponent方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configureProject
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
@Override
public void configureProject(@NotNull final Project project, @NotNull final VirtualFile baseDir,
@NotNull PyNewProjectSettings settings,
@NotNull Module module,
@Nullable final PyProjectSynchronizer synchronizer) {
final Course course = getCourse(project, mySettingsPanel);
EduUsagesCollector.projectTypeCreated(CCUtils.COURSE_MODE);
final CCProjectComponent component = project.getComponent(CCProjectComponent.class);
component.registerListener();
final PsiDirectory projectDir = PsiManager.getInstance(project).findDirectory(baseDir);
if (projectDir == null) return;
new WriteCommandAction.Simple(project) {
@Override
protected void run() throws Throwable {
createTestHelper(project, projectDir);
PsiDirectory lessonDir = new CCCreateLesson().createItem(null, project, projectDir, course);
if (lessonDir == null) {
LOG.error("Failed to create lesson");
return;
}
new CCCreateTask().createItem(null, project, lessonDir, course);
}
}.execute();
}
示例2: createToolWindowContent
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
@Override
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {
final DateTimeConverterView view = project.getComponent(DateTimeConverterView.class);
view.getModel().addRow(DateTimeUtil.nowGasDay());
final Content content = ContentFactory.SERVICE.getInstance().createContent(view.getComponent(), "", false);
content.setCloseable(true);
toolWindow.getContentManager().addContent(content);
}
示例3: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
public static ReactNativeConsole getInstance(Project project) {
return project.getComponent(ReactNativeConsole.class);
}
示例4: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
public static ReactNativeTerminal getInstance(Project project) {
return project.getComponent(ReactNativeTerminal.class);
}
示例5: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
@Nonnull
public static GuiceManager getInstance(@Nonnull Project project) {
return project.getComponent(GuiceManager.class);
}
示例6: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
public static BPMNPaletteToolWindowManager getInstance(Project project) {
return project.getComponent(BPMNPaletteToolWindowManager.class);
}
示例7: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
public static SeedStackNavigator getInstance(Project project) {
return project.getComponent(SeedStackNavigator.class);
}
示例8: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
public static SettingService getInstance(Project project) {
return project.getComponent(SettingService.class);
}
示例9: getInstance
import com.intellij.openapi.project.Project; //导入方法依赖的package包/类
/**
* Returns the bucklescript instance for the specified project.
*
* @param project the project for which the bucklescript is requested.
* @return the bucklescript instance.
*/
public static Bucklescript getInstance(Project project) {
return project.getComponent(Bucklescript.class);
}