本文整理汇总了Java中org.eclipse.jdt.core.IJavaElementDelta.F_CHILDREN属性的典型用法代码示例。如果您正苦于以下问题:Java IJavaElementDelta.F_CHILDREN属性的具体用法?Java IJavaElementDelta.F_CHILDREN怎么用?Java IJavaElementDelta.F_CHILDREN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.jdt.core.IJavaElementDelta
的用法示例。
在下文中一共展示了IJavaElementDelta.F_CHILDREN属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isClasspathChange
/**
* Does the delta indicate a classpath change?
* @param delta the delta to inspect
* @return true if classpath has changed
*/
private boolean isClasspathChange(IJavaElementDelta delta) {
int flags= delta.getFlags();
if (isClasspathChangeFlag(flags))
return true;
if ((flags & IJavaElementDelta.F_CHILDREN) != 0) {
IJavaElementDelta[] children= delta.getAffectedChildren();
for (int i= 0; i < children.length; i++) {
if (isClasspathChangeFlag(children[i].getFlags()))
return true;
}
}
return false;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:20,代码来源:SWTTemplateCompletionProposalComputer.java
示例2: isClasspathChange
/**
* Does the delta indicate a classpath change?
*
* @param delta the delta to inspect
* @return true if classpath has changed
*/
private boolean isClasspathChange(IJavaElementDelta delta) {
final int flags = delta.getFlags();
if (isClasspathChangeFlag(flags)) {
return true;
}
if ((flags & IJavaElementDelta.F_CHILDREN) != 0) {
final IJavaElementDelta[] children = delta.getAffectedChildren();
for (int i = 0; i < children.length; i++) {
if (isClasspathChangeFlag(children[i].getFlags())) {
return true;
}
}
}
return false;
}
示例3: elementChanged
public void elementChanged(ElementChangedEvent e) {
IJavaElementDelta delta= findElement(fInput, e.getDelta());
if (delta != null && (delta.getFlags() & (IJavaElementDelta.F_CONTENT | IJavaElementDelta.F_CHILDREN)) != 0) {
if (shouldIgnoreDelta(e.getDelta().getCompilationUnitAST(), delta))
return;
fUpdatingCount++;
try {
update(createContext(false));
} finally {
fUpdatingCount--;
}
}
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:15,代码来源:DefaultJavaFoldingStructureProvider.java
示例4: isPossibleStructuralChange
private boolean isPossibleStructuralChange(IJavaElementDelta cuDelta) {
if (cuDelta.getKind() != IJavaElementDelta.CHANGED) {
return true; // add or remove
}
int flags= cuDelta.getFlags();
if ((flags & IJavaElementDelta.F_CHILDREN) != 0) {
return true;
}
return (flags & (IJavaElementDelta.F_CONTENT | IJavaElementDelta.F_FINE_GRAINED)) == IJavaElementDelta.F_CONTENT;
}
示例5: isStructuralCUChange
private static boolean isStructuralCUChange(int flags) {
// No refresh on working copy creation (F_PRIMARY_WORKING_COPY)
return (flags & IJavaElementDelta.F_CHILDREN) != 0 || (flags & (IJavaElementDelta.F_CONTENT | IJavaElementDelta.F_FINE_GRAINED)) == IJavaElementDelta.F_CONTENT;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:PackageExplorerContentProvider.java
示例6: onlyChildrenChanged
private boolean onlyChildrenChanged(IJavaElementDelta delta) {
if (delta.getKind() != IJavaElementDelta.CHANGED)
return false;
return (delta.getFlags() & ~IJavaElementDelta.F_FINE_GRAINED) == IJavaElementDelta.F_CHILDREN;
}