Java 类com.intellij.ui.PlaceHolder 实例源码

项目:intellij-ce-playground    文件:ViewStructureAction.java   
@Nullable
public static FileStructurePopup createPopup(@NotNull Project project, @NotNull FileEditor fileEditor) {
  StructureViewBuilder structureViewBuilder = fileEditor.getStructureViewBuilder();
  if (structureViewBuilder == null) return null;
  StructureView structureView = structureViewBuilder.createStructureView(fileEditor, project);
  StructureViewModel model = structureView.getTreeModel();
  if (model instanceof PlaceHolder) {
    //noinspection unchecked
    ((PlaceHolder)model).setPlace(TreeStructureUtil.PLACE);
  }
  return createStructureViewPopup(project, fileEditor, structureView);
}
项目:tools-idea    文件:ViewStructureAction.java   
@Nullable
public static FileStructurePopup createPopup(final Editor editor, Project project, @Nullable Navigatable navigatable, final FileEditor fileEditor) {
  final StructureViewBuilder structureViewBuilder = fileEditor.getStructureViewBuilder();
  if (structureViewBuilder == null) return null;
  StructureView structureView = structureViewBuilder.createStructureView(fileEditor, project);
  final StructureViewModel model = structureView.getTreeModel();
  if (model instanceof PlaceHolder) {
    //noinspection unchecked
    ((PlaceHolder)model).setPlace(PLACE);
  }
  return createStructureViewPopup(model, editor, project, navigatable, structureView);
}
项目:consulo    文件:ViewStructureAction.java   
@Nullable
public static FileStructurePopup createPopup(@Nonnull Project project, @Nonnull FileEditor fileEditor) {
  StructureViewBuilder structureViewBuilder = fileEditor.getStructureViewBuilder();
  if (structureViewBuilder == null) return null;
  StructureView structureView = structureViewBuilder.createStructureView(fileEditor, project);
  StructureViewModel model = structureView.getTreeModel();
  if (model instanceof PlaceHolder) {
    //noinspection unchecked
    ((PlaceHolder)model).setPlace(TreeStructureUtil.PLACE);
  }
  return createStructureViewPopup(project, fileEditor, structureView);
}
项目:intellij-ce-playground    文件:TreeStructureUtil.java   
public static boolean isInStructureViewPopup(@NotNull PlaceHolder<String> model) {
  return PLACE.equals(model.getPlace());
}
项目:tools-idea    文件:ViewStructureAction.java   
public static boolean isInStructureViewPopup(@NotNull PlaceHolder<String> model) {
  return PLACE.equals(model.getPlace());
}
项目:consulo    文件:TreeStructureUtil.java   
public static boolean isInStructureViewPopup(@Nonnull PlaceHolder<String> model) {
  return PLACE.equals(model.getPlace());
}