Package org.openide.text

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


                                LineCookie lc = dataObj.getCookie(LineCookie.class);
                                if (lc == null) {
                                    return;
                                }
                                Line l = lc.getLineSet().getOriginal(line);
                                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        }

                        //highlight the line
                        StyledDocument document = ck.getDocument();
View Full Code Here


                                LineCookie lc = dataObj.getCookie(LineCookie.class);
                                if (lc == null) {
                                    return;
                                }
                                Line l = lc.getLineSet().getOriginal(line);
                                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        }
                    }
                } catch (Exception exception) {
                }
View Full Code Here

                        if (lc == null) {
                            return;
                        }
                        lineNumber = n.getLine() - 1;
                        Line l = lc.getLineSet().getOriginal(lineNumber);
                        l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                       
                        if (TextToSpeechOptions.isScreenReading()) {
                            speech.speak("Focussed to " + fileObjectToOpen.getName()
                                    + " dot " + fileObjectToOpen.getExt() + " "
                                    + n.getShortDescription() + " " + n.getDisplayName(),
View Full Code Here

                                LineCookie lc = dataObj.getCookie(LineCookie.class);
                                if (lc == null) {
                                    return;
                                }
                                Line l = lc.getLineSet().getOriginal(line);
                                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        }
                    }
                } catch (Exception exception) {
                }
View Full Code Here

                                LineCookie lc = dataObj.getCookie(LineCookie.class);
                                if (lc == null) {
                                    return;
                                }
                                Line l = lc.getLineSet().getOriginal(line);
                                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        }

                        //highlight the line
//                        StyledDocument document = ck.getDocument();
View Full Code Here

    }

    private static void goToSource(QuorumBreakpoint breakpoint) {
        Line line = breakpoint.getLine();
        if (line != null) {
            line.show(Line.ShowOpenType.REUSE, Line.ShowVisibilityType.FOCUS);
        }
    }

    private static class GoToSourcePerformer implements Models.ActionPerformer {
        @Override
View Full Code Here

                                LineCookie lc = dataObj.getCookie(LineCookie.class);
                                if (lc == null) {
                                    return;
                                }
                                Line l = lc.getLineSet().getOriginal(line);
                                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        }

                        //highlight the line
                        StyledDocument document = ck.getDocument();
View Full Code Here

                                LineCookie lc = dataObj.getCookie(LineCookie.class);
                                if (lc == null) {
                                    return;
                                }
                                Line l = lc.getLineSet().getOriginal(line);
                                l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        }
                    }
                } catch (Exception exception) {
                }
View Full Code Here

                        if (lc == null) {
                            return;
                        }
                        lineNumber = n.getDescriptor().getLine() - 1;
                        Line l = lc.getLineSet().getOriginal(lineNumber);
                        l.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);

                        if (TextToSpeechOptions.isScreenReading()) {
                        speech.speak("Focussed to " + currentFileInEditor.getName()
                                + " dot " + currentFileInEditor.getExt() + " "
                                + n.getShortDescription() + " " + n.getDisplayName(),
View Full Code Here

                        final Line line = lineCookie.getLineSet().getOriginal(lineNumber - 1);
                        WindowManager.getDefault().invokeWhenUIReady(new Runnable() {

                            public void run() {

                                line.show(Line.ShowOpenType.OPEN, Line.ShowVisibilityType.FOCUS);
                            }
                        });
                        lineFound = true;
                    } catch (final IndexOutOfBoundsException ex) {
                        // lineFound = false;
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.