~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.dashboard/src/org/eclipse/linuxtools/systemtap/ui/dashboard/structures/DashboardGraphsTreeBuilder.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 */
26
26
public class DashboardGraphsTreeBuilder {
27
27
        public DashboardGraphsTreeBuilder() {
28
 
                tree = new TreeNode("Root", "", false);
 
28
                tree = new TreeNode("Root", "", false); //$NON-NLS-1$ //$NON-NLS-2$
29
29
        }
30
30
        
31
31
        public DashboardGraphsTreeBuilder(TreeNode t) {
65
65
                                scanNextLevel(fs[i]);
66
66
                        else {
67
67
                                try {
68
 
                                        File folder = new File(SystemTapGUISettings.tempDirectory + "/bundles/");
 
68
                                        File folder = new File(SystemTapGUISettings.tempDirectory + "/bundles/"); //$NON-NLS-1$
69
69
                                        if(!folder.exists())
70
70
                                                folder.mkdirs();
71
71
                                        
72
 
                                        File file = new File(folder + "/" + fs[i].getName() + ".tmp");
 
72
                                        File file = new File(folder + "/" + fs[i].getName() + ".tmp"); //$NON-NLS-1$ //$NON-NLS-2$
73
73
                                        file.createNewFile();
74
74
                                        ZipArchive.uncompressFile(file.getAbsolutePath(), fs[i].getAbsolutePath());
75
75
                                        ZipArchive.unzipFiles(file.getAbsolutePath(), folder.getAbsolutePath());
96
96
         * @return The tree node matching the provided path
97
97
         */
98
98
        private TreeNode findInsertLocation(String path) {
99
 
                String[] folders = path.split("\\p{Punct}");
 
99
                String[] folders = path.split("\\p{Punct}"); //$NON-NLS-1$
100
100
                TreeNode level = tree;
101
101
                
102
102
                for(int j,i=0; i<folders.length; i++) {
105
105
                                        break;
106
106
                        }
107
107
                        if(j >= level.getChildCount())
108
 
                                level.add(new TreeNode("", folders[i], false));
 
108
                                level.add(new TreeNode("", folders[i], false)); //$NON-NLS-1$
109
109
                        level = level.getChildAt(j);
110
110
                }
111
111
                return level;