package _VisualDVM.Visual.Windows;
import _VisualDVM.Global;
import _VisualDVM.Visual.Menus.VisualiserMenuBar;
import Visual_DVM_2021.Passes.PassCode;
import Common.Passes.Pass;
import _VisualDVM.Visual.Interface.DescriptionInterface;

import javax.swing.*;
public class DescriptionFields implements DescriptionInterface {
    public JSplitPane SC25;
    private JPanel content;
    private JToolBar descriptionTools;
    private JToolBar descriptionAdditionTools;
    private JPanel editorPanel;
    private JPanel additionPanel;
    public DescriptionFields() {
        LoadSplitters();
        descriptionAdditionTools.add(Global.mainModule.getPass(PassCode.AppendBugReportDescription).createButton());
        descriptionTools.add(Global.mainModule.getPass(PassCode.SaveBugReportDescription).createButton());
    }
    //---------
    @Override
    public void setEditorScroll(JScrollPane scroll_in) {
        editorPanel.add(scroll_in);
    }
    @Override
    public void setAdditionScroll(JScrollPane scroll_in) {
        additionPanel.add(scroll_in);
    }
    @Override
    public JPanel getContent() {
        return content;
    }
    private void createUIComponents() {
        // TODO: place custom component creation code here
        descriptionTools = new VisualiserMenuBar();
        descriptionAdditionTools = new VisualiserMenuBar();
    }
}
