本文整理了Java中org.openide.text.Annotation.detach()
方法的一些代码示例,展示了Annotation.detach()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.detach()
方法的具体详情如下:
包路径:org.openide.text.Annotation
类名称:Annotation
方法名:detach
[英]Detach annotation.
[中]拆离注释。
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81
/**
* Detach error annotation.
*/
public void detachAnnotation() {
if (errAnnot != null) {
errAnnot.detach();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-tomcat5
/**
* Detach error annotation.
*/
public void detachAnnotation() {
if (errAnnot != null) {
errAnnot.detach();
}
}
代码示例来源:origin: dcaoyuan/nbscala
private void removeAnnotations(JPDABreakpoint b) {
Annotation[] annotations = breakpointToAnnotations.remove(b);
if (annotations == null) return ;
for (Annotation a : annotations) {
a.detach();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projectsui
private void removeAnnotation(Annotation annotation) {
synchronized (annotationToURLLock) {
String url = annotationToURL.remove (annotation);
//logger.severe("Removing "+annotation+", URL = "+url+", thread = "+Thread.currentThread().getId());
//Thread.dumpStack();
assert url != null;
}
annotation.detach ();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projects
private void removeAnnotation(Annotation annotation) {
synchronized (annotationToURLLock) {
String url = annotationToURL.remove (annotation);
//logger.severe("Removing "+annotation+", URL = "+url+", thread = "+Thread.currentThread().getId());
//Thread.dumpStack();
assert url != null;
}
annotation.detach ();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81
/**
* If a link is cleared, error annotation is detached and link cache is
* clared.
*/
public void outputLineCleared(OutputEvent ev) {
if (errAnnot != null) {
errAnnot.detach();
}
if (!links.isEmpty()) {
links.clear();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projects
private void removeAnnotations(JPDABreakpoint b) {
assert Thread.holdsLock(breakpointToAnnotations);
Set<Annotation> annotations = breakpointToAnnotations.remove(b);
if (annotations == null) {
return ;
}
for (Annotation a : annotations) {
a.detach();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projectsui
private void removeAnnotations(JPDABreakpoint b) {
assert Thread.holdsLock(breakpointToAnnotations);
Set<Annotation> annotations = breakpointToAnnotations.remove(b);
if (annotations == null) {
return ;
}
for (Annotation a : annotations) {
a.detach();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-tomcat5
/**
* If a link is cleared, error annotation is detached and link cache is
* clared.
*/
public void outputLineCleared(OutputEvent ev) {
if (errAnnot != null) {
errAnnot.detach();
}
if (!links.isEmpty()) {
links.clear();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javascript2-debug-ui
private boolean removeAnnotation(Breakpoint breakpoint) {
Annotation annotation;
synchronized (breakpointAnnotations) {
annotation = breakpointAnnotations.remove(breakpoint);
}
if (annotation != null) {
logger.log(Level.FINE, "Removed annotation of {0} : {1}",
new Object[] { breakpoint, annotation });
annotation.detach();
return true;
} else {
return false;
}
}
代码示例来源:origin: hmvictor/radar-netbeans
public void detachAnnotations() {
attached=false;
fileOpenedNotifier.unregisterCurrentFileOpenedListeners();
attachedAnnotations.forEach((annotation) -> {
annotation.detach();
});
attachedAnnotations.clear();
}
代码示例来源:origin: org.netbeans.api/org-openide-text
/** Attach annotation to Annotatable object.
* @param anno annotatable class to which this annotation will be attached */
public final void attach(Annotatable anno) {
if (attached != null) {
detach();
}
attached = anno;
attached.addAnnotation(this);
notifyAttached(attached);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Attach annotation to Annotatable object.
* @param anno annotatable class to which this annotation will be attached */
public final void attach(Annotatable anno) {
if (attached != null)
detach();
attached = anno;
attached.addAnnotation(this);
notifyAttached(attached);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Attach annotation to Annotatable object.
* @param anno annotatable class to which this annotation will be attached */
public final void attach(Annotatable anno) {
if (attached != null)
detach();
attached = anno;
attached.addAnnotation(this);
notifyAttached(attached);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-tomcat5
errAnnot.detach();
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81
errAnnot.detach();
内容来源于网络,如有侵权,请联系作者删除!