@Override public boolean exists() { return state.exists(); }
@Override public boolean exists() { return state.exists(); }
@Override public boolean exists() { return state.exists(); }
@Override public boolean exists() { return ((IFileState) storage).exists(); }
public boolean exists() { return state.exists(); }
public boolean exists() { return ((IFileState) storage).exists(); }
@Override public boolean exists() { if (file != null) { return file.exists(); } return state.exists(); }
public boolean exists() { if (file != null) { return file.exists(); } return state.exists(); }
@Override public InputStream getContents(IFileState target) throws CoreException { if (!target.exists()) { String message = Messages.history_notValid; throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(), message, null); } return blobStore.getBlob(((FileState) target).getUUID()); }
@Override public InputStream getContents(IFileState target) throws CoreException { if (!target.exists()) { String message = Messages.history_notValid; throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(), message, null); } return blobStore.getBlob(((FileState) target).getUUID()); }
@Override public InputStream getContents(IFileState target) throws CoreException { if (!target.exists()) { String message = Messages.history_notValid; throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, target.getFullPath(), message, null); } return blobStore.getBlob(((FileState) target).getUUID()); }
public void run() { try { IStructuredSelection structSel = getStructuredSelection(); Object[] objArray = structSel.toArray(); for (int i = 0; i < objArray.length; i++) { IFileState state = (IFileState) objArray[i]; if (!state.exists()) { MessageDialog.openError(TeamUIPlugin.getActivePage().getActivePart().getSite().getShell(), TeamUIMessages.OpenRevisionAction_DeletedRevisionTitle, TeamUIMessages.OpenRevisionAction_DeletedRevisionMessage); } else { String id = getEditorID(state.getName(), state.getContents()); IWorkbenchPage page = TeamUIPlugin.getActivePage(); if (page != null) { page.openEditor(new FileRevisionEditorInput(state), id); } } } } catch (Exception e) { } }
@Override public void run() { try { IStructuredSelection structSel = getStructuredSelection(); Object[] objArray = structSel.toArray(); for (int i = 0; i < objArray.length; i++) { IFileState state = (IFileState) objArray[i]; if (!state.exists()) { MessageDialog.openError(TeamUIPlugin.getActivePage().getActivePart().getSite().getShell(), TeamUIMessages.OpenRevisionAction_DeletedRevisionTitle, TeamUIMessages.OpenRevisionAction_DeletedRevisionMessage); } else { String id = getEditorID(state.getName(), state.getContents()); IWorkbenchPage page = TeamUIPlugin.getActivePage(); if (page != null) { page.openEditor(new FileRevisionEditorInput(state), id); } } } } catch (Exception e) { } }