Object[] args= new Object[] { storage.getFullPath(), new Integer(offset), new Integer(length) }; return PropertiesFileEditorMessages.getFormattedString("OpenAction.SelectionDialog.elementLabel", args);
ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager(); try { manager.connect(storage.getFullPath(), null); try { ITextFileBuffer buffer= manager.getTextFileBuffer(storage.getFullPath()); IDocument document= buffer.getDocument(); if (document != null) { int line= document.getLineOfOffset(offset) + 1; Object[] args= new Object[] { new Integer(line), storage.getFullPath() }; return PropertiesFileEditorMessages.getFormattedString("OpenAction.SelectionDialog.elementLabel", args); } } finally { manager.disconnect(storage.getFullPath(), null); } } catch (CoreException e) { JavaPlugin.log(e.getStatus()); } catch (BadLocationException e) { JavaPlugin.log(e); }  return storage.getFullPath().toString();
		public String getLabel(Object o) {			Object[] args= new Object[] { storage.getFullPath(), new Integer(offset), new Integer(length) }; 			return PropertiesFileEditorMessages.getFormattedString("OpenAction.SelectionDialog.elementLabel", args); //$NON-NLS-1$		}