Skip to content

Commit f62c43f

Browse files
generic key, value helper class for combo box model
displays the value in the combo box, key is used internally only (e.g. for reporterId)
1 parent ad3d582 commit f62c43f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2019 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.utplsql.sqldev.ui.runner
17+
18+
import java.util.AbstractMap
19+
20+
class ComboBoxItem<K,V> extends AbstractMap.SimpleEntry<K,V> {
21+
new(K key, V value) {
22+
super(key, value)
23+
}
24+
25+
override toString() {
26+
return value.toString
27+
}
28+
}

0 commit comments

Comments
 (0)