1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.pcmbench.tabs.operations; |
5 | |
6 | import org.eclipse.jface.viewers.TableViewer; |
7 | import org.eclipse.swt.events.SelectionEvent; |
8 | import org.eclipse.swt.events.SelectionListener; |
9 | |
10 | import de.uka.ipd.sdq.pcmbench.tabs.generic.SelectionChangedListener; |
11 | |
12 | /** |
13 | * @author groenda |
14 | */ |
15 | public class InfrastructureSignatureDeleteCellValueListener extends SelectionChangedListener implements SelectionListener { |
16 | |
17 | /** SWT control of the table displaying the infrastructure signatures. */ |
18 | private TableViewer viewer; |
19 | |
20 | /** Constructor */ |
21 | public InfrastructureSignatureDeleteCellValueListener(TableViewer viewer) { |
22 | this.viewer = viewer; |
23 | } |
24 | |
25 | /* (non-Javadoc) |
26 | * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) |
27 | */ |
28 | public void widgetSelected(SelectionEvent e) { |
29 | viewer.refresh(); |
30 | } |
31 | |
32 | /* (non-Javadoc) |
33 | * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent) |
34 | */ |
35 | public void widgetDefaultSelected(SelectionEvent e) { |
36 | // The implementation is not necessary. |
37 | } |
38 | } |