com.sun.hotspot.igv.filter.FilterSetting Java Examples
The following examples show how to use
com.sun.hotspot.igv.filter.FilterSetting.
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 openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #2
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #3
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #4
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #5
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #6
Source File: FilterTopComponent.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #7
Source File: FilterTopComponent.java From hottub with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #8
Source File: FilterTopComponent.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #9
Source File: FilterTopComponent.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #10
Source File: FilterTopComponent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #11
Source File: FilterTopComponent.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #12
Source File: FilterTopComponent.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #13
Source File: FilterTopComponent.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #14
Source File: FilterTopComponent.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); int filterSettingsCount = in.readInt(); for (int i = 0; i < filterSettingsCount; i++) { String name = in.readUTF(); FilterSetting s = new FilterSetting(name); int filterCount = in.readInt(); for (int j = 0; j < filterCount; j++) { String filterName = in.readUTF(); CustomFilter filter = findFilter(filterName); if (filter != null) { s.addFilter(filter); } } filterSettings.add(s); } updateComboBox(); }
Example #15
Source File: FilterTopComponent.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #16
Source File: FilterTopComponent.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void updateComboBoxSelection() { List<Filter> filters = this.getFilterChain().getFilters(); boolean found = false; for (FilterSetting s : filterSettings) { if (s.getFilterCount() == filters.size()) { boolean ok = true; for (Filter f : filters) { if (!s.containsFilter(f)) { ok = false; } } if (ok) { if (comboBox.getSelectedItem() != s) { comboBox.setSelectedItem(s); } found = true; break; } } } if (!found && comboBox.getSelectedItem() != customFilterSetting) { comboBox.setSelectedItem(customFilterSetting); } }
Example #17
Source File: FilterTopComponent.java From hottub with GNU General Public License v2.0 | 5 votes |
private FilterSetting createFilterSetting(String name) { FilterSetting s = new FilterSetting(name); FilterChain chain = this.getFilterChain(); for (Filter f : chain.getFilters()) { s.addFilter(f); } return s; }
Example #18
Source File: FilterTopComponent.java From hottub with GNU General Public License v2.0 | 5 votes |
private void updateComboBox() { comboBox.removeAllItems(); comboBox.addItem(customFilterSetting); for (FilterSetting s : filterSettings) { comboBox.addItem(s); } this.updateComboBoxSelection(); }
Example #19
Source File: FilterTopComponent.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void updateComboBox() { comboBox.removeAllItems(); comboBox.addItem(customFilterSetting); for (FilterSetting s : filterSettings) { comboBox.addItem(s); } this.updateComboBoxSelection(); }
Example #20
Source File: FilterTopComponent.java From hottub with GNU General Public License v2.0 | 5 votes |
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 #21
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void updateComboBox() { comboBox.removeAllItems(); comboBox.addItem(customFilterSetting); for (FilterSetting s : filterSettings) { comboBox.addItem(s); } this.updateComboBoxSelection(); }
Example #22
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void addFilterSetting() { NotifyDescriptor.InputLine l = new NotifyDescriptor.InputLine("Enter a name:", "Filter"); if (DialogDisplayer.getDefault().notify(l) == NotifyDescriptor.OK_OPTION) { String name = l.getInputText(); FilterSetting toRemove = null; for (FilterSetting s : filterSettings) { if (s.getName().equals(name)) { NotifyDescriptor.Confirmation conf = new NotifyDescriptor.Confirmation("Filter \"" + name + "\" already exists, to you want to overwrite?", "Filter"); if (DialogDisplayer.getDefault().notify(conf) == NotifyDescriptor.YES_OPTION) { toRemove = s; break; } else { return; } } } if (toRemove != null) { filterSettings.remove(toRemove); } FilterSetting setting = createFilterSetting(name); filterSettings.add(setting); // Sort alphabetically Collections.sort(filterSettings, new Comparator<FilterSetting>() { public int compare(FilterSetting o1, FilterSetting o2) { return o1.getName().compareTo(o2.getName()); } }); updateComboBox(); } }
Example #23
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private FilterSetting createFilterSetting(String name) { FilterSetting s = new FilterSetting(name); FilterChain chain = this.getFilterChain(); for (Filter f : chain.getFilters()) { s.addFilter(f); } return s; }
Example #24
Source File: FilterTopComponent.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 #25
Source File: FilterTopComponent.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 #26
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void updateComboBox() { comboBox.removeAllItems(); comboBox.addItem(customFilterSetting); for (FilterSetting s : filterSettings) { comboBox.addItem(s); } this.updateComboBoxSelection(); }
Example #27
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void addFilterSetting() { NotifyDescriptor.InputLine l = new NotifyDescriptor.InputLine("Enter a name:", "Filter"); if (DialogDisplayer.getDefault().notify(l) == NotifyDescriptor.OK_OPTION) { String name = l.getInputText(); FilterSetting toRemove = null; for (FilterSetting s : filterSettings) { if (s.getName().equals(name)) { NotifyDescriptor.Confirmation conf = new NotifyDescriptor.Confirmation("Filter \"" + name + "\" already exists, to you want to overwrite?", "Filter"); if (DialogDisplayer.getDefault().notify(conf) == NotifyDescriptor.YES_OPTION) { toRemove = s; break; } else { return; } } } if (toRemove != null) { filterSettings.remove(toRemove); } FilterSetting setting = createFilterSetting(name); filterSettings.add(setting); // Sort alphabetically Collections.sort(filterSettings, new Comparator<FilterSetting>() { public int compare(FilterSetting o1, FilterSetting o2) { return o1.getName().compareTo(o2.getName()); } }); updateComboBox(); } }
Example #28
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private FilterSetting createFilterSetting(String name) { FilterSetting s = new FilterSetting(name); FilterChain chain = this.getFilterChain(); for (Filter f : chain.getFilters()) { s.addFilter(f); } return s; }
Example #29
Source File: FilterTopComponent.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private FilterSetting createFilterSetting(String name) { FilterSetting s = new FilterSetting(name); FilterChain chain = this.getFilterChain(); for (Filter f : chain.getFilters()) { s.addFilter(f); } return s; }
Example #30
Source File: FilterTopComponent.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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); }