2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.UI.Main;
|
2024-10-09 22:01:19 +03:00
|
|
|
import _VisualDVM.Visual.Menus.VisualiserMenuBar;
|
2023-11-19 02:12:44 +03:00
|
|
|
import Visual_DVM_2021.Passes.PassCode_2021;
|
|
|
|
|
import Visual_DVM_2021.Passes.Pass_2021;
|
2024-10-09 22:01:19 +03:00
|
|
|
import _VisualDVM.Visual.Interface.CommentInterface;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
public class CommentFields implements CommentInterface {
|
|
|
|
|
public JSplitPane SC26;
|
|
|
|
|
private JPanel content;
|
|
|
|
|
private JToolBar commentTools;
|
|
|
|
|
private JToolBar commentAdditionTools;
|
|
|
|
|
private JPanel editorPanel;
|
|
|
|
|
private JPanel additionPanel;
|
|
|
|
|
public CommentFields() {
|
|
|
|
|
LoadSplitters();
|
|
|
|
|
commentTools.add(Pass_2021.passes.get(PassCode_2021.SaveBugReportComment).createButton());
|
|
|
|
|
commentAdditionTools.add(Pass_2021.passes.get(PassCode_2021.AppendBugReportComment).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
|
|
|
|
|
commentTools = new VisualiserMenuBar();
|
|
|
|
|
commentAdditionTools = new VisualiserMenuBar();
|
|
|
|
|
}
|
|
|
|
|
}
|