Java Code Examples for org.openide.windows.TopComponent#setHtmlDisplayName()
The following examples show how to use
org.openide.windows.TopComponent#setHtmlDisplayName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormEditorSupport.java From netbeans with Apache License 2.0 | 5 votes |
private void updateMVTCDisplayNameInAWT() { if ((multiviewTC == null) || (!formDataObject.isValid())) // Issue 67544 return; String[] titles = getMVTCDisplayName(formDataObject); Enumeration en = multiviewTC.getReference().getComponents(); while (en.hasMoreElements()) { TopComponent tc = (TopComponent) en.nextElement(); tc.setDisplayName(titles[0]); tc.setHtmlDisplayName(titles[1]); } }
Example 2
Source File: MultiViewCloneableEditor.java From netbeans with Apache License 2.0 | 5 votes |
private void updateDisplayText() { if (multiViewObserver != null) { TopComponent tc = multiViewObserver.getTopComponent(); tc.setHtmlDisplayName(getHtmlDisplayName()); tc.setDisplayName(getDisplayName()); tc.setName(getName()); tc.setToolTipText(getToolTipText()); tc.setIcon(getIcon()); } }
Example 3
Source File: SQLCloneableEditor.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void updateName() { super.updateName(); if (callback != null) { TopComponent tc = callback.getTopComponent(); tc.setHtmlDisplayName(getHtmlDisplayName()); tc.setDisplayName(getDisplayName()); tc.setName(getName()); tc.setToolTipText(getToolTipText()); } }
Example 4
Source File: MMDGraphEditor.java From netbeans-mmd-plugin with Apache License 2.0 | 5 votes |
private void copyNameToCallbackTopComponent() { final MultiViewElementCallback c = this.callback; if (c != null) { final TopComponent tc = c.getTopComponent(); if (tc != null) { tc.setHtmlDisplayName(this.getHtmlDisplayName()); tc.setDisplayName(this.getDisplayName()); tc.setName(this.getName()); tc.setToolTipText(this.getToolTipText()); } } if (this.editorSupport != null) { this.editorSupport.updateTitles(); } }