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


Java FilterTopComponent类代码示例

本文整理汇总了Java中com.sun.hotspot.igv.filterwindow.FilterTopComponent的典型用法代码示例。如果您正苦于以下问题:Java FilterTopComponent类的具体用法?Java FilterTopComponent怎么用?Java FilterTopComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FilterTopComponent类属于com.sun.hotspot.igv.filterwindow包,在下文中一共展示了FilterTopComponent类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
protected void performAction(Node[] activatedNodes) {
    Object[] options = {"Yes",
        "No",
        "Cancel"
    };
    int n = JOptionPane.showOptionDialog(WindowManager.getDefault().getMainWindow(),
            "Do you really want to delete " + activatedNodes.length + " filter(s)?", "Delete Filters",
            JOptionPane.YES_NO_CANCEL_OPTION,
            JOptionPane.QUESTION_MESSAGE,
            null,
            options,
            options[2]);

    if (n == JOptionPane.YES_OPTION) {
        for (int i = 0; i < activatedNodes.length; i++) {
            FilterTopComponent.findInstance().removeFilter(activatedNodes[i].getLookup().lookup(Filter.class));
        }
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:21,代码来源:RemoveFilterAction.java

示例2: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
protected void performAction(Node[] activatedNodes) {
    Object[] options = {"Yes",
        "No",
        "Cancel"
    };
    int n = JOptionPane.showOptionDialog(WindowManager.getDefault().getMainWindow(),
            "Do you really want to delete " + activatedNodes.length + " filter/s?", "Delete?",
            JOptionPane.YES_NO_CANCEL_OPTION,
            JOptionPane.QUESTION_MESSAGE,
            null,
            options,
            options[2]);

    if (n == JOptionPane.YES_OPTION) {
        for (int i = 0; i < activatedNodes.length; i++) {
            FilterTopComponent.findInstance().removeFilter(activatedNodes[i].getLookup().lookup(Filter.class));
        }
    }
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:20,代码来源:RemoveFilterAction.java

示例3: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:8,代码来源:MoveFilterDownAction.java

示例4: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:8,代码来源:MoveFilterUpAction.java

示例5: actionPerformed

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent evt) {
    TopComponent win = FilterTopComponent.findInstance();
    win.open();
    win.requestActive();
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:7,代码来源:FilterAction.java

示例6: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
public void performAction() {
    FilterTopComponent.findInstance().newFilter();
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:5,代码来源:NewFilterAction.java

示例7: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
public void performAction() {
    FilterTopComponent.findInstance().addFilterSetting();
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:5,代码来源:SaveFilterSettingsAction.java

示例8: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
@Override
public void performAction() {
    FilterTopComponent.findInstance().removeFilterSetting();
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:5,代码来源:RemoveFilterSettingsAction.java

示例9: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:7,代码来源:MoveFilterDownAction.java

示例10: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:7,代码来源:MoveFilterUpAction.java

示例11: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
public void performAction() {
    FilterTopComponent.findInstance().newFilter();
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:4,代码来源:NewFilterAction.java

示例12: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
public void performAction() {
    FilterTopComponent.findInstance().addFilterSetting();
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:4,代码来源:SaveFilterSettingsAction.java

示例13: performAction

import com.sun.hotspot.igv.filterwindow.FilterTopComponent; //导入依赖的package包/类
public void performAction() {
    FilterTopComponent.findInstance().removeFilterSetting();
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:4,代码来源:RemoveFilterSettingsAction.java


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