/** Constructs the ID used for persistence of opened editors. * Should be overridden to return sane ID of the underlying document, * like the name of the disk file. * * @return ID of the document * @since 4.24 */ protected String documentID() { return messageName(); }
/** Constructs the ID used for persistence of opened editors. * Should be overridden to return sane ID of the underlying document, * like the name of the disk file. * * @return ID of the document * @since 4.24 */ protected String documentID() { return messageName(); }
/** Constructs the ID used for persistence of opened editors. * Should be overridden to return sane ID of the underlying document, * like the name of the disk file. * * @return ID of the document * @since 4.24 */ protected String documentID() { return messageName(); }
String thisToString() { String name = support.messageName(); return String.valueOf(name) + ":URM@" + System.identityHashCode(this); // NOI18N }
/** Computes display name for a line produced * by this {@link CloneableEditorSupport#getLineSet }. The default * implementation reuses messageName and line number of the line. * * @param line the line object to compute display name for * @return display name for the line like "MyFile.java:243" * * @since 4.3 */ protected String messageLine(Line line) { return NbBundle.getMessage(Line.class, "FMT_CESLineDisplayName", messageName(), line.getLineNumber() + 1); }
public void run() { Exceptions.attachLocalizedMessage(tmp, NbBundle.getMessage(CloneableEditorSupport.class, "EXC_LoadDocument", messageName())); Exceptions.printStackTrace(tmp); } });
/** Computes display name for a line produced * by this {@link CloneableEditorSupport#getLineSet }. The default * implementation reuses messageName and line number of the line. * * @param line the line object to compute display name for * @return display name for the line like "MyFile.java:243" * * @since 4.3 */ protected String messageLine (Line line) { return NbBundle.getMessage(Line.class, "FMT_CESLineDisplayName", messageName (), new Integer (line.getLineNumber () + 1) ); }
/** Computes display name for a line produced * by this {@link CloneableEditorSupport#getLineSet }. The default * implementation reuses messageName and line number of the line. * * @param line the line object to compute display name for * @return display name for the line like "MyFile.java:243" * * @since 4.3 */ protected String messageLine (Line line) { return NbBundle.getMessage(Line.class, "FMT_CESLineDisplayName", messageName (), new Integer (line.getLineNumber () + 1) ); }
public void run() { setDisplayName(ces.messageName()); setName(ces.messageName()); // XXX compatibility setToolTipText(ces.messageToolTip()); } });
public void run() { setDisplayName(ces.messageName()); setName(ces.messageName()); // XXX compatibility setToolTipText(ces.messageToolTip()); } });
public void run() { String name = ces.messageHtmlName(); setHtmlDisplayName(name); name = ces.messageName(); setDisplayName(name); setName(name); // XXX compatibility setToolTipText(ces.messageToolTip()); } }
Object who = d == null ? null : d.getProperty(Document.StreamDescriptionProperty); if (who == null) { who = support.messageName();