public String getShortDescription () { // [TODO] hack for org.netbeans.modules.debugger.jpda.actions.MethodChooser that disables tooltips if ("true".equals(System.getProperty("org.netbeans.modules.debugger.jpda.doNotShowTooltips"))) { // NOI18N return null; } DebuggerEngine currentEngine = DebuggerManager.getDebuggerManager (). getCurrentEngine (); if (currentEngine == null) return null; JPDADebugger d = currentEngine.lookupFirst(null, JPDADebugger.class); if (d == null) return null; Part lp = (Part) getAttachedAnnotatable(); if (lp == null) return null; Line line = lp.getLine (); DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) return null; EditorCookie ec = dob.getCookie(EditorCookie.class); if (ec == null) return null; // Only for editable dataobjects this.lp = lp; this.ec = ec; RequestProcessor.getDefault ().post (this); return null; }
DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) { return null;
DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) { return null;
DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) { return null;
public String getShortDescription() { Utils.log("JspTooltip: getShortDescription"); toolTipText = null; DebuggerEngine currentEngine = DebuggerManager.getDebuggerManager (). getCurrentEngine (); if (currentEngine == null) return null; JPDADebugger d = (JPDADebugger) currentEngine.lookupFirst (null, JPDADebugger.class); if (d == null) return null; Line.Part lp = (Line.Part) getAttachedAnnotatable(); if (lp != null) { Line line = lp.getLine (); DataObject dob = DataEditorSupport.findDataObject(line); EditorCookie ec = (EditorCookie) dob.getCookie(EditorCookie.class); if (ec != null) { // Only for editable dataobjects try { doc = ec.openDocument (); rp.post(this); } catch (IOException e) { } } } return toolTipText; }
DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) { return null;
if (lp == null) return null; Line line = lp.getLine (); DataObject dob = DataEditorSupport.findDataObject (line); EditorCookie ec = dob.getCookie (EditorCookie.class); NbEditorDocument document = (NbEditorDocument) ec.getDocument ();