@Override protected String preferredID() { final CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { return ces.documentID(); } return ""; }
/** Asks the associated {@link CloneableEditorSupport} to initialize * this editor via its {@link CloneableEditorSupport#initializeCloneableEditor(org.openide.text.CloneableEditor)} * method. By default called from the support on various occasions including * shortly after creation and * after the {@link CloneableEditor} has been deserialized. * * @since 6.37 */ protected final void initializeBySupport() { cloneableEditorSupport().initializeCloneableEditor(this); }
protected String preferredID () { final CloneableEditorSupport ces = cloneableEditorSupport(); if(ces != null) { return ces.documentID(); } return ""; }
protected String preferredID () { final CloneableEditorSupport ces = cloneableEditorSupport(); if(ces != null) { return ces.documentID(); } return ""; }
/** Updates the name and tooltip of this <code>CloneableEditor</code> * {@link org.openide.windows.TopComponent TopCompoenent} * according to the support retrieved from {@link #cloneableEditorSupport} * method. The name and tooltip are in case of support presence * updated thru its {@link CloneableEditorSupport#messageName} and * {@link CloneableEditorSupport#messageToolTip} methods. * @see #cloneableEditorSupport() */ public void updateName() { final CloneableEditorSupport ces = cloneableEditorSupport(); if(ces != null) { Mutex.EVENT.writeAccess(new Runnable() { public void run() { setDisplayName(ces.messageName()); setName(ces.messageName()); // XXX compatibility setToolTipText(ces.messageToolTip()); } }); } }
/** Updates the name and tooltip of this <code>CloneableEditor</code> * {@link org.openide.windows.TopComponent TopCompoenent} * according to the support retrieved from {@link #cloneableEditorSupport} * method. The name and tooltip are in case of support presence * updated thru its {@link CloneableEditorSupport#messageName} and * {@link CloneableEditorSupport#messageToolTip} methods. * @see #cloneableEditorSupport() */ public void updateName() { final CloneableEditorSupport ces = cloneableEditorSupport(); if(ces != null) { Mutex.EVENT.writeAccess(new Runnable() { public void run() { setDisplayName(ces.messageName()); setName(ces.messageName()); // XXX compatibility setToolTipText(ces.messageToolTip()); } }); } }
/** Updates the name and tooltip of this <code>CloneableEditor</code> * {@link org.openide.windows.TopComponent TopCompoenent} * according to the support retrieved from {@link #cloneableEditorSupport} * method. The name and tooltip are in case of support presence * updated thru its {@link CloneableEditorSupport#messageName} and * {@link CloneableEditorSupport#messageToolTip} methods. * @see #cloneableEditorSupport() */ public void updateName() { final CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { Mutex.EVENT.writeAccess( new Runnable() { public void run() { String name = ces.messageHtmlName(); setHtmlDisplayName(name); name = ces.messageName(); setDisplayName(name); setName(name); // XXX compatibility setToolTipText(ces.messageToolTip()); } } ); } }
/** Descendants overriding this method must either call * this implementation or fire the * {@link org.openide.cookies.EditorCookie.Observable#PROP_OPENED_PANES} * property change on their own. */ protected void componentOpened() { super.componentOpened(); CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { ces.firePropertyChange(EditorCookie.Observable.PROP_OPENED_PANES, null, null); } }
/** Descendants overriding this method must either call * this implementation or fire the * {@link org.openide.cookies.EditorCookie.Observable#PROP_OPENED_PANES} * property change on their own. */ protected void componentOpened() { super.componentOpened(); CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { ces.firePropertyChange(EditorCookie.Observable.PROP_OPENED_PANES, null, null); } }
/** Descendants overriding this method must either call * this implementation or fire the * {@link org.openide.cookies.EditorCookie.Observable#PROP_OPENED_PANES} * property change on their own. */ protected void componentClosed() { super.componentClosed(); CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { ces.firePropertyChange(EditorCookie.Observable.PROP_OPENED_PANES, null, null); } }
/** Descendants overriding this method must either call * this implementation or fire the * {@link org.openide.cookies.EditorCookie.Observable#PROP_OPENED_PANES} * property change on their own. */ protected void componentClosed() { super.componentClosed(); CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { ces.firePropertyChange(EditorCookie.Observable.PROP_OPENED_PANES, null, null); } }
/** Descendants overriding this method must either call * this implementation or fire the * {@link org.openide.cookies.EditorCookie.Observable#PROP_OPENED_PANES} * property change on their own. */ @Override protected void componentOpened() { super.componentOpened(); CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { ces.firePropertyChange(EditorCookie.Observable.PROP_OPENED_PANES, null, null); Document d = ces.getDocument(); if (d != null) { String mimeType = (String) d.getProperty("mimeType"); //NOI18N Installer.add(mimeType); } } }
CloneableEditorSupport ces = cloneableEditorSupport(); if (ces != null) { ces.firePropertyChange(EditorCookie.Observable.PROP_OPENED_PANES, null, null);
CloneableEditorSupport ces = cloneableEditorSupport();