本文整理汇总了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));
}
示例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);
}
示例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));
}
示例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);
}
示例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));
}
示例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);
}
示例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();
}
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}