Example #1
0
  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);
  }
Example #2
0
 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;
 }
Example #3
0
  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);
  }