Search in sources :

Example 1 with MultiViewElementCallback

use of org.netbeans.core.spi.multiview.MultiViewElementCallback in project netbeans-mmd-plugin by raydac.

the class MMDGraphEditor method copyNameToCallbackTopComponent.

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();
    }
}
Also used : MultiViewElementCallback(org.netbeans.core.spi.multiview.MultiViewElementCallback) TopComponent(org.openide.windows.TopComponent)

Aggregations

MultiViewElementCallback (org.netbeans.core.spi.multiview.MultiViewElementCallback)1 TopComponent (org.openide.windows.TopComponent)1