作者:saanenkim | 来源:互联网 | 2024-10-30 18:43
本文整理了Java中org.openide.windows.TopComponent.componentOpened()方法的一些代码示例,展示了TopComponent.componentOpene
本文整理了Java中org.openide.windows.TopComponent.componentOpened()
方法的一些代码示例,展示了TopComponent.componentOpened()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TopComponent.componentOpened()
方法的具体详情如下:
包路径:org.openide.windows.TopComponent
类名称:TopComponent
方法名:componentOpened
TopComponent.componentOpened介绍
[英]Called only when top component was closed on all workspaces before and now is opened for the first time on some workspace. The intent is to provide subclasses information about TopComponent's life cycle across all existing workspaces. Subclasses will usually perform initializing tasks here.
[中]仅当top component以前在所有工作区上关闭,现在在某些工作区上首次打开时调用。其目的是在所有现有工作区中提供有关TopComponent生命周期的子类信息。子类通常在这里执行初始化任务。
代码示例
代码示例来源:origin: eu.limetri.client/mapviewer-nb-swing
@Override
protected void componentOpened() {
super.componentOpened();
}
代码示例来源:origin: org.codehaus.mevenide/lifecycle-build-plan
@Override
protected void componentOpened() {
super.componentOpened();
}
代码示例来源:origin: it.tidalwave.blueshades/it-tidalwave-blueshades-profileevaluation-ui-netbeans
@Override
public void componentOpened()
{
super.componentOpened();
activator.activate();
}
代码示例来源:origin: it.tidalwave.blueshades/it-tidalwave-blueshades-uniformity-ui-netbeans
@Override
public void componentOpened()
{
super.componentOpened();
activator.activate();
}
代码示例来源:origin: it.tidalwave.blueargyle/it-tidalwave-uniformity-ui-netbeans
@Override
public void componentOpened()
{
super.componentOpened();
activator.activate();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
@Override
protected void componentOpened() {
super.componentOpened();
refreshContent();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-localhistory
@Override
public void componentOpened() {
super.componentOpened();
hc.componentOpened();
}
代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-windows
/*******************************************************************************************************************
*
* {@inheritDoc}
*
******************************************************************************************************************/
@Override
@edu.umd.cs.findbugs.annotations.SuppressWarnings("SIC_INNER_SHOULD_BE_STATIC_ANON")
protected void componentOpened()
{
super.componentOpened();
runRoles(new RoleRunner()
{
@Override
public void run (final @Nonnull TopComponentRole role)
{
role.notifyOpened();
}
});
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-designer
protected void componentOpened() {
super.componentOpened();
tree = new JTree();
tree.setRootVisible(true);
scrollPane = new JScrollPane(tree);
refresh();
setLayout(new BorderLayout());
add(scrollPane, BorderLayout.CENTER);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-maven-repository
@Override
public void componentOpened() {
super.componentOpened();
result = getLookup().lookupResult(DependencyNode.class);
RequestProcessor.getDefault().post(new Runnable() {
@Override
public void run() {
populateFields();
}
});
result.addLookupListener(this);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Notifies component that it was opened (and wasn't opened on any
* workspace before). Top component manager that implements Component
* inner interface of this class should send open notifications via
* calling this method
* @param tc the top component to be notified
*/
protected void componentOpenNotify (TopComponent tc) {
try {
tc.componentOpened();
} catch(RuntimeException re) {
IllegalStateException ise = new IllegalStateException("[Winsys] TopComponent " + tc // NOI18N
+ " throws runtime exception from its componentOpened() method. Repair it!"); // NOI18N
ErrorManager.getDefault().annotate(ise, re);
ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ise);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Notifies component that it was opened (and wasn't opened on any
* workspace before). Top component manager that implements Component
* inner interface of this class should send open notifications via
* calling this method
* @param tc the top component to be notified
*/
protected void componentOpenNotify (TopComponent tc) {
try {
tc.componentOpened();
} catch(RuntimeException re) {
IllegalStateException ise = new IllegalStateException("[Winsys] TopComponent " + tc // NOI18N
+ " throws runtime exception from its componentOpened() method. Repair it!"); // NOI18N
ErrorManager.getDefault().annotate(ise, re);
ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ise);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-maven-repository
@Override
public void componentOpened() {
super.componentOpened();
result = getLookup().lookupResult(MavenProject.class);
populateFields();
result.addLookupListener(this);
}