当前位置: 首页>>代码示例>>Java>>正文


Java MultiViewElementCallback.getTopComponent方法代码示例

本文整理汇总了Java中org.netbeans.core.spi.multiview.MultiViewElementCallback.getTopComponent方法的典型用法代码示例。如果您正苦于以下问题:Java MultiViewElementCallback.getTopComponent方法的具体用法?Java MultiViewElementCallback.getTopComponent怎么用?Java MultiViewElementCallback.getTopComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.core.spi.multiview.MultiViewElementCallback的用法示例。


在下文中一共展示了MultiViewElementCallback.getTopComponent方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: run

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void run() {
    MultiViewElementCallback c = callback;
    if (c == null) {
        return;
    }
    TopComponent tc = c.getTopComponent();
    if (tc == null) {
        return;
    }
    
    super.updateName();
    Node nd = ((JrxmlDataObject)((JrxmlEditorSupport)cloneableEditorSupport()).getDataObject()).getNodeDelegate();
    tc.setName(nd.getName() );
    tc.setDisplayName(nd.getDisplayName());
    tc.setHtmlDisplayName(nd.getHtmlDisplayName());
    //tc.setIcon( nd.getIcon( BeanInfo.ICON_COLOR_16x16));
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:18,代码来源:JrxmlSourceEditor.java

示例2: updateName

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void updateName() {

        Runnable run = new Runnable() {
            public void run() {
                MultiViewElementCallback c = callback;

                if (c == null) {
                    return;
                }
                TopComponent tc = c.getTopComponent();
                if (tc == null) {
                    return;
                }
                Node nd = ((JRTXDataObject)support.getDataObject()).getNodeDelegate();
                tc.setName(nd.getName() );
                tc.setDisplayName(nd.getDisplayName());
                tc.setHtmlDisplayName(nd.getHtmlDisplayName());
                tc.setToolTipText( nd.getShortDescription() );
            }
        };

        if (SwingUtilities.isEventDispatchThread ())
            run.run();
        else
            SwingUtilities.invokeLater (run);
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:JRTXVisualView.java

示例3: run

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void run() {
    MultiViewElementCallback c = callback;
    if (c == null) {
        return;
    }
    TopComponent tc = c.getTopComponent();
    if (tc == null) {
        return;
    }
    
    super.updateName();
    Node nd = ((JRTXDataObject)((JRTXEditorSupport)cloneableEditorSupport()).getDataObject()).getNodeDelegate();
    tc.setName(nd.getName() );
    tc.setDisplayName(nd.getDisplayName());
    tc.setHtmlDisplayName(nd.getHtmlDisplayName());
    //tc.setIcon( nd.getIcon( BeanInfo.ICON_COLOR_16x16));
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:18,代码来源:JRTXSourceEditor.java

示例4: updateName

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void updateName() {
    
    Runnable run = new Runnable() {
        public void run() {
            MultiViewElementCallback c = callback;
            
            if (c == null) {
                return;
            }
            TopComponent tc = c.getTopComponent();
            if (tc == null) {
                return;
            }
            Node nd = ((JrxmlDataObject)support.getDataObject()).getNodeDelegate();
            tc.setName(nd.getName() );
            tc.setDisplayName(nd.getDisplayName());
            tc.setHtmlDisplayName(nd.getHtmlDisplayName());
            tc.setToolTipText( nd.getShortDescription() );
        }
    };
    
    if (SwingUtilities.isEventDispatchThread ())
        run.run();
    else
        SwingUtilities.invokeLater (run);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:JrxmlVisualView.java

示例5: run

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void run() {
    MultiViewElementCallback c = callback;
    if (c == null) {
        return;
    }
    TopComponent tc = c.getTopComponent();
    if (tc == null) {
        return;
    }
    
    super.updateName();
    Node nd = ((JRCTXDataObject)((JRCTXEditorSupport)cloneableEditorSupport()).getDataObject()).getNodeDelegate();
    tc.setName(nd.getName() );
    tc.setDisplayName(nd.getDisplayName());
    tc.setHtmlDisplayName(nd.getHtmlDisplayName());
    //tc.setIcon( nd.getIcon( BeanInfo.ICON_COLOR_16x16));
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:18,代码来源:JRCTXSourceEditor.java

示例6: updateName

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void updateName() {

        Runnable run = new Runnable() {
            public void run() {
                MultiViewElementCallback c = callback;

                if (c == null) {
                    return;
                }
                TopComponent tc = c.getTopComponent();
                if (tc == null) {
                    return;
                }
                Node nd = ((JRCTXDataObject)support.getDataObject()).getNodeDelegate();
                tc.setName(nd.getName() );
                tc.setDisplayName(nd.getDisplayName());
                tc.setHtmlDisplayName(nd.getHtmlDisplayName());
                tc.setToolTipText( nd.getShortDescription() );
            }
        };

        if (SwingUtilities.isEventDispatchThread ())
            run.run();
        else
            SwingUtilities.invokeLater (run);
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:27,代码来源:JRCTXVisualView.java

示例7: copyNameToCallbackTopComponent

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
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();
  }
}
 
开发者ID:raydac,项目名称:netbeans-mmd-plugin,代码行数:16,代码来源:MMDGraphEditor.java

示例8: updateName

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void updateName() {
   // Mutex.EVENT.readAccess(this);
   //IOUtils.runInAWTNoBlocking(
    
    Runnable run = new Runnable() {
        public void run() {
            MultiViewElementCallback c = callback;
            
            if (c == null) {
                return;
            }
            TopComponent tc = c.getTopComponent();
            if (tc == null) {
                return;
            }
            Node nd = ((JrxmlDataObject)((JrxmlEditorSupport)cloneableEditorSupport()).getDataObject()).getNodeDelegate();
            tc.setName(nd.getName() );
            tc.setDisplayName(nd.getDisplayName());
            tc.setHtmlDisplayName(nd.getHtmlDisplayName());
            tc.setIcon( nd.getIcon( BeanInfo.ICON_COLOR_16x16));
        }
    };
    
    if (SwingUtilities.isEventDispatchThread ())
        run.run();
    else
        SwingUtilities.invokeLater (run);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:29,代码来源:JrxmlSourceEditor.java

示例9: updateName

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void updateName() {
   // Mutex.EVENT.readAccess(this);
   //IOUtils.runInAWTNoBlocking(
    
    Runnable run = new Runnable() {
        public void run() {
            MultiViewElementCallback c = callback;
            
            if (c == null) {
                return;
            }
            TopComponent tc = c.getTopComponent();
            if (tc == null) {
                return;
            }
            Node nd = ((JRTXDataObject)((JRTXEditorSupport)cloneableEditorSupport()).getDataObject()).getNodeDelegate();
            tc.setName(nd.getName() );
            tc.setDisplayName(nd.getDisplayName());
            tc.setHtmlDisplayName(nd.getHtmlDisplayName());
            tc.setIcon( nd.getIcon( BeanInfo.ICON_COLOR_16x16));
        }
    };
    
    if (SwingUtilities.isEventDispatchThread ())
        run.run();
    else
        SwingUtilities.invokeLater (run);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:29,代码来源:JRTXSourceEditor.java

示例10: updateName

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
public void updateName() {
   // Mutex.EVENT.readAccess(this);
   //IOUtils.runInAWTNoBlocking(
    
    Runnable run = new Runnable() {
        public void run() {
            MultiViewElementCallback c = callback;
            
            if (c == null) {
                return;
            }
            TopComponent tc = c.getTopComponent();
            if (tc == null) {
                return;
            }
            Node nd = ((JRCTXDataObject)((JRCTXEditorSupport)cloneableEditorSupport()).getDataObject()).getNodeDelegate();
            tc.setName(nd.getName() );
            tc.setDisplayName(nd.getDisplayName());
            tc.setHtmlDisplayName(nd.getHtmlDisplayName());
            tc.setIcon( nd.getIcon( BeanInfo.ICON_COLOR_16x16));
        }
    };
    
    if (SwingUtilities.isEventDispatchThread ())
        run.run();
    else
        SwingUtilities.invokeLater (run);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:29,代码来源:JRCTXSourceEditor.java

示例11: setMultiViewCallback

import org.netbeans.core.spi.multiview.MultiViewElementCallback; //导入方法依赖的package包/类
@Override
public void setMultiViewCallback(MultiViewElementCallback callback) {
    this.callBack = callback;
    TopComponent tc = callback.getTopComponent();
    tc.setDisplayName(ds.getName());
    tc.setToolTipText(ds.getPath());
}
 
开发者ID:Depter,项目名称:JRLib,代码行数:8,代码来源:DataSourceTableMultiviewElement.java


注:本文中的org.netbeans.core.spi.multiview.MultiViewElementCallback.getTopComponent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。