APISonar


org.codehaus.groovy.eclipse.quickfix.GroovyQuickFixPlugin.log

> org > codehaus > groovy > eclipse > quickfix > GroovyQuickFixPlugin > log
org APIs codehaus APIs groovy APIs eclipse APIs quickfix APIs GroovyQuickFixPlugin APIs log APIs

Example 1
public void apply(IDocument document) {
		try {
			TextChange change = (TextChange) refactoring.createChange(new NullProgressMonitor());
			change.getEdit().apply(document);
		} catch (CoreException e) {
			GroovyQuickFixPlugin.log(e);
		} catch (MalformedTreeException e) {
			GroovyQuickFixPlugin.log(e);
		} catch (BadLocationException e) {
			GroovyQuickFixPlugin.log(e);
		}
	}
Example 2
public boolean hasProposals() {
		try {
			RefactoringStatus status = refactoring.checkAllConditions(new NullProgressMonitor());
			return status.isOK();
		} catch (OperationCanceledException e) {
			GroovyQuickFixPlugin.log(e);
		} catch (CoreException e) {
			GroovyQuickFixPlugin.log(e);
		}
		return false;
	}