~codeminer.team/codeminer/eclipse

« back to all changes in this revision

Viewing changes to CodeMinerUI/src/codeminerui/utils/NotePad.java

  • Committer: Sébastien Heymann
  • Date: 2009-04-05 15:46:55 UTC
  • Revision ID: sebastien@chartreuse-one-20090405154655-57re7tmumautti6o
Wizard corrected and bugfix on gexf static export

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package codeminerui.utils;
2
 
 
3
 
import java.io.IOException;
4
 
 
5
 
import org.eclipse.core.runtime.IPath;
6
 
import org.eclipse.ui.IEditorLauncher;
7
 
 
8
 
public class NotePad implements IEditorLauncher {
9
 
 
10
 
        @Override
11
 
        public void open(IPath file) {
12
 
                // TODO Auto-generated method stub
13
 
                try {
14
 
 
15
 
                        // TODO C'est maaaal !
16
 
                        String[] cmd = { "E:\\Program Files\\Notepad++\\notepad++.exe",
17
 
                                        file.toOSString() };
18
 
                        Runtime.getRuntime().exec(cmd);
19
 
 
20
 
                } catch (IOException e) {
21
 
                        // TODO Auto-generated catch block
22
 
                        e.printStackTrace();
23
 
                }
24
 
        }
25
 
 
26
 
}