com.sun.hotspot.igv.data.ChangedEvent Java Examples

The following examples show how to use com.sun.hotspot.igv.data.ChangedEvent. 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: FilterTopComponent.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private FilterTopComponent() {
    filterSettingsChangedEvent = new ChangedEvent<FilterTopComponent>(this);
    initComponents();
    setName(NbBundle.getMessage(FilterTopComponent.class, "CTL_FilterTopComponent"));
    setToolTipText(NbBundle.getMessage(FilterTopComponent.class, "HINT_FilterTopComponent"));
    //        setIcon(Utilities.loadImage(ICON_PATH, true));

    sequence = new FilterChain();
    filterChain = new FilterChain();
    initFilters();
    manager = new ExplorerManager();
    manager.setRootContext(new AbstractNode(new FilterChildren()));
    associateLookup(ExplorerUtils.createLookup(manager, getActionMap()));
    view = new CheckListView();

    ToolbarPool.getDefault().setPreferredIconSize(16);
    Toolbar toolBar = new Toolbar();
    Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
    toolBar.setBorder(b);
    comboBox = new JComboBox();
    toolBar.add(comboBox);
    this.add(toolBar, BorderLayout.NORTH);
    toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class));
    toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class));
    toolBar.addSeparator();
    toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(NewFilterAction.get(NewFilterAction.class));
    this.add(view, BorderLayout.CENTER);

    filterSettings = new ArrayList<FilterSetting>();
    updateComboBox();

    comboBox.addActionListener(comboBoxActionListener);
    setChain(filterChain);
}
 
Example #2
Source File: FilterTopComponent.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private FilterTopComponent() {
    filterSettingsChangedEvent = new ChangedEvent<FilterTopComponent>(this);
    initComponents();
    setName(NbBundle.getMessage(FilterTopComponent.class, "CTL_FilterTopComponent"));
    setToolTipText(NbBundle.getMessage(FilterTopComponent.class, "HINT_FilterTopComponent"));
    //        setIcon(Utilities.loadImage(ICON_PATH, true));

    sequence = new FilterChain();
    filterChain = new FilterChain();
    initFilters();
    manager = new ExplorerManager();
    manager.setRootContext(new AbstractNode(new FilterChildren()));
    associateLookup(ExplorerUtils.createLookup(manager, getActionMap()));
    view = new CheckListView();

    ToolbarPool.getDefault().setPreferredIconSize(16);
    Toolbar toolBar = new Toolbar();
    Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
    toolBar.setBorder(b);
    comboBox = new JComboBox();
    toolBar.add(comboBox);
    this.add(toolBar, BorderLayout.NORTH);
    toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class));
    toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class));
    toolBar.addSeparator();
    toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(NewFilterAction.get(NewFilterAction.class));
    this.add(view, BorderLayout.CENTER);

    filterSettings = new ArrayList<FilterSetting>();
    updateComboBox();

    comboBox.addActionListener(comboBoxActionListener);
    setChain(filterChain);
}
 
Example #3
Source File: FilterTopComponent.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private FilterTopComponent() {
    filterSettingsChangedEvent = new ChangedEvent<FilterTopComponent>(this);
    initComponents();
    setName(NbBundle.getMessage(FilterTopComponent.class, "CTL_FilterTopComponent"));
    setToolTipText(NbBundle.getMessage(FilterTopComponent.class, "HINT_FilterTopComponent"));
    //        setIcon(Utilities.loadImage(ICON_PATH, true));

    sequence = new FilterChain();
    filterChain = new FilterChain();
    initFilters();
    manager = new ExplorerManager();
    manager.setRootContext(new AbstractNode(new FilterChildren()));
    associateLookup(ExplorerUtils.createLookup(manager, getActionMap()));
    view = new CheckListView();

    ToolbarPool.getDefault().setPreferredIconSize(16);
    Toolbar toolBar = new Toolbar();
    Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
    toolBar.setBorder(b);
    comboBox = new JComboBox();
    toolBar.add(comboBox);
    this.add(toolBar, BorderLayout.NORTH);
    toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class));
    toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class));
    toolBar.addSeparator();
    toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(NewFilterAction.get(NewFilterAction.class));
    this.add(view, BorderLayout.CENTER);

    filterSettings = new ArrayList<FilterSetting>();
    updateComboBox();

    comboBox.addActionListener(comboBoxActionListener);
    setChain(filterChain);
}
 
Example #4
Source File: FilterTopComponent.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private FilterTopComponent() {
    filterSettingsChangedEvent = new ChangedEvent<FilterTopComponent>(this);
    initComponents();
    setName(NbBundle.getMessage(FilterTopComponent.class, "CTL_FilterTopComponent"));
    setToolTipText(NbBundle.getMessage(FilterTopComponent.class, "HINT_FilterTopComponent"));
    //        setIcon(Utilities.loadImage(ICON_PATH, true));

    sequence = new FilterChain();
    filterChain = new FilterChain();
    initFilters();
    manager = new ExplorerManager();
    manager.setRootContext(new AbstractNode(new FilterChildren()));
    associateLookup(ExplorerUtils.createLookup(manager, getActionMap()));
    view = new CheckListView();

    ToolbarPool.getDefault().setPreferredIconSize(16);
    Toolbar toolBar = new Toolbar();
    Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
    toolBar.setBorder(b);
    comboBox = new JComboBox();
    toolBar.add(comboBox);
    this.add(toolBar, BorderLayout.NORTH);
    toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class));
    toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class));
    toolBar.addSeparator();
    toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(NewFilterAction.get(NewFilterAction.class));
    this.add(view, BorderLayout.CENTER);

    filterSettings = new ArrayList<FilterSetting>();
    updateComboBox();

    comboBox.addActionListener(comboBoxActionListener);
    setChain(filterChain);
}
 
Example #5
Source File: FilterTopComponent.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private FilterTopComponent() {
    filterSettingsChangedEvent = new ChangedEvent<>(this);
    initComponents();
    setName(NbBundle.getMessage(FilterTopComponent.class, "CTL_FilterTopComponent"));
    setToolTipText(NbBundle.getMessage(FilterTopComponent.class, "HINT_FilterTopComponent"));
    //        setIcon(Utilities.loadImage(ICON_PATH, true));

    sequence = new FilterChain();
    filterChain = new FilterChain();
    initFilters();
    manager = new ExplorerManager();
    manager.setRootContext(new AbstractNode(new FilterChildren()));
    associateLookup(ExplorerUtils.createLookup(manager, getActionMap()));
    view = new CheckListView();

    ToolbarPool.getDefault().setPreferredIconSize(16);
    Toolbar toolBar = new Toolbar();
    Border b = (Border) UIManager.get("Nb.Editor.Toolbar.border"); //NOI18N
    toolBar.setBorder(b);
    comboBox = new JComboBox();
    toolBar.add(comboBox);
    this.add(toolBar, BorderLayout.NORTH);
    toolBar.add(SaveFilterSettingsAction.get(SaveFilterSettingsAction.class));
    toolBar.add(RemoveFilterSettingsAction.get(RemoveFilterSettingsAction.class));
    toolBar.addSeparator();
    toolBar.add(NewFilterAction.get(NewFilterAction.class));
    toolBar.add(RemoveFilterAction.get(RemoveFilterAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(MoveFilterUpAction.get(MoveFilterUpAction.class).createContextAwareInstance(this.getLookup()));
    toolBar.add(MoveFilterDownAction.get(MoveFilterDownAction.class).createContextAwareInstance(this.getLookup()));
    this.add(view, BorderLayout.CENTER);

    filterSettings = new ArrayList<>();
    updateComboBox();

    comboBox.addActionListener(comboBoxActionListener);
    setChain(filterChain);
}
 
Example #6
Source File: FilterChain.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public FilterChain(FilterChain f) {
    this.filters = new ArrayList<Filter>(f.filters);
    changedEvent = new ChangedEvent<FilterChain>(this);
    this.fireEvents = true;
}
 
Example #7
Source File: AbstractFilter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<Filter> getChangedEvent() {
    return changedEvent;
}
 
Example #8
Source File: FilterChain.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<FilterChain> getChangedEvent() {
    return changedEvent;
}
 
Example #9
Source File: DiagramViewModel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<DiagramViewModel> getDiagramChangedEvent() {
    return diagramChangedEvent;
}
 
Example #10
Source File: DiagramViewModel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<DiagramViewModel> getViewChangedEvent() {
    return viewChangedEvent;
}
 
Example #11
Source File: RangeSliderModel.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<RangeSliderModel> getColorChangedEvent() {
    return colorChangedEvent;
}
 
Example #12
Source File: Filter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
ChangedEvent<Filter> getChangedEvent();
 
Example #13
Source File: FilterChain.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public FilterChain(FilterChain f) {
    this.filters = new ArrayList<>(f.filters);
    changedEvent = new ChangedEvent<>(this);
}
 
Example #14
Source File: CheckNode.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<CheckNode> getSelectionChangedEvent() {
    return selectionChangedEvent;
}
 
Example #15
Source File: EditorTopComponent.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ChangedEvent<DiagramProvider> getChangedEvent() {
    return diagramChangedEvent;
}
 
Example #16
Source File: SelectionCoordinator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private SelectionCoordinator() {
    selectedChangedEvent = new ChangedEvent<>(this);
    highlightedChangedEvent = new ChangedEvent<>(this);
    selectedObjects = new HashSet<>();
    highlightedObjects = new HashSet<>();
}
 
Example #17
Source File: SelectionCoordinator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<SelectionCoordinator> getSelectedChangedEvent() {
    return selectedChangedEvent;
}
 
Example #18
Source File: SelectionCoordinator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<SelectionCoordinator> getHighlightedChangedEvent() {
    return highlightedChangedEvent;
}
 
Example #19
Source File: FilterChain.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public FilterChain() {
    filters = new ArrayList<Filter>();
    changedEvent = new ChangedEvent<FilterChain>(this);
    this.fireEvents = true;
}
 
Example #20
Source File: Group.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<Group> getChangedEvent() {
    return changedEvent;
}
 
Example #21
Source File: AbstractFilter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public AbstractFilter() {
    changedEvent = new ChangedEvent<Filter>(this);
    properties = new Properties();
}
 
Example #22
Source File: FilterTopComponent.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<FilterTopComponent> getFilterSettingsChangedEvent() {
    return filterSettingsChangedEvent;
}
 
Example #23
Source File: CheckNode.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<CheckNode> getSelectionChangedEvent() {
    return selectionChangedEvent;
}
 
Example #24
Source File: CheckNode.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public CheckNode(Children c, Lookup lookup) {
    super(c, lookup);
    selectionChangedEvent = new ChangedEvent<CheckNode>(this);
    selected = false;
    enabled = true;
}
 
Example #25
Source File: RangeSliderModel.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<RangeSliderModel> getChangedEvent() {
    return changedEvent;
}
 
Example #26
Source File: RangeSliderModel.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<RangeSliderModel> getColorChangedEvent() {
    return colorChangedEvent;
}
 
Example #27
Source File: Group.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<Group> getChangedEvent() {
    return changedEvent;
}
 
Example #28
Source File: Group.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private void init() {
    changedEvent = new ChangedEvent<Group>(this);
}
 
Example #29
Source File: DiagramViewModel.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<DiagramViewModel> getViewPropertiesChangedEvent() {
    return viewPropertiesChangedEvent;
}
 
Example #30
Source File: DiagramViewModel.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ChangedEvent<DiagramViewModel> getViewChangedEvent() {
    return viewChangedEvent;
}