Java Code Examples for org.eclipse.jdt.core.JavaModelException#getException()
The following examples show how to use
org.eclipse.jdt.core.JavaModelException#getException() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConvertNestedToTopAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public void selectionChanged(IStructuredSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isMoveInnerAvailable(selection)); } catch (JavaModelException e) { // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253 if (!(e.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(e)) JavaPlugin.log(e); setEnabled(false);//no UI } }
Example 2
Source File: ExtractInterfaceAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public void selectionChanged(IStructuredSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isExtractInterfaceAvailable(selection)); } catch (JavaModelException e) { // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253 if (!(e.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(e)) JavaPlugin.log(e); setEnabled(false);//no UI - happens on selection changes } }
Example 3
Source File: UseSupertypeAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public void selectionChanged(IStructuredSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isUseSuperTypeAvailable(selection)); } catch (JavaModelException e) { // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253 if (!(e.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(e)) JavaPlugin.log(e); setEnabled(false);// no UI - happens on selection changes } }
Example 4
Source File: ExtractSuperClassAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * {@inheritDoc} */ @Override public void selectionChanged(final IStructuredSelection selection) { try { setEnabled(RefactoringAvailabilityTester.isExtractSupertypeAvailable(selection)); } catch (JavaModelException exception) { // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253 if (!(exception.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(exception)) JavaPlugin.log(exception); setEnabled(false);//no UI - happens on selection changes } }