Java 类com.intellij.util.xml.ui.CommittablePanel 实例源码

项目:consulo-javaee    文件:JavaeeBaseEditor.java   
protected final void addContent(JPanel panel, CommittablePanel content) {
    panel.setLayout(new BorderLayout());
    panel.add(content.getComponent(), BorderLayout.CENTER);
    addComponent(content);
}
项目:consulo-javaee    文件:JavaeeBaseEditor.java   
protected final void addContent(JTabbedPane pane, CommittablePanel content, String title) {
    pane.add(title, content.getComponent());
    addComponent(content);
}
项目:consulo-javaee    文件:JavaeeBaseEditor.java   
protected final Splitter createSplitter(CommittablePanel first, CommittablePanel second, boolean vertical) {
    Splitter splitter = createSplitter(vertical);
    setFirstPanel(splitter, first);
    setSecondPanel(splitter, second);
    return splitter;
}
项目:consulo-javaee    文件:JavaeeBaseEditor.java   
protected final Splitter createSplitter(CommittablePanel first, JComponent second, boolean vertical) {
    Splitter splitter = createSplitter(vertical);
    setFirstPanel(splitter, first);
    splitter.setSecondComponent(second);
    return splitter;
}
项目:consulo-javaee    文件:JavaeeBaseEditor.java   
protected final Splitter createSplitter(JComponent first, CommittablePanel second, boolean vertical) {
    Splitter splitter = createSplitter(vertical);
    splitter.setFirstComponent(first);
    setSecondPanel(splitter, second);
    return splitter;
}
项目:consulo-javaee    文件:JavaeeBaseEditor.java   
private void setFirstPanel(Splitter splitter, CommittablePanel panel) {
    splitter.setFirstComponent(panel.getComponent());
    addComponent(panel);
}
项目:consulo-javaee    文件:JavaeeBaseEditor.java   
private void setSecondPanel(Splitter splitter, CommittablePanel panel) {
    splitter.setSecondComponent(panel.getComponent());
    addComponent(panel);
}