Class ConsoleOutputAnalyzerPanel

    • Field Detail

      • m_SplitPane

        protected BaseSplitPane m_SplitPane
        the split pane to use.
      • m_FileChooser

        protected transient TextFileChooser m_FileChooser
        the filechooser for loading the files.
      • m_TextOrigin

        protected BaseTextField m_TextOrigin
        the regexp for the origin.
      • m_ComboBoxOrigin

        protected BaseComboBox m_ComboBoxOrigin
        the combobox with all origins.
      • m_ComboBoxType

        protected BaseComboBox m_ComboBoxType
        the combobox with the types.
      • m_TextOutput

        protected BaseTextField m_TextOutput
        the regexp for the output.
      • m_PanelSearch

        protected ParameterPanel m_PanelSearch
        the panel with the search parameters.
      • m_ButtonSearch

        protected BaseButton m_ButtonSearch
        the button for triggering the search.
      • m_ButtonClearSearch

        protected BaseButton m_ButtonClearSearch
        the button for clearing the search.
      • m_Table

        protected SpreadSheetTable m_Table
        the table for displaying the output.
      • m_CurrentFile

        protected File m_CurrentFile
        the file the console output was loaded from.
      • m_CurrentEncoding

        protected String m_CurrentEncoding
        the current file encoding.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_MenuFileLoadRecent

        protected JMenu m_MenuFileLoadRecent
        the "load recent" submenu.
      • m_MenuFileReload

        protected JMenuItem m_MenuFileReload
        the "reload" menu item.
      • m_TitleGenerator

        protected TitleGenerator m_TitleGenerator
        for generating the title of the dialog/frame.
    • Constructor Detail

      • ConsoleOutputAnalyzerPanel

        public ConsoleOutputAnalyzerPanel()
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • createCellPopup

        protected BasePopupMenu createCellPopup​(MouseEvent e)
        Returns a popup menu for the table.
        Parameters:
        e - the event that triggered the call
        Returns:
        the popup menu, null if not applicable
      • getFileChooser

        protected TextFileChooser getFileChooser()
        Returns the filechooser for opening the files.
        Returns:
        the filechooser
      • clearSearch

        protected void clearSearch​(boolean update)
        Resets the search fields.
        Parameters:
        update - whether to update the display
      • search

        protected void search()
        Performs the search.
      • updateMenu

        protected void updateMenu()
        Updates the menu.
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        Returns:
        the menu bar
      • open

        protected void open()
        Opens a dialog for the user to choose a file containing console output.
      • open

        public void open​(File file)
        Opens the specified file with the console output, using UTF-8.
        Parameters:
        file - the file to load
      • open

        public void open​(File file,
                         String encoding)
        Opens the specified file with the console output.
        Parameters:
        file - the file to load
        encoding - the encoding to use, null for default UTF-8
      • reload

        protected void reload()
        Reloads the console output from the current file.
      • useCurrentOutput

        protected void useCurrentOutput()
        Uses the currently displayed output.
      • addFirstElement

        protected List addFirstElement​(List list,
                                       Object first)
        Adds the specified object at the head of the list (if not already present) and returns the updated list.
        Parameters:
        list - the list to update
        first - the element to insert
        Returns:
        the (potentially) updated list
      • update

        protected void update()
        Updating the GUI.
      • hasSendToItem

        public boolean hasSendToItem​(Class[] cls)
        Checks whether something to send is available.
        Specified by:
        hasSendToItem in interface SendToActionSupporter
        Parameters:
        cls - the classes to retrieve an item for
        Returns:
        true if an object is available for sending
      • getSendToItem

        public Object getSendToItem​(Class[] cls)
        Returns the object to send.
        Specified by:
        getSendToItem in interface SendToActionSupporter
        Parameters:
        cls - the classes to retrieve an item for
        Returns:
        the item to send, null if nothing available at the moment