1 11 12 package org.eclipse.ui.internal.menus; 13 14 import org.eclipse.ui.internal.util.Util; 15 16 30 public class MenuLocationURI { 31 32 private String rawString; 33 34 37 public MenuLocationURI(String uriDef) { 38 rawString = uriDef; 39 } 40 41 45 public String getQuery() { 46 String [] vals = Util.split(rawString, '?'); 48 return vals[1]; 49 } 50 51 55 public String getScheme() { 56 String [] vals = Util.split(rawString, ':'); 57 return vals[0]; 58 } 59 60 64 public String getPath() { 65 String [] vals = Util.split(rawString, ':'); 67 if (vals[1] == null) 68 return null; 69 70 vals = Util.split(vals[1], '?'); 72 return vals[0]; 73 } 74 75 78 public String toString() { 79 return rawString; 80 } 81 82 85 public String getRawString() { 86 return rawString; 87 } 88 } 89 | Popular Tags |