4444import com .pega .gcs .logviewer .model .AlertLogEntry ;
4545import com .pega .gcs .logviewer .model .AlertLogEntryModel ;
4646import com .pega .gcs .logviewer .model .LogEntryColumn ;
47- import com .pega .gcs .logviewer .model .LogEntryData ;
4847import com .pega .gcs .logviewer .model .LogEntryModel ;
4948import com .pega .gcs .logviewer .model .alert .AlertMessageList .AlertMessage ;
5049import com .pega .gcs .logviewer .model .alert .AlertMessageListProvider ;
@@ -60,7 +59,9 @@ public class AlertLogEntryPanel extends JPanel {
6059 private AlertLogEntry alertLogEntry ;
6160
6261 // multiple usages hence extract it once
63- private LogEntryData logEntryData ;
62+ private ArrayList <String > logEntryValueList ;
63+
64+ private String logEntryText ;
6465
6566 private Charset charset ;
6667
@@ -80,7 +81,8 @@ public AlertLogEntryPanel(AlertLogEntry alertLogEntry, AlertLogEntryModel alertL
8081 this .alertLogEntry = alertLogEntry ;
8182 this .charset = charset ;
8283
83- this .logEntryData = alertLogEntry .getLogEntryData ();
84+ this .logEntryValueList = alertLogEntry .getLogEntryValueList ();
85+ this .logEntryText = alertLogEntry .getLogEntryText ();
8486
8587 this .alertLogEntryModel = alertLogEntryModel ;
8688
@@ -222,6 +224,14 @@ public void stateChanged(ChangeEvent changeEvent) {
222224 alertTabbedPane .addChangeListener (changeListener );
223225 }
224226
227+ private ArrayList <String > getLogEntryValueList () {
228+ return logEntryValueList ;
229+ }
230+
231+ private String getLogEntryText () {
232+ return logEntryText ;
233+ }
234+
225235 private JTabbedPane getAlertTabbedPane () {
226236
227237 if (alertTabbedPane == null ) {
@@ -274,7 +284,7 @@ public void hyperlinkUpdate(HyperlinkEvent hyperlinkEvent) {
274284 List <AlertLogEntryPanelTableData > dataList = new ArrayList <AlertLogEntryPanelTableData >();
275285 List <AlertLogEntryPanelTableData > longDataList = new ArrayList <AlertLogEntryPanelTableData >();
276286
277- List <String > logEntryValueList = logEntryData . getLogEntryValueList ();
287+ List <String > logEntryValueList = getLogEntryValueList ();
278288
279289 LogEntryModel logEntryModel = getAlertLogEntryModel ();
280290 List <LogEntryColumn > logEntryColumnList = logEntryModel .getLogEntryColumnList ();
@@ -470,7 +480,7 @@ private JScrollPane getPalComponent() {
470480
471481 if (columnIndex != -1 ) {
472482
473- List <String > logEntryValueList = logEntryData . getLogEntryValueList ();
483+ List <String > logEntryValueList = getLogEntryValueList ();
474484
475485 String palData = logEntryValueList .get (columnIndex );
476486
@@ -579,7 +589,7 @@ private JComponent getTraceListComponent() {
579589
580590 if (columnIndex != -1 ) {
581591
582- List <String > logEntryValueList = logEntryData . getLogEntryValueList ();
592+ List <String > logEntryValueList = getLogEntryValueList ();
583593
584594 String traceListData = logEntryValueList .get (columnIndex );
585595
@@ -661,7 +671,7 @@ private JComponent getPRStacktraceComponent() {
661671
662672 if (columnIndex != -1 ) {
663673
664- List <String > logEntryValueList = logEntryData . getLogEntryValueList ();
674+ List <String > logEntryValueList = getLogEntryValueList ();
665675
666676 String prStacktraceData = logEntryValueList .get (columnIndex );
667677
@@ -734,7 +744,7 @@ private JComponent getParameterPageComponent() {
734744
735745 if (columnIndex != -1 ) {
736746
737- List <String > logEntryValueList = logEntryData . getLogEntryValueList ();
747+ List <String > logEntryValueList = getLogEntryValueList ();
738748
739749 String parameterPageData = logEntryValueList .get (columnIndex );
740750
@@ -802,7 +812,9 @@ private JComponent getParameterPageComponent() {
802812
803813 private JComponent getRawTextComponent () {
804814
805- JPanel rawTextJPanel = new LogEntryPanel (logEntryData .getLogEntryText (), charset );
815+ String logEntryText = getLogEntryText ();
816+
817+ JPanel rawTextJPanel = new LogEntryPanel (logEntryText , charset );
806818
807819 return rawTextJPanel ;
808820 }
0 commit comments