protected Object createFromElement(Element type) { String handle= type.getAttribute(NODE_HANDLE); if (handle == null ) return null; IJavaElement element= JavaCore.create(handle); if (!(element instanceof IType)) return null; int modifiers= 0; try { modifiers= Integer.parseInt(type.getAttribute(NODE_MODIFIERS)); } catch (NumberFormatException e) { // take zero } TypeNameMatch info= SearchEngine.createTypeNameMatch((IType) element, modifiers); long timestamp= IResource.NULL_STAMP; String timestampValue= type.getAttribute(NODE_TIMESTAMP); if (timestampValue != null && timestampValue.length() > 0) { try { timestamp= Long.parseLong(timestampValue); } catch (NumberFormatException e) { // take null stamp } } if (timestamp != IResource.NULL_STAMP) { fTimestampMapping.put(info, new Long(timestamp)); } return info; }
@Override protected TypeNameMatch createFromElement(Element type) { String handle= type.getAttribute(NODE_HANDLE); if (handle == null ) return null; IJavaElement element= JavaCore.create(handle); if (!(element instanceof IType)) return null; int modifiers= 0; try { modifiers= Integer.parseInt(type.getAttribute(NODE_MODIFIERS)); } catch (NumberFormatException e) { // take zero } TypeNameMatch info= SearchEngine.createTypeNameMatch((IType) element, modifiers); long timestamp= IResource.NULL_STAMP; String timestampValue= type.getAttribute(NODE_TIMESTAMP); if (timestampValue != null && timestampValue.length() > 0) { try { timestamp= Long.parseLong(timestampValue); } catch (NumberFormatException e) { // take null stamp } } if (timestamp != IResource.NULL_STAMP) { fTimestampMapping.put(info, Long.valueOf(timestamp)); } return info; }
protected Object createFromElement(Element type) { String handle= type.getAttribute(NODE_HANDLE); if (handle == null ) return null; IJavaElement element= JavaCore.create(handle); if (!(element instanceof IType)) return null; int modifiers= 0; try { modifiers= Integer.parseInt(type.getAttribute(NODE_MODIFIERS)); } catch (NumberFormatException e) { // take zero } TypeNameMatch info= SearchEngine.createTypeNameMatch((IType) element, modifiers); long timestamp= IResource.NULL_STAMP; String timestampValue= type.getAttribute(NODE_TIMESTAMP); if (timestampValue != null && timestampValue.length() > 0) { try { timestamp= Long.parseLong(timestampValue); } catch (NumberFormatException e) { // take null stamp } } if (timestamp != IResource.NULL_STAMP) { fTimestampMapping.put(info, new Long(timestamp)); } return info; }
@Override protected TypeNameMatch createFromElement(Element type) { String handle= type.getAttribute(NODE_HANDLE); if (handle == null ) return null; IJavaElement element= JavaCore.create(handle); if (!(element instanceof IType)) return null; int modifiers= 0; try { modifiers= Integer.parseInt(type.getAttribute(NODE_MODIFIERS)); } catch (NumberFormatException e) { // take zero } TypeNameMatch info= SearchEngine.createTypeNameMatch((IType) element, modifiers); long timestamp= IResource.NULL_STAMP; String timestampValue= type.getAttribute(NODE_TIMESTAMP); if (timestampValue != null && timestampValue.length() > 0) { try { timestamp= Long.parseLong(timestampValue); } catch (NumberFormatException e) { // take null stamp } } if (timestamp != IResource.NULL_STAMP) { fTimestampMapping.put(info, new Long(timestamp)); } return info; }
replace(type, SearchEngine.createTypeNameMatch(jType, modifiers)); } else { fTimestampMapping.put(type, new Long(currentTimestamp));
replace(type, SearchEngine.createTypeNameMatch(jType, modifiers)); } else { fTimestampMapping.put(type, new Long(currentTimestamp));
replace(type, SearchEngine.createTypeNameMatch(jType, modifiers)); } else { fTimestampMapping.put(type, new Long(currentTimestamp));
replace(type, SearchEngine.createTypeNameMatch(jType, modifiers)); } else { fTimestampMapping.put(type, Long.valueOf(currentTimestamp));