1 | PluginListCellRenderer() {↵ | | 1 | CriteriaComboBoxRenderer() {↵
|
2 | super();↵ | | 2 | super();↵
|
|
3 | try {↵ | | 3 | try {↵
|
4 | pluginHandler = PluginManager.getInstance()↵ | | 4 | pluginHandler = PluginManager.getInstance()↵
|
5 | .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_IMPORT);↵ | | 5 | .getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_MAIL_FILTER);↵
|
6 | } catch (PluginHandlerNotFoundException ex) {↵ | | 6 | } catch (PluginHandlerNotFoundException ex) {↵
|
7 | ErrorDialog.createDialog(ex.getMessage(), ex);↵ | | 7 | ErrorDialog.createDialog(ex.getMessage(), ex);↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
|
10 | /*↵ | | 10 | /*↵
|
11 | * (non-Javadoc)↵ | | 11 | * (non-Javadoc)↵
|
12 | * ↵ | | 12 | * ↵
|
13 | * @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.swing.JList,↵ | | 13 | * @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.swing.JList,↵
|
14 | * java.lang.Object, int, boolean, boolean)↵ | | 14 | * java.lang.Object, int, boolean, boolean)↵
|
15 | */↵ | | 15 | */↵
|
16 | public Component getListCellRendererComponent(JList list, Object value,↵ | | 16 | public Component getListCellRendererComponent(JList list, Object value,↵
|
17 | int index, boolean isSelected, boolean cellHasFocus) {↵ | | 17 | int index, boolean isSelected, boolean cellHasFocus) {↵
|
18 | if (isSelected) {↵ | | 18 | if (isSelected) {↵
|
19 | setBackground(list.getSelectionBackground());↵ | | 19 | setBackground(list.getSelectionBackground());↵
|
20 | setForeground(list.getSelectionForeground());↵ | | 20 | setForeground(list.getSelectionForeground());↵
|
21 | } else {↵ | | 21 | } else {↵
|
22 | setBackground(list.getBackground());↵ | | 22 | setBackground(list.getBackground());↵
|
23 | setForeground(list.getForeground());↵ | | 23 | setForeground(list.getForeground());↵
|
24 | }↵ | | 24 | }↵
|
|
25 | setBorder((cellHasFocus) ? UIManager↵ | | 25 | setBorder((cellHasFocus) ? UIManager↵
|
26 | .getBorder("List.focusCellHighlightBorder") : noFocusBorder);↵ | | 26 | .getBorder("List.focusCellHighlightBorder") : noFocusBorder);↵
|
|
27 | // id = org.columba.example.HelloWorld$HelloWorldPlugin↵ | | 27 | // id = org.columba.example.HelloWorld$HelloWorldPlugin↵
|
28 | String id = (String) value | | 28 | String id = (String) value
|