Java Code Examples for org.eclipse.jdt.core.IJavaElementDelta#F_RESOLVED_CLASSPATH_CHANGED
The following examples show how to use
org.eclipse.jdt.core.IJavaElementDelta#F_RESOLVED_CLASSPATH_CHANGED .
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: SWTTemplateCompletionProposalComputer.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
/** * Do the flags indicate a classpath change? * @param flags the flags to inspect * @return true if the flag flags a classpath change */ private boolean isClasspathChangeFlag(int flags) { if ((flags & IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED) != 0) return true; if ((flags & IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0) return true; if ((flags & IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) return true; if ((flags & IJavaElementDelta.F_ARCHIVE_CONTENT_CHANGED) != 0) return true; return false; }
Example 2
Source File: JFaceCompletionProposalComputer.java From saneclipse with Eclipse Public License 1.0 | 6 votes |
/** * Do the flags indicate a classpath change? * * @param flags the flags to inspect * @return true if the flag flags a classpath change */ private boolean isClasspathChangeFlag(int flags) { if ((flags & IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED) != 0) { return true; } if ((flags & IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0) { return true; } if ((flags & IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) { return true; } if ((flags & IJavaElementDelta.F_ARCHIVE_CONTENT_CHANGED) != 0) { return true; } return false; }
Example 3
Source File: JavaProjectClasspathChangeAnalyzer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * Determines if the change i a classpath change on a project * * @param delta the IJavaElementDelta to analyze. the deltas element must be an instance of IProject */ public boolean isClasspathChangeOnProject(IJavaElementDelta delta) { assert (delta.getElement() instanceof IJavaProject); return (delta.getFlags() & IJavaElementDelta.F_CLASSPATH_CHANGED) != 0 || (delta.getFlags() & IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED) != 0; }
Example 4
Source File: ClasspathChagedListener.java From hybris-commerce-eclipse-plugin with Apache License 2.0 | 4 votes |
private boolean isClasspathChanged(int flags) { return 0 != (flags & (IJavaElementDelta.F_CLASSPATH_CHANGED | IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED)); }
Example 5
Source File: ClasspathUpdateHandler.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 4 votes |
private boolean isClasspathChanged(int flags) { return 0 != (flags & (IJavaElementDelta.F_CLASSPATH_CHANGED | IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED | IJavaElementDelta.F_CLOSED | IJavaElementDelta.F_OPENED)); }
Example 6
Source File: ClasspathChangeListener.java From scava with Eclipse Public License 2.0 | 2 votes |
private boolean isClasspathChanged(int flags) { return 0 != (flags & (IJavaElementDelta.F_CLASSPATH_CHANGED | IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED)); }