public static boolean isUseSuperTypeAvailable(final IType type) throws JavaModelException { return type != null && type.exists() && !type.isAnnotation() && !type.isAnonymous() && !type.isLambda(); }
public static boolean isUseSuperTypeAvailable(final IType type) throws JavaModelException { return type != null && type.exists() && !type.isAnnotation() && !type.isAnonymous() && !type.isLambda(); }
public static boolean isRenameAvailable(final IType type) throws JavaModelException { if (type == null) return false; if (type.isAnonymous()) return false; if (type.isLambda()) return false; if (!Checks.isAvailable(type)) return false; if (isRenameProhibited(type)) return false; return true; }
public static boolean isRenameAvailable(final IType type) throws JavaModelException { if (type == null) return false; if (type.isAnonymous()) return false; if (type.isLambda()) return false; if (!Checks.isAvailable(type)) return false; if (isRenameProhibited(type)) return false; return true; }
public static boolean isUseSuperTypeAvailable(final IType type) throws JavaModelException { return type != null && type.exists() && !type.isAnnotation() && !type.isAnonymous() && !type.isLambda(); }
public static boolean isRenameAvailable(final IType type) throws JavaModelException { if (type == null) { return false; } if (type.isAnonymous()) { return false; } if (type.isLambda()) { return false; } if (!Checks.isAvailable(type)) { return false; } if (isRenameProhibited(type)) { return false; } return true; }
public static boolean isExtractClassAvailable(IType type) throws JavaModelException { if (type == null) { return false; } if (!type.exists()) { return false; } return ReorgUtils.isInsideCompilationUnit(type) && type.isClass() && !type.isAnonymous() && !type.isLambda(); } }
public static boolean isExtractClassAvailable(IType type) throws JavaModelException { if (type == null) return false; if (!type.exists()) return false; return ReorgUtils.isInsideCompilationUnit(type) && type.isClass() && !type.isAnonymous() && !type.isLambda(); } }
public static boolean isExtractClassAvailable(IType type) throws JavaModelException { if (type == null) return false; if (!type.exists()) return false; return ReorgUtils.isInsideCompilationUnit(type) && type.isClass() && !type.isAnonymous() && !type.isLambda(); } }
@Override public int category(Object element) { if (element instanceof IType) { IType type= (IType) element; try { if (type.isAnonymous() || type.isLambda()) { return ANONYM; } } catch (JavaModelException e1) { if (type.getElementName().length() == 0) { return ANONYM; } } try { int flags= getTypeFlags(type); if (Flags.isInterface(flags)) { return INTERFACE; } else { return CLASS; } } catch (JavaModelException e) { // ignore } } return OTHER; }
@Override public int category(Object element) { if (element instanceof IType) { IType type= (IType) element; try { if (type.isAnonymous() || type.isLambda()) { return ANONYM; } } catch (JavaModelException e1) { if (type.getElementName().length() == 0) { return ANONYM; } } try { int flags= getTypeFlags(type); if (Flags.isInterface(flags)) { return INTERFACE; } else { return CLASS; } } catch (JavaModelException e) { // ignore } } return OTHER; }
if (member instanceof IType) { IType type= (IType) member; if (type.isAnonymous() || type.isLambda()) { return null;
public static boolean isExtractInterfaceAvailable(final IType type) throws JavaModelException { return Checks.isAvailable(type) && !type.isBinary() && !type.isReadOnly() && !type.isAnnotation() && !type.isAnonymous() && !type.isLambda(); }
public static boolean isExtractInterfaceAvailable(final IType type) throws JavaModelException { return Checks.isAvailable(type) && !type.isBinary() && !type.isReadOnly() && !type.isAnnotation() && !type.isAnonymous() && !type.isLambda(); }
public static boolean isExtractInterfaceAvailable(final IType type) throws JavaModelException { return Checks.isAvailable(type) && !type.isBinary() && !type.isReadOnly() && !type.isAnnotation() && !type.isAnonymous() && !type.isLambda(); }
if (((IType)fEnclosingElement).isLambda() && element.getElementType() == IJavaElement.METHOD) {
if (((IType)fEnclosingElement).isLambda() && element.getElementType() == IJavaElement.METHOD) {
if (((IType)member).isAnonymous()) return false; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=253727 if (((IType)member).isLambda()) return false;
if (((IType)member).isAnonymous()) return false; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=253727 if (((IType)member).isLambda()) return false;
return false; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=253727 if (((IType) member).isLambda()) { return false;