if(input instanceof RemoteFileEditorInput) {
if (input instanceof SyncInfoCompareInput) { SyncInfoCompareInput syncInput = (SyncInfoCompareInput)input; SyncInfo info = syncInput.getSyncInfo(); if(info instanceof SVNStatusSyncInfo &&info.getLocal().getType() == IResource.FILE) { ISVNRemoteFile remote =(ISVNRemoteFile)info.getRemote(); ISVNRemoteFile base = (ISVNRemoteFile)info.getBase(); if(remote != null) { showHistory(remote, false); } else if(base != null) { showHistory(base, false); } }  } else if(input instanceof RemoteFileEditorInput) {
	protected void editorActivated(IEditorPart editor) {		if (disableEditorActivation) {			return;        }                // Only fetch contents if the view is shown in the current page.		if (editor == null || !isLinkingEnabled() || !checkIfPageIsVisible()) {			return;		}        		IEditorInput input = editor.getEditorInput();		// Handle compare editors opened from the Synchronize View		// TODO uncommnet when there is sync support        		//        if (input instanceof SyncInfoCompareInput) {		//            SyncInfoCompareInput syncInput = (SyncInfoCompareInput) input;		//            SyncInfo info = syncInput.getSyncInfo();		//            if(info instanceof SVNSyncInfo && info.getLocal().getType() == IResource.FILE) {		//                ISVNRemoteFile remote = (ISVNRemoteFile)info.getRemote();		//                ISVNRemoteFile base = (ISVNRemoteFile)info.getBase();		//                if(remote != null) {		//                    showHistory(remote, false);		//                } else if(base != null) {		//                    showHistory(base, false);		//                }		//            }		//        // Handle editors opened on remote files		//        } else		if(input instanceof RemoteFileEditorInput) {			ISVNRemoteFile remote = ((RemoteFileEditorInput)input).getSVNRemoteFile();			if(remote != null) {				showHistory(remote, false);			}			// Handle regular file editors		} else if (input instanceof IFileEditorInput) {			IFileEditorInput fileInput = (IFileEditorInput) input;			IFile file = fileInput.getFile();			showHistory(file, false);           		}	}