858
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
package com.nokia.carbide.remoteconnections.internal.ui;
|
|
20 |
|
|
21 |
import com.nokia.carbide.remoteconnections.Messages;
|
|
22 |
import com.nokia.carbide.remoteconnections.RemoteConnectionsActivator;
|
|
23 |
import com.nokia.carbide.remoteconnections.interfaces.*;
|
|
24 |
import com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionListener;
|
|
25 |
import com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionsManagerListener;
|
|
26 |
import com.nokia.carbide.remoteconnections.internal.registry.Registry;
|
|
27 |
import com.nokia.carbide.remoteconnections.settings.ui.SettingsWizard;
|
|
28 |
import com.nokia.cpp.internal.api.utils.core.Check;
|
|
29 |
import com.nokia.cpp.internal.api.utils.core.ListenerList;
|
|
30 |
|
|
31 |
import org.eclipse.core.runtime.IStatus;
|
|
32 |
import org.eclipse.core.runtime.Status;
|
|
33 |
import org.eclipse.jface.dialogs.Dialog;
|
|
34 |
import org.eclipse.jface.dialogs.IDialogConstants;
|
|
35 |
import org.eclipse.jface.resource.JFaceResources;
|
|
36 |
import org.eclipse.jface.viewers.*;
|
|
37 |
import org.eclipse.swt.SWT;
|
|
38 |
import org.eclipse.swt.events.DisposeEvent;
|
|
39 |
import org.eclipse.swt.events.DisposeListener;
|
|
40 |
import org.eclipse.swt.events.SelectionAdapter;
|
|
41 |
import org.eclipse.swt.events.SelectionEvent;
|
|
42 |
import org.eclipse.swt.graphics.*;
|
|
43 |
import org.eclipse.swt.layout.GridData;
|
|
44 |
import org.eclipse.swt.layout.GridLayout;
|
|
45 |
import org.eclipse.swt.widgets.*;
|
|
46 |
|
|
47 |
import java.text.MessageFormat;
|
|
48 |
import java.util.*;
|
|
49 |
import java.util.List;
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Implementation of IClientServiceSiteUI2
|
|
53 |
*/
|
|
54 |
@SuppressWarnings("deprecation")
|
|
55 |
public class ClientServiceSiteUI2 implements IClientServiceSiteUI2, IConnectionListener, IConnectionsManagerListener {
|
|
56 |
|
|
57 |
private IService service;
|
|
58 |
private ComboViewer viewer;
|
|
59 |
private FontMetrics fm;
|
|
60 |
private Set<IConnectionType> compatibleConnectionTypes;
|
|
61 |
private Button editButton;
|
|
62 |
private Button newButton;
|
|
63 |
private String connection;
|
|
64 |
private ListenerList<IListener> listenerList;
|
|
65 |
private static final String UID = ".uid"; //$NON-NLS-1$
|
|
66 |
private Map<String, String> connectionNames;
|
|
67 |
|
|
68 |
public ClientServiceSiteUI2(IService service) {
|
|
69 |
Check.checkArg(service);
|
|
70 |
this.service = service;
|
|
71 |
}
|
|
72 |
|
|
73 |
public void createComposite(Composite parent) {
|
|
74 |
initializeDialogUnits(parent);
|
|
75 |
Group group = new Group(parent, SWT.NONE);
|
|
76 |
group.setText(Messages.getString("ClientServiceSiteUI2.UseConnectionGroupLabel")); //$NON-NLS-1$
|
|
77 |
group.setLayout(new GridLayout());
|
|
78 |
group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
|
|
79 |
group.setData(UID, "useConnectionGroup"); //$NON-NLS-1$
|
|
80 |
|
|
81 |
viewer = new ComboViewer(group, SWT.READ_ONLY);
|
|
82 |
viewer.setLabelProvider(new LabelProvider() {
|
|
83 |
@Override
|
|
84 |
public String getText(Object element) {
|
|
85 |
Check.checkContract(element instanceof String);
|
|
86 |
String id = (String) element;
|
|
87 |
return connectionNames.get(id);
|
|
88 |
}
|
|
89 |
});
|
|
90 |
viewer.setContentProvider(new ArrayContentProvider());
|
|
91 |
GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
|
|
92 |
viewer.getCombo().setLayoutData(gd);
|
|
93 |
viewer.getControl().setData(UID, "viewer"); //$NON-NLS-1$
|
|
94 |
viewer.addSelectionChangedListener(new ISelectionChangedListener() {
|
|
95 |
public void selectionChanged(SelectionChangedEvent event) {
|
|
96 |
IStructuredSelection selection = (IStructuredSelection) event.getSelection();
|
|
97 |
String connection = (String) selection.getFirstElement();
|
|
98 |
if (!connection.equals(ClientServiceSiteUI2.this.connection)) {
|
|
99 |
ClientServiceSiteUI2.this.connection = connection;
|
|
100 |
fireConnectionSelected();
|
|
101 |
}
|
|
102 |
}
|
|
103 |
});
|
|
104 |
|
|
105 |
final Composite composite = new Composite(group, SWT.NONE);
|
|
106 |
GridLayout layout = new GridLayout();
|
|
107 |
layout.numColumns = 2;
|
|
108 |
layout.makeColumnsEqualWidth = true;
|
|
109 |
layout.marginWidth = Dialog.convertHorizontalDLUsToPixels(fm, IDialogConstants.HORIZONTAL_MARGIN);
|
|
110 |
layout.marginHeight = Dialog.convertVerticalDLUsToPixels(fm, IDialogConstants.VERTICAL_MARGIN);
|
|
111 |
layout.horizontalSpacing = Dialog.convertHorizontalDLUsToPixels(fm, IDialogConstants.HORIZONTAL_SPACING);
|
|
112 |
layout.verticalSpacing = Dialog.convertVerticalDLUsToPixels(fm, IDialogConstants.VERTICAL_SPACING);
|
|
113 |
composite.setLayout(layout);
|
|
114 |
gd = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_CENTER);
|
|
115 |
composite.setLayoutData(gd);
|
|
116 |
composite.setFont(parent.getFont());
|
|
117 |
|
|
118 |
newButton = new Button(composite, SWT.PUSH);
|
|
119 |
newButton.setText(Messages.getString("ClientServiceSiteUI2.NewButtonLabel")); //$NON-NLS-1$
|
|
120 |
newButton.setFont(JFaceResources.getDialogFont());
|
|
121 |
gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
|
|
122 |
int widthHint = Dialog.convertHorizontalDLUsToPixels(fm, IDialogConstants.BUTTON_WIDTH);
|
|
123 |
Point minSize = newButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
|
|
124 |
gd.widthHint = Math.max(widthHint, minSize.x);
|
|
125 |
newButton.setLayoutData(gd);
|
|
126 |
newButton.setData(UID, "newButton"); //$NON-NLS-1$
|
|
127 |
newButton.addSelectionListener(new SelectionAdapter() {
|
|
128 |
@Override
|
|
129 |
public void widgetSelected(SelectionEvent e) {
|
|
130 |
SettingsWizard wizard = new SettingsWizard(null, service);
|
|
131 |
wizard.open(composite.getShell());
|
|
132 |
IConnection connection = wizard.getConnectionToEdit();
|
|
133 |
// note: refresh ASAP so the selection will be valid; but endure a listener event
|
|
134 |
// which will redo this
|
|
135 |
refreshUI();
|
|
136 |
setViewerInput(connection);
|
|
137 |
}
|
|
138 |
});
|
|
139 |
|
|
140 |
editButton = new Button(composite, SWT.PUSH);
|
|
141 |
editButton.setText(Messages.getString("ClientServiceSiteUI2.EditButtonLabel")); //$NON-NLS-1$
|
|
142 |
editButton.setFont(JFaceResources.getDialogFont());
|
|
143 |
gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
|
|
144 |
widthHint = Dialog.convertHorizontalDLUsToPixels(fm, IDialogConstants.BUTTON_WIDTH);
|
|
145 |
minSize = editButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
|
|
146 |
gd.widthHint = Math.max(widthHint, minSize.x);
|
|
147 |
editButton.setLayoutData(gd);
|
|
148 |
editButton.setData(UID, "editButton"); //$NON-NLS-1$
|
|
149 |
editButton.addSelectionListener(new SelectionAdapter() {
|
|
150 |
@Override
|
|
151 |
public void widgetSelected(SelectionEvent e) {
|
|
152 |
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
|
|
153 |
Object value = selection.getFirstElement();
|
|
154 |
if (value instanceof String) {
|
|
155 |
IConnection editConnection = getActualConnection((String) value);
|
|
156 |
SettingsWizard wizard = new SettingsWizard(editConnection, service);
|
|
157 |
wizard.open(composite.getShell());
|
|
158 |
|
|
159 |
// leave the viewer the same, callback will refresh anything needed
|
|
160 |
}
|
|
161 |
}
|
|
162 |
});
|
|
163 |
|
|
164 |
// attach listeners
|
|
165 |
RemoteConnectionsActivator.getConnectionsManager().addConnectionListener(this);
|
|
166 |
RemoteConnectionsActivator.getConnectionsManager().addConnectionStoreChangedListener(this);
|
|
167 |
|
|
168 |
// remove listeners on dispose
|
|
169 |
group.addDisposeListener(new DisposeListener() {
|
|
170 |
|
|
171 |
public void widgetDisposed(DisposeEvent e) {
|
|
172 |
RemoteConnectionsActivator.getConnectionsManager().addConnectionListener(ClientServiceSiteUI2.this);
|
|
173 |
RemoteConnectionsActivator.getConnectionsManager().addConnectionStoreChangedListener(ClientServiceSiteUI2.this);
|
|
174 |
}
|
|
175 |
});
|
|
176 |
|
|
177 |
setViewerInput(null);
|
|
178 |
}
|
|
179 |
|
|
180 |
/**
|
|
181 |
* Get the actual connection for an identifier.
|
|
182 |
* This is not {@link IConnectionsManager#ensureConnection(String, IService)} because we don't
|
|
183 |
* want to actually validate the connection now.
|
|
184 |
* @param id
|
|
185 |
* @return {@link IConnection} or <code>null</code>
|
|
186 |
*/
|
|
187 |
protected IConnection getActualConnection(String id) {
|
|
188 |
if (id == null) {
|
|
189 |
return null;
|
|
190 |
}
|
|
191 |
if (id.equals(Registry.CURRENT_CONNECTION_ID)) {
|
|
192 |
return RemoteConnectionsActivator.getConnectionsManager().getCurrentConnection();
|
|
193 |
}
|
|
194 |
for (IConnection connection : RemoteConnectionsActivator.getConnectionsManager().getConnections()) {
|
|
195 |
if (connection.getIdentifier().equals(id)) {
|
|
196 |
return connection;
|
|
197 |
}
|
|
198 |
}
|
|
199 |
return null;
|
|
200 |
}
|
|
201 |
|
|
202 |
/**
|
|
203 |
* Set the selected input.
|
|
204 |
* @param connection existing connection or <code>null</code> for the current
|
|
205 |
*/
|
|
206 |
private void setViewerInput(IConnection connection) {
|
|
207 |
List<IConnection> compatible = getCompatibleConnections();
|
|
208 |
connectionNames = new LinkedHashMap<String, String>();
|
|
209 |
|
|
210 |
// update the current
|
|
211 |
IConnection currentConnection = RemoteConnectionsActivator.getConnectionsManager().getCurrentConnection();
|
|
212 |
|
|
213 |
connectionNames.put(Registry.CURRENT_CONNECTION_ID, createCurrentConnectionName(currentConnection));
|
|
214 |
|
|
215 |
for (IConnection conn : compatible) {
|
|
216 |
connectionNames.put(conn.getIdentifier(), conn.getDisplayName());
|
|
217 |
}
|
|
218 |
|
|
219 |
viewer.setInput(connectionNames.keySet());
|
|
220 |
|
|
221 |
if (connectionNames.isEmpty())
|
|
222 |
viewer.getCombo().setEnabled(false);
|
|
223 |
else {
|
|
224 |
viewer.getCombo().setEnabled(true);
|
|
225 |
if (connection == null) {
|
|
226 |
viewer.getCombo().select(0);
|
|
227 |
viewer.setSelection(viewer.getSelection());
|
|
228 |
}
|
|
229 |
else
|
|
230 |
selectConnection(connection.getIdentifier());
|
|
231 |
}
|
|
232 |
editButton.setEnabled(!viewer.getSelection().isEmpty());
|
|
233 |
|
|
234 |
// fire listener in case we selected anew or the current connection changed
|
|
235 |
fireConnectionSelected();
|
|
236 |
}
|
|
237 |
|
|
238 |
private void refreshUI() {
|
|
239 |
Display.getDefault().syncExec(new Runnable() {
|
|
240 |
public void run() {
|
|
241 |
if (viewer != null && viewer.getContentProvider() != null) {
|
|
242 |
|
|
243 |
// try to preserve the currently selected item, if it's a concrete
|
|
244 |
// connection; if it's current, allow for the new current to be chosen.
|
|
245 |
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
|
|
246 |
Object value = selection.getFirstElement();
|
|
247 |
String current = null;
|
|
248 |
if (value instanceof String) {
|
|
249 |
current = (String) value;
|
|
250 |
}
|
|
251 |
if (Registry.CURRENT_CONNECTION_ID.equals(current)) {
|
|
252 |
current = null;
|
|
253 |
}
|
|
254 |
setViewerInput(getActualConnection(current));
|
|
255 |
}
|
|
256 |
}
|
|
257 |
});
|
|
258 |
}
|
|
259 |
|
|
260 |
/**
|
|
261 |
* @param currentConnection
|
|
262 |
* @return
|
|
263 |
*/
|
|
264 |
private String createCurrentConnectionName(IConnection currentConnection) {
|
|
265 |
return MessageFormat.format(Messages.getString("ClientServiceSiteUI2.CurrentConnectionFormat"), //$NON-NLS-1$
|
|
266 |
currentConnection != null ? currentConnection.getDisplayName() :
|
|
267 |
Messages.getString("ClientServiceSiteUI2.CurrentConnection_NoneDetected")); //$NON-NLS-1$
|
|
268 |
}
|
|
269 |
|
|
270 |
private void initializeDialogUnits(Composite parent) {
|
|
271 |
GC gc = new GC(parent);
|
|
272 |
gc.setFont(JFaceResources.getDialogFont());
|
|
273 |
fm = gc.getFontMetrics();
|
|
274 |
gc.dispose();
|
|
275 |
}
|
|
276 |
|
|
277 |
private List<IConnection> getCompatibleConnections() {
|
|
278 |
getCompatibleConnectionTypes();
|
|
279 |
|
|
280 |
List<IConnection> compatibleConnections = new ArrayList<IConnection>();
|
|
281 |
for (IConnection connection : Registry.instance().getConnections()) {
|
|
282 |
if (isCompatibleConnection(connection))
|
|
283 |
compatibleConnections.add(connection);
|
|
284 |
}
|
|
285 |
return compatibleConnections;
|
|
286 |
}
|
|
287 |
|
|
288 |
private boolean isCompatibleConnection(IConnection connection) {
|
|
289 |
return compatibleConnectionTypes.contains(connection.getConnectionType());
|
|
290 |
}
|
|
291 |
|
|
292 |
private void getCompatibleConnectionTypes() {
|
|
293 |
compatibleConnectionTypes = new HashSet<IConnectionType>();
|
|
294 |
Collection<String> compatibleTypeIds =
|
|
295 |
Registry.instance().getCompatibleConnectionTypeIds(service);
|
|
296 |
for (String typeId : compatibleTypeIds) {
|
|
297 |
compatibleConnectionTypes.add(
|
|
298 |
Registry.instance().getConnectionType(typeId));
|
|
299 |
}
|
|
300 |
}
|
|
301 |
|
|
302 |
public void selectConnection(String connection) {
|
|
303 |
viewer.setSelection(new StructuredSelection(connection));
|
|
304 |
}
|
|
305 |
|
|
306 |
public String getSelectedConnection() {
|
|
307 |
return connection;
|
|
308 |
}
|
|
309 |
|
|
310 |
public IStatus getSelectionStatus() {
|
|
311 |
String requiredConnectionTypes = getAllowedConnectionTypesString();
|
|
312 |
|
|
313 |
// no selection yet...?
|
|
314 |
if (connection == null) {
|
|
315 |
return new Status(IStatus.ERROR, RemoteConnectionsActivator.PLUGIN_ID,
|
|
316 |
MessageFormat.format(
|
|
317 |
Messages.getString("ClientServiceSiteUI2.NoConnectionError"), //$NON-NLS-1$
|
|
318 |
service.getDisplayName(),
|
|
319 |
requiredConnectionTypes));
|
|
320 |
}
|
|
321 |
|
|
322 |
// check whether the current is compatible with the service and connection type
|
|
323 |
if (Registry.CURRENT_CONNECTION_ID.equals(connection)) {
|
|
324 |
IConnection actual = getActualConnection(connection);
|
|
325 |
if (actual == null) {
|
|
326 |
return new Status(IStatus.ERROR, RemoteConnectionsActivator.PLUGIN_ID,
|
|
327 |
MessageFormat.format(
|
|
328 |
Messages.getString("ClientServiceSiteUI2.NoCurrentConnection"), //$NON-NLS-1$
|
|
329 |
service.getDisplayName(),
|
|
330 |
requiredConnectionTypes));
|
|
331 |
}
|
|
332 |
|
|
333 |
// is the service supported?
|
|
334 |
boolean found = false;
|
|
335 |
for (IConnectedService aService : Registry.instance().getConnectedServices(actual)) {
|
|
336 |
if (service.getIdentifier().equals(aService.getService().getIdentifier())) {
|
|
337 |
found = true;
|
|
338 |
break;
|
|
339 |
}
|
|
340 |
}
|
|
341 |
if (!found) {
|
|
342 |
return new Status(IStatus.WARNING, RemoteConnectionsActivator.PLUGIN_ID,
|
|
343 |
MessageFormat.format(
|
|
344 |
Messages.getString("ClientServiceSiteUI2.IncompatibleCurrentConnectionService") //$NON-NLS-1$
|
|
345 |
+ "\n" //$NON-NLS-1$
|
|
346 |
+ Messages.getString("ClientServiceSiteUI2.IncompatibleCurrentConnectionFixupAdvice"), //$NON-NLS-1$
|
|
347 |
actual.getDisplayName(),
|
|
348 |
service.getDisplayName()));
|
|
349 |
}
|
|
350 |
|
|
351 |
// is the hardware type supported by the service?
|
|
352 |
if (!isCompatibleConnection(actual)) {
|
|
353 |
return new Status(IStatus.WARNING, RemoteConnectionsActivator.PLUGIN_ID,
|
|
354 |
MessageFormat.format(
|
|
355 |
Messages.getString("ClientServiceSiteUI2.IncompatibleCurrentConnectionType") //$NON-NLS-1$
|
|
356 |
+ "\n" //$NON-NLS-1$
|
|
357 |
+ Messages.getString("ClientServiceSiteUI2.IncompatibleCurrentConnectionFixupAdvice"), //$NON-NLS-1$
|
|
358 |
actual.getDisplayName(),
|
|
359 |
requiredConnectionTypes));
|
|
360 |
|
|
361 |
}
|
|
362 |
}
|
|
363 |
|
|
364 |
// otherwise, it's okay!
|
|
365 |
return Status.OK_STATUS;
|
|
366 |
}
|
|
367 |
|
|
368 |
private String getAllowedConnectionTypesString() {
|
|
369 |
StringBuilder requiredConnectionTypes = new StringBuilder();
|
|
370 |
IConnectionType[] connectionTypes =
|
|
371 |
(IConnectionType[]) compatibleConnectionTypes.toArray(new IConnectionType[compatibleConnectionTypes.size()]);
|
|
372 |
for (int i = 0; i < connectionTypes.length; i++) {
|
|
373 |
IConnectionType type = connectionTypes[i];
|
|
374 |
if (requiredConnectionTypes.length() > 0)
|
|
375 |
requiredConnectionTypes.append(", "); //$NON-NLS-1$
|
|
376 |
if (i == connectionTypes.length - 1)
|
|
377 |
requiredConnectionTypes.append(Messages.getString("ClientServiceSiteUI2.Or")); //$NON-NLS-1$
|
|
378 |
requiredConnectionTypes.append(type.getDisplayName());
|
|
379 |
}
|
|
380 |
return requiredConnectionTypes.toString();
|
|
381 |
}
|
|
382 |
|
|
383 |
/* (non-Javadoc)
|
|
384 |
* @see com.nokia.carbide.remoteconnections.interfaces.IClientServiceSiteUI2#getConnectionDisplayName(java.lang.String)
|
|
385 |
*/
|
|
386 |
public String getConnectionDisplayName(String connection) {
|
|
387 |
String display = connectionNames.get(connection);
|
|
388 |
if (display == null)
|
|
389 |
display = MessageFormat.format(Messages.getString("ClientServiceSiteUI2.DeletedConnectionDisplayName"), connection); //$NON-NLS-1$
|
|
390 |
return display;
|
|
391 |
}
|
|
392 |
|
|
393 |
public void addListener(IListener listener) {
|
|
394 |
if (listenerList == null)
|
|
395 |
listenerList = new ListenerList<IListener>();
|
|
396 |
listenerList.add(listener);
|
|
397 |
}
|
|
398 |
|
|
399 |
public void removeListener(IListener listener) {
|
|
400 |
if (listenerList != null)
|
|
401 |
listenerList.remove(listener);
|
|
402 |
}
|
|
403 |
|
|
404 |
private void fireConnectionSelected() {
|
|
405 |
if (listenerList != null) {
|
|
406 |
for (IListener listener : listenerList) {
|
|
407 |
listener.connectionSelected();
|
|
408 |
}
|
|
409 |
}
|
|
410 |
}
|
|
411 |
|
|
412 |
/* (non-Javadoc)
|
|
413 |
* @see com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionListener#connectionAdded(com.nokia.carbide.remoteconnections.interfaces.IConnection)
|
|
414 |
*/
|
|
415 |
public void connectionAdded(IConnection connection) {
|
|
416 |
refreshUI();
|
|
417 |
}
|
|
418 |
|
|
419 |
/* (non-Javadoc)
|
|
420 |
* @see com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionListener#connectionRemoved(com.nokia.carbide.remoteconnections.interfaces.IConnection)
|
|
421 |
*/
|
|
422 |
public void connectionRemoved(IConnection connection) {
|
|
423 |
refreshUI();
|
|
424 |
}
|
|
425 |
|
|
426 |
/* (non-Javadoc)
|
|
427 |
* @see com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionListener#currentConnectionSet(com.nokia.carbide.remoteconnections.interfaces.IConnection)
|
|
428 |
*/
|
|
429 |
public void currentConnectionSet(IConnection connection) {
|
|
430 |
refreshUI();
|
|
431 |
}
|
|
432 |
|
|
433 |
/* (non-Javadoc)
|
|
434 |
* @see com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionsManagerListener#connectionStoreChanged()
|
|
435 |
*/
|
|
436 |
public void connectionStoreChanged() {
|
|
437 |
refreshUI();
|
|
438 |
}
|
|
439 |
|
|
440 |
/* (non-Javadoc)
|
|
441 |
* @see com.nokia.carbide.remoteconnections.interfaces.IConnectionsManager.IConnectionsManagerListener#displayChanged()
|
|
442 |
*/
|
|
443 |
public void displayChanged() {
|
|
444 |
refreshUI();
|
|
445 |
}
|
|
446 |
}
|