本文整理了Java中org.openide.text.Line.addPropertyChangeListener()
方法的一些代码示例,展示了Line.addPropertyChangeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.addPropertyChangeListener()
方法的具体详情如下:
包路径:org.openide.text.Line
类名称:Line
方法名:addPropertyChangeListener
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javascript2-debug-ui
public LineDelegate(Line line) {
this.line = line;
lineChangesWeak = WeakListeners.propertyChange(lineChangeslistener, line);
line.addPropertyChangeListener(lineChangesWeak);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-insync
/**
* Whenever the annotation is attached to the editor, listen for line edits so we can detach the
* annotation.
*/
protected void notifyAttached(final Annotatable toAnno) {
super.notifyAttached(toAnno);
docline.addPropertyChangeListener(this);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
private void ourAttach(Line line, boolean isCurrent) {
// isCurrent was added as a fix for 6570554.
// When we follow-fork-both we get "visit"s from both engines's and
// they both end up here. In general we only want the visits to have
// visible side-effects for the current session. They will get
// properly activated when we switch sessions.
//
// The parameter is passed and the test is made here rather than
// the callsite in order to ensure tat all callsites are cognizant of
// this flag.
//
// In order to be conservative pretty much all callsites pass a
// hard-coded true to minimize regressions.
if (!isCurrent) {
return;
}
if (line != null) {
attach(line);
line.addPropertyChangeListener(this);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javascript2-debug-ui
private void setLine(Line line) {
dispose();
int oldLineNumber = getLineNumber();
this.line = line;
lineChangesWeak = WeakListeners.propertyChange(lineChangeslistener, line);
line.addPropertyChangeListener(lineChangesWeak);
pchs.firePropertyChange(PROP_LINE_NUMBER, oldLineNumber, getLineNumber());
}
代码示例来源:origin: dcaoyuan/nbscala
line = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
if (!haveDocL) {
line.addPropertyChangeListener(this);
try {
this.line = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
line.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
代码示例来源:origin: dcaoyuan/nbscala
public synchronized void attach() throws IOException {
this.lc = dataObject.getCookie (LineCookie.class);
if (lc == null) return ;
lb.addPropertyChangeListener(this);
try {
this.line = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
line.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
// ignore document changes for BP with bad line number
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projects
newLine.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
return ;
LineCookie lc = dobj.getLookup().lookup (LineCookie.class);
newLine = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
newLine.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
newLine = null;
try {
newLine = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
newLine.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projectsui
newLine.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
return ;
LineCookie lc = dobj.getLookup().lookup (LineCookie.class);
newLine = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
newLine.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
newLine = null;
try {
newLine = lc.getLineSet().getCurrent(lb.getLineNumber() - 1);
newLine.addPropertyChangeListener(this);
} catch (IndexOutOfBoundsException ioobex) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projects
lineNew.addPropertyChangeListener(this);
StyledDocument document = NbDocument.getDocument(new Lookup.Provider() {
@Override
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projectsui
lineNew.addPropertyChangeListener(this);
StyledDocument document = NbDocument.getDocument(new Lookup.Provider() {
@Override
内容来源于网络,如有侵权,请联系作者删除!