@Override protected boolean selectStatusEntry(final RefactoringStatusEntry entry) { if (fSourceFolder != null) { final IPath source= fSourceFolder.getFullPath(); final RefactoringStatusContext context= entry.getContext(); if (context instanceof JavaStatusContext) { final JavaStatusContext extended= (JavaStatusContext) context; final ICompilationUnit unit= extended.getCompilationUnit(); if (unit != null) { final IResource resource= unit.getResource(); if (resource != null && source.isPrefixOf(resource.getFullPath())) return false; } } } return super.selectStatusEntry(entry); } }
@Override protected boolean selectStatusEntry(final RefactoringStatusEntry entry) { if (fSourceFolder != null) { final IPath source= fSourceFolder.getFullPath(); final RefactoringStatusContext context= entry.getContext(); if (context instanceof JavaStatusContext) { final JavaStatusContext extended= (JavaStatusContext) context; final ICompilationUnit unit= extended.getCompilationUnit(); if (unit != null) { final IResource resource= unit.getResource(); if (resource != null && source.isPrefixOf(resource.getFullPath())) return false; } } } return super.selectStatusEntry(entry); } }
/** * {@inheritDoc} */ protected boolean selectStatusEntry(final RefactoringStatusEntry entry) { if (fSourceFolder != null) { final IPath source= fSourceFolder.getFullPath(); final RefactoringStatusContext context= entry.getContext(); if (context instanceof JavaStatusContext) { final JavaStatusContext extended= (JavaStatusContext) context; final ICompilationUnit unit= extended.getCompilationUnit(); if (unit != null) { final IResource resource= unit.getResource(); if (resource != null && source.isPrefixOf(resource.getFullPath())) return false; } } } return super.selectStatusEntry(entry); } }
RefactoringStatusEntry entry= status.getEntryMatchingSeverity(RefactoringStatus.FATAL); MessageDialog.openInformation(getShell(), getDialogTitle(), entry.getMessage()); if (entry.getContext() instanceof JavaStatusContext && fEditor != null) { JavaStatusContext context= (JavaStatusContext)entry.getContext(); ISourceRange range= context.getSourceRange(); fEditor.setHighlightRange(range.getOffset(), range.getLength(), true);
RefactoringStatusEntry entry= status.getEntryMatchingSeverity(RefactoringStatus.FATAL); MessageDialog.openInformation(getShell(), getDialogTitle(), entry.getMessage()); if (entry.getContext() instanceof JavaStatusContext && fEditor != null) { JavaStatusContext context= (JavaStatusContext)entry.getContext(); ISourceRange range= context.getSourceRange(); fEditor.setHighlightRange(range.getOffset(), range.getLength(), true);
RefactoringStatusEntry entry= status.getEntryMatchingSeverity(RefactoringStatus.FATAL); MessageDialog.openInformation(getShell(), getDialogTitle(), entry.getMessage()); if (entry.getContext() instanceof JavaStatusContext && fEditor != null) { JavaStatusContext context= (JavaStatusContext)entry.getContext(); ISourceRange range= context.getSourceRange(); fEditor.setHighlightRange(range.getOffset(), range.getLength(), true);
private void showContextViewer(RefactoringStatusEntry entry) { RefactoringStatusContext context= entry.getContext(); if (context == null || (fFilter != null && !fFilter.select(entry))) { showNullContextViewer();