private void openAnalyzedInfo() { ArrayList<String> list = new ArrayList<String>(); list.add(StackParser.INFO_EXTENSION); String filename = ResourceUtils.selectFileDialog( m_parentComposite, "Analyzed Info File", new String[] {"Stack Analyzed Files", "All Files"}, new String[] {"*.info", "*.*"}); if (filename == null) return; openAnalyzedFile(filename); }
private String selectCurrentParserConfig() { String fileName = ResourceUtils.selectFileDialog( m_parentComposite, "XML Parser Configuration", new String[] {"XML config", "All Files"}, new String[] {"*.xml", "*.*"}); if (fileName != null) { PreferenceManager.get().setCurrentParserConfig(fileName); displayContent(null); } return fileName; }
private void chooseStackFile() { PreferenceManager prefManager = PreferenceManager.get(); String fileName = ResourceUtils.selectFileDialog( m_parentComposite, "Stack Log File", new String[] {"Stack Log Files", "All Files"}, new String[] {"*.log;*.txt;*.gz;*.stack", "*.*"}); if (fileName == null) { return; } File file = new File(fileName); prefManager.setSelectedPath(file.getParentFile()); openFile(file, false); }