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

« back to all changes in this revision

Viewing changes to valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/MassifViewPart.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:
321
321
        }
322
322
 
323
323
        protected String getInputName(String description) {
324
 
                String launchName = description.substring(0, description
325
 
                                .indexOf("[massif")); //$NON-NLS-1$
 
324
                String launchName;
 
325
                try {
 
326
                        launchName = description.substring(0, description
 
327
                                        .indexOf("[massif")); //$NON-NLS-1$
 
328
                }
 
329
                catch(IndexOutOfBoundsException e) {
 
330
                        launchName = "(No chart title)";
 
331
                }
326
332
                return launchName.trim();
327
333
        }
328
334
 
414
420
                return treeViewer;
415
421
        }
416
422
 
417
 
        protected class MassifLabelProvider extends LabelProvider implements
 
423
        protected static class MassifLabelProvider extends LabelProvider implements
418
424
        ITableLabelProvider, IFontProvider {
419
425
 
420
426
                public Image getColumnImage(Object element, int columnIndex) {