com.sun.hotspot.igv.filterwindow.FilterTopComponent Java Examples

The following examples show how to use com.sun.hotspot.igv.filterwindow.FilterTopComponent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RemoveFilterAction.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #2
Source File: RemoveFilterAction.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@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));
        }
    }
}
 
Example #3
Source File: RemoveFilterAction.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #4
Source File: RemoveFilterAction.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #5
Source File: RemoveFilterAction.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #6
Source File: RemoveFilterAction.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #7
Source File: RemoveFilterAction.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #8
Source File: RemoveFilterAction.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
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));
        }
    }
}
 
Example #9
Source File: MoveFilterUpAction.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
Example #10
Source File: MoveFilterDownAction.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
Example #11
Source File: SaveFilterSettingsAction.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().addFilterSetting();
}
 
Example #12
Source File: MoveFilterDownAction.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
Example #13
Source File: SaveFilterSettingsAction.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void performAction() {
    FilterTopComponent.findInstance().addFilterSetting();
}
 
Example #14
Source File: RemoveFilterSettingsAction.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void performAction() {
    FilterTopComponent.findInstance().removeFilterSetting();
}
 
Example #15
Source File: MoveFilterDownAction.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
Example #16
Source File: MoveFilterUpAction.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
Example #17
Source File: SaveFilterSettingsAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().addFilterSetting();
}
 
Example #18
Source File: NewFilterAction.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().newFilter();
}
 
Example #19
Source File: MoveFilterUpAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
Example #20
Source File: RemoveFilterSettingsAction.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().removeFilterSetting();
}
 
Example #21
Source File: MoveFilterDownAction.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
Example #22
Source File: RemoveFilterSettingsAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().removeFilterSetting();
}
 
Example #23
Source File: MoveFilterUpAction.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
Example #24
Source File: NewFilterAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().newFilter();
}
 
Example #25
Source File: NewFilterAction.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().newFilter();
}
 
Example #26
Source File: SaveFilterSettingsAction.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().addFilterSetting();
}
 
Example #27
Source File: RemoveFilterSettingsAction.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void performAction() {
    FilterTopComponent.findInstance().removeFilterSetting();
}
 
Example #28
Source File: MoveFilterDownAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterDown(c);
    }
}
 
Example #29
Source File: MoveFilterUpAction.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}
 
Example #30
Source File: MoveFilterUpAction.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected void performAction(Node[] activatedNodes) {
    for (Node n : activatedNodes) {
        Filter c = n.getLookup().lookup(Filter.class);
        FilterTopComponent.findInstance().getSequence().moveFilterUp(c);
    }
}