final boolean superNotifyModified () { return super.notifyModified (); } final void superNotifyClosed() {
final void superNotifyUnmodified () { super.notifyUnmodified (); }
final void superSaveDocument() throws IOException { super.saveDocument(); } final UndoRedo.Manager superUndoRedoManager() {
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; }
protected void superSaveFromKitToStream( StyledDocument doc,EditorKit kit,OutputStream stream ) throws IOException, BadLocationException { super.saveFromKitToStream (doc, kit, stream); } protected void saveFromKitToStream(
final void superNotifyClosed() { // #28256(#27645) Unregisters lisntening on node // when all components closed. nodeL = null; super.notifyClosed (); }
public @Override boolean close(boolean ask) { return super.close(ask); } }
final void superLoadFromStreamToKit( StyledDocument doc,InputStream stream,EditorKit kit ) throws IOException, BadLocationException { super.loadFromStreamToKit (doc, stream, kit); }
DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) { return null;
protected void saveFromKitToStreamHook(StyledDocument doc, EditorKit kit, OutputStream stream) throws IOException, BadLocationException { super.saveFromKitToStream(doc, kit, stream); }
@Override protected void notifyClosed() { //all views of this file have been closed, reset the verification //flag so next time it will popup again if user opens the file encodingVerified.set(false); super.notifyClosed(); }
protected boolean superClose(boolean ask) { return super.close (ask); }
protected void loadFromStreamToKitHook(StyledDocument doc, InputStream stream, EditorKit kit) throws IOException, BadLocationException { super.loadFromStreamToKit(doc, stream, kit); }
DataObject dob = DataEditorSupport.findDataObject (line); if (dob == null) { return null;
protected @Override void notifyUnmodified() { super.notifyUnmodified(); ((Environment) this.env).removeSaveCookie(); }
/** * Overrides superclass method. Adds adding of save cookie if the document has been marked modified. * @return true if the environment accepted being marked as modified * or false if it has refused and the document should remain unmodified */ protected boolean notifyModified () { if (!super.notifyModified()) return false; addSaveCookie(); return true; }
@Override public void actionPerformed(ActionEvent arg0) { //save changes try { getEditorSupport().saveDocument(); } catch (IOException ex) { LOG.log(Level.WARNING, "File {0} couldn''t be saved.", context.getFacesConfigFile().getName()); } } };
@Override protected void saveFromKitToStream(StyledDocument doc, EditorKit kit, OutputStream stream) throws IOException, BadLocationException { Parameters.notNull("doc", doc); Parameters.notNull("kit", kit); String foundEncoding = (String) doc.getProperty(DOCUMENT_SAVE_ENCODING); String encoding = foundEncoding != null ? foundEncoding : defaulEncoding; Charset charset = Charset.forName("UTF-8"); //NOI18N try { charset = Charset.forName(encoding); } catch (IllegalCharsetNameException | UnsupportedCharsetException e) { LOGGER.log(Level.INFO, "Illegal charset found: {0}, defaulted to UTF-8 as warned by dialog", encoding); } writeByteOrderMark(charset, stream); super.saveFromKitToStream(doc, kit, stream); } private static final Set<String> UTF_16_CHARSETS = new HashSet<String>();
@Override protected void notifyClosed() { mvtc = null; super.notifyClosed(); syncModel(); }
public @Override boolean close(boolean ask) { return super.close(ask); }