Java 类com.intellij.lang.ant.config.explorer.AntExplorer 实例源码

项目:hybris-integration-intellij-idea-plugin    文件:AntTreeUpdatingHack.java   
@Nullable
private static AbstractTreeBuilder getAntTreeBuilder(final AntExplorer antExplorer) {
    final JTree tree = UIUtil.findComponentOfType(antExplorer, JTree.class);

    if (tree == null) {
        LOG.info("Cannot get tree object from AntExplorer");
        return null;
    }
    final AbstractTreeBuilder antTreeBuilder = AbstractTreeBuilder.getBuilderFor(tree);

    if (antTreeBuilder == null) {
        LOG.info("Cannot get Ant tree builder");
        return null;
    }
    if (antTreeBuilder.isDisposed()) {
        LOG.info("Ant tree builder is disposed");
        return null;
    }
    return antTreeBuilder;
}
项目:hybris-integration-intellij-idea-plugin    文件:AntTreeUpdatingHack.java   
@Nullable
private static AntExplorer getAntExplorer(final @NotNull ToolWindow antToolWindow) {
    final AntExplorer antExplorer = Arrays
        .stream(antToolWindow.getContentManager().getContents())
        .map(content -> {
            final JComponent component = content.getComponent();
            return component instanceof AntExplorer ? (AntExplorer) component : null;
        })
        .filter(Objects::nonNull)
        .findFirst()
        .orElse(null);

    if (antExplorer == null) {
        LOG.info("Cannot get AntExplorer object");
    }
    return antExplorer;
}
项目:intellij-ce-playground    文件:AntBuildFilePropertiesAction.java   
public AntBuildFilePropertiesAction(AntExplorer antExplorer) {
  super(AntBundle.message("build.file.properties.action.name"),
        AntBundle.message("build.file.properties.action.description"),
        AntIcons.Properties);
  myAntExplorer = antExplorer;
  registerCustomShortcutSet(CommonShortcuts.ALT_ENTER, myAntExplorer);
}
项目:intellij-ce-playground    文件:AntToolWindowFactory.java   
@Override
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {
  AntExplorer explorer = new AntExplorer(project);
  final ContentManager contentManager = toolWindow.getContentManager();
  final Content content = contentManager.getFactory().createContent(explorer, null, false);
  contentManager.addContent(content);
  Disposer.register(project, explorer);
}
项目:tools-idea    文件:AntBuildFilePropertiesAction.java   
public AntBuildFilePropertiesAction(AntExplorer antExplorer) {
  super(AntBundle.message("build.file.properties.action.name"),
        AntBundle.message("build.file.properties.action.description"),
        AllIcons.Ant.Properties);
  myAntExplorer = antExplorer;
  registerCustomShortcutSet(CommonShortcuts.ALT_ENTER, myAntExplorer);
}
项目:tools-idea    文件:AntToolWindowFactory.java   
@Override
public void createToolWindowContent(Project project, ToolWindow toolWindow) {
  AntExplorer explorer = new AntExplorer(project);
  final ContentManager contentManager = toolWindow.getContentManager();
  final Content content = contentManager.getFactory().createContent(explorer, null, false);
  contentManager.addContent(content);
  Disposer.register(project, explorer);
}
项目:consulo-apache-ant    文件:AntBuildToolWindowFactory.java   
@Override
public void createToolWindowContent(Project project, ToolWindow toolWindow)
{
    AntExplorer explorer = new AntExplorer(project);
    final ContentManager contentManager = toolWindow.getContentManager();
    final Content content = contentManager.getFactory().createContent(explorer, null, false);
    contentManager.addContent(content);
    Disposer.register(project, explorer);
}
项目:consulo-apache-ant    文件:AntBuildFilePropertiesAction.java   
public AntBuildFilePropertiesAction(AntExplorer antExplorer) {
  super(AntBundle.message("build.file.properties.action.name"),
        AntBundle.message("build.file.properties.action.description"),
    ApacheAntIcons.Properties);
  myAntExplorer = antExplorer;
  registerCustomShortcutSet(CommonShortcuts.ALT_ENTER, myAntExplorer);
}
项目:intellij-ce-playground    文件:RemoveBuildFileAction.java   
public RemoveBuildFileAction(AntExplorer antExplorer) {
  super(AntBundle.message("remove.build.file.action.name"));
  myAntExplorer = antExplorer;
}
项目:tools-idea    文件:RemoveBuildFileAction.java   
public RemoveBuildFileAction(AntExplorer antExplorer) {
  super(AntBundle.message("remove.build.file.action.name"));
  myAntExplorer = antExplorer;
}
项目:consulo-apache-ant    文件:RemoveBuildFileAction.java   
public RemoveBuildFileAction(AntExplorer antExplorer) {
  super(AntBundle.message("remove.build.file.action.name"));
  myAntExplorer = antExplorer;
}