本文整理汇总了Java中com.intellij.openapi.module.ModuleComponent类的典型用法代码示例。如果您正苦于以下问题:Java ModuleComponent类的具体用法?Java ModuleComponent怎么用?Java ModuleComponent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModuleComponent类属于com.intellij.openapi.module包,在下文中一共展示了ModuleComponent类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: projectOpened
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void projectOpened() {
for (ModuleComponent component : getComponentInstancesOfType(ModuleComponent.class)) {
try {
component.projectOpened();
}
catch (Exception e) {
LOG.error(e);
}
}
}
示例2: projectClosed
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void projectClosed() {
List<ModuleComponent> components = getComponentInstancesOfType(ModuleComponent.class);
for (int i = components.size() - 1; i >= 0; i--) {
try {
components.get(i).projectClosed();
}
catch (Throwable e) {
LOG.error(e);
}
}
}
示例3: moduleAdded
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void moduleAdded() {
isModuleAdded = true;
for (ModuleComponent component : getComponentInstancesOfType(ModuleComponent.class)) {
component.moduleAdded();
}
}
示例4: projectOpened
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void projectOpened() {
for (ModuleComponent component : getComponents(ModuleComponent.class)) {
try {
component.projectOpened();
}
catch (Exception e) {
LOG.error(e);
}
}
}
示例5: projectClosed
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void projectClosed() {
List<ModuleComponent> components = new ArrayList<ModuleComponent>(Arrays.asList(getComponents(ModuleComponent.class)));
Collections.reverse(components);
for (ModuleComponent component : components) {
try {
component.projectClosed();
}
catch (Exception e) {
LOG.error(e);
}
}
}
示例6: moduleAdded
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void moduleAdded() {
isModuleAdded = true;
for (ModuleComponent component : getComponents(ModuleComponent.class)) {
component.moduleAdded();
}
}
示例7: projectOpened
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void projectOpened() {
for (ModuleComponent component : getComponents(ModuleComponent.class)) {
try {
component.projectOpened();
}
catch (Exception e) {
LOGGER.error(e);
}
}
}
示例8: projectClosed
import com.intellij.openapi.module.ModuleComponent; //导入依赖的package包/类
@Override
public void projectClosed() {
final ModuleComponent[] components = ArrayUtil.reverseArray(getComponents(ModuleComponent.class));
for (ModuleComponent component : components) {
try {
component.projectClosed();
}
catch (Exception e) {
LOGGER.error(e);
}
}
}