Package org.openide.text

Examples of org.openide.text.Line.show()


        }

        public void outputLineAction(OutputEvent evt) {
            LineCookie lc = dObj.getCookie(org.openide.cookies.LineCookie.class);
            Line line = lc.getLineSet().getOriginal(realLineNo);
            line.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS, pos);
        }

        public void outputLineCleared(OutputEvent evt) {
        }
    }
View Full Code Here


            ErrorManager.getDefault().log(ErrorManager.WARNING,
                    "Show Source: Have no line for URL = " + url + ", line number = " + lineNumber);
            return null;
        }
        if ("true".equalsIgnoreCase(fronting) || Utilities.isWindows()) {
            l.show(Line.SHOW_REUSE);
            l.show(Line.SHOW_TOFRONT); //FIX 47825
        } else {
            l.show(Line.SHOW_REUSE);
        }
        return l;
View Full Code Here

                    "Show Source: Have no line for URL = " + url + ", line number = " + lineNumber);
            return null;
        }
        if ("true".equalsIgnoreCase(fronting) || Utilities.isWindows()) {
            l.show(Line.SHOW_REUSE);
            l.show(Line.SHOW_TOFRONT); //FIX 47825
        } else {
            l.show(Line.SHOW_REUSE);
        }
        return l;
    }
View Full Code Here

        }
        if ("true".equalsIgnoreCase(fronting) || Utilities.isWindows()) {
            l.show(Line.SHOW_REUSE);
            l.show(Line.SHOW_TOFRONT); //FIX 47825
        } else {
            l.show(Line.SHOW_REUSE);
        }
        return l;
    }

    /**
 
View Full Code Here

            ErrorManager.getDefault().log(ErrorManager.WARNING,
                    "Show Source: Have no line for URL = " + url + ", line number = " + lineNumber);
            return false;
        }
        if ("true".equalsIgnoreCase(fronting) || Utilities.isWindows()) {
            l.show(Line.SHOW_TOFRONT, column); //FIX 47825
        } else {
            l.show(Line.SHOW_GOTO, column);
        }
        addPositionToJumpList(url, l, column);
        return true;
View Full Code Here

            return false;
        }
        if ("true".equalsIgnoreCase(fronting) || Utilities.isWindows()) {
            l.show(Line.SHOW_TOFRONT, column); //FIX 47825
        } else {
            l.show(Line.SHOW_GOTO, column);
        }
        addPositionToJumpList(url, l, column);
        return true;
    }
View Full Code Here

                } else {
                    ed.openDocument();
                    try {
                        Line l = ed.getLineSet().getOriginal(lineNum - 1);
                        if (! l.isDeleted()) {
                            l.show(Line.ShowOpenType.REUSE, Line.ShowVisibilityType.FOCUS);
                        }
                    } catch (IndexOutOfBoundsException ioobe) {
                        // Probably harmless. Bogus line number.
                        ed.open();
                    }
View Full Code Here

                LineCookie lc = (LineCookie) dobj.getCookie(LineCookie.class);
                if (lc == null) {/* cannot do it */
                    return;
                }
                Line l = lc.getLineSet().getOriginal(line);
                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
            }
    }

}

View Full Code Here

                }
                if (dobj != null) {
                    LineCookie lc = (LineCookie) dobj.getCookie(LineCookie.class);
                    if (lc != null) {
                        Line l = lc.getLineSet().getOriginal(Integer.parseInt(lineNumber));
                        l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                    }

                }
            }
        }
View Full Code Here

                            }
                            if (goTo != null) {
                                String txt = goTo.getText();
                                int length = txt == null ? -1 : txt.length();
                                int position = charPos >= length && txt != null ? 0 : charPos;
                                goTo.show( ShowOpenType.REUSE_NEW,
                                    ShowVisibilityType.FOCUS, position );
                            } else {
                                Logger.getLogger(LineConvertor.class.getName()).log(
                                        Level.WARNING,
                                        "Could not go to line {0} of {1}",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.