private boolean isPersistentlyLocked() { return AppPersistence.isLocked(this); }
private boolean isPersistentlyLocked() { return AppPersistence.isLocked(this); }
private boolean isPersistentlyLocked() { return AppPersistence.isLocked(this); }
protected EclipseAppDescriptor(Bundle contributor, String pid, String name, String iconPath, int flags, int cardinality, EclipseAppContainer appContainer) { super(pid); this.name = name; this.contributor = contributor; this.appContainer = appContainer; this.locked = AppPersistence.isLocked(this) ? Boolean.TRUE : Boolean.FALSE; this.flags = flags; this.cardinality = cardinality; URL iconResult = null; // this bit of code is complex because we want to search fragments; // that can only be done by using the Bundle.findEntries method which // requires the path to be split up between the base and the file name!! if (iconPath != null && iconPath.length() > 0) { if (iconPath.charAt(0) == '/') iconPath = iconPath.substring(1); String baseIconDir = "/"; //$NON-NLS-1$ String iconFile = iconPath; int lastSlash = iconPath.lastIndexOf('/'); if (lastSlash > 0 && lastSlash < iconPath.length() - 1) { baseIconDir = iconPath.substring(0, lastSlash); iconFile = iconPath.substring(lastSlash + 1); } Enumeration urls = contributor.findEntries(baseIconDir, iconFile, false); if (urls != null && urls.hasMoreElements()) iconResult = (URL) urls.nextElement(); } this.iconURL = iconResult; }
protected EclipseAppDescriptor(Bundle contributor, String pid, String name, String iconPath, int flags, int cardinality, EclipseAppContainer appContainer) { super(pid); this.name = name; this.contributor = contributor; this.appContainer = appContainer; this.locked = AppPersistence.isLocked(this) ? Boolean.TRUE : Boolean.FALSE; this.flags = flags; this.cardinality = cardinality; URL iconResult = null; // this bit of code is complex because we want to search fragments; // that can only be done by using the Bundle.findEntries method which // requires the path to be split up between the base and the file name!! if (iconPath != null && iconPath.length() > 0) { if (iconPath.charAt(0) == '/') iconPath = iconPath.substring(1); String baseIconDir = "/"; //$NON-NLS-1$ String iconFile = iconPath; int lastSlash = iconPath.lastIndexOf('/'); if (lastSlash > 0 && lastSlash < iconPath.length() - 1) { baseIconDir = iconPath.substring(0, lastSlash); iconFile = iconPath.substring(lastSlash + 1); } Enumeration urls = contributor.findEntries(baseIconDir, iconFile, false); if (urls != null && urls.hasMoreElements()) iconResult = (URL) urls.nextElement(); } this.iconURL = iconResult; }
protected EclipseAppDescriptor(Bundle contributor, String pid, String name, String iconPath, int flags, int cardinality, EclipseAppContainer appContainer) { super(pid); this.name = name; this.contributor = contributor; this.appContainer = appContainer; this.locked = AppPersistence.isLocked(this) ? Boolean.TRUE : Boolean.FALSE; this.flags = flags; this.cardinality = cardinality; URL iconResult = null; // this bit of code is complex because we want to search fragments; // that can only be done by using the Bundle.findEntries method which // requires the path to be split up between the base and the file name!! if (iconPath != null && iconPath.length() > 0) { if (iconPath.charAt(0) == '/') iconPath = iconPath.substring(1); String baseIconDir = "/"; //$NON-NLS-1$ String iconFile = iconPath; int lastSlash = iconPath.lastIndexOf('/'); if (lastSlash > 0 && lastSlash < iconPath.length() - 1) { baseIconDir = iconPath.substring(0, lastSlash); iconFile = iconPath.substring(lastSlash + 1); } Enumeration urls = contributor.findEntries(baseIconDir, iconFile, false); if (urls != null && urls.hasMoreElements()) iconResult = (URL) urls.nextElement(); } this.iconURL = iconResult; }