/** * Returns the first entry managed by this refactoring status that * matches the given plug-in identifier and code. If more than one * entry exists that matches the criteria the first one in the list * of entries is returned. Returns <code>null</code> if no entry * matches. * * @param pluginId the entry's plug-in identifier * @param code the entry's code * @return the entry that matches the given plug-in identifier and * code; <code>null</code> otherwise */ public RefactoringStatusEntry getEntryMatchingCode(String pluginId, int code) { Assert.isTrue(pluginId != null); for (Iterator iter= fEntries.iterator(); iter.hasNext(); ) { RefactoringStatusEntry entry= (RefactoringStatusEntry)iter.next(); if (pluginId.equals(entry.getPluginId()) && entry.getCode() == code) return entry; } return null; }
/** * Returns the first entry managed by this refactoring status that * matches the given plug-in identifier and code. If more than one * entry exists that matches the criteria the first one in the list * of entries is returned. Returns <code>null</code> if no entry * matches. * * @param pluginId the entry's plug-in identifier * @param code the entry's code * @return the entry that matches the given plug-in identifier and * code; <code>null</code> otherwise */ public RefactoringStatusEntry getEntryMatchingCode(String pluginId, int code) { Assert.isTrue(pluginId != null); for (Iterator<RefactoringStatusEntry> iter= fEntries.iterator(); iter.hasNext(); ) { RefactoringStatusEntry entry= iter.next(); if (pluginId.equals(entry.getPluginId()) && entry.getCode() == code) return entry; } return null; }
/** * Returns the first entry managed by this refactoring status that * matches the given plug-in identifier and code. If more than one * entry exists that matches the criteria the first one in the list * of entries is returned. Returns <code>null</code> if no entry * matches. * * @param pluginId the entry's plug-in identifier * @param code the entry's code * @return the entry that matches the given plug-in identifier and * code; <code>null</code> otherwise */ public RefactoringStatusEntry getEntryMatchingCode(String pluginId, int code) { Assert.isTrue(pluginId != null); for (Iterator<RefactoringStatusEntry> iter= fEntries.iterator(); iter.hasNext(); ) { RefactoringStatusEntry entry= iter.next(); if (pluginId.equals(entry.getPluginId()) && entry.getCode() == code) return entry; } return null; }
break; String pluginId= getPluginId(); int code= getCode(); if (pluginId == null) {
break; String pluginId= getPluginId(); int code= getCode(); if (pluginId == null) {
break; String pluginId= getPluginId(); int code= getCode(); if (pluginId == null) {