add unchecked icon for toggle service testing action
authordadubrow
Wed, 18 Aug 2010 13:49:37 -0500
changeset 1855 03d160c02b5f
parent 1854 49624691da34
child 1856 e3ec6febb587
add unchecked icon for toggle service testing action
connectivity/com.nokia.carbide.remoteConnections/icons/serviceTest_No.png
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java
Binary file connectivity/com.nokia.carbide.remoteConnections/icons/serviceTest_No.png has changed
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java	Wed Aug 18 13:43:53 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java	Wed Aug 18 13:49:37 2010 -0500
@@ -123,6 +123,7 @@
 	private static final ImageDescriptor CONNECTION_NEW_IMGDESC = RemoteConnectionsActivator.getImageDescriptor("icons/connectionNew.png"); //$NON-NLS-1$
 	private static final ImageDescriptor CONNECTION_EDIT_IMGDESC = RemoteConnectionsActivator.getImageDescriptor("icons/connectionEdit.png"); //$NON-NLS-1$
 	private static final ImageDescriptor SERVICE_TEST_IMGDESC = RemoteConnectionsActivator.getImageDescriptor("icons/serviceTest.png"); //$NON-NLS-1$
+	private static final ImageDescriptor SERVICE_TEST_DISABLED_IMGDESC = RemoteConnectionsActivator.getImageDescriptor("icons/serviceTest_No.png"); //$NON-NLS-1$
 	private static final ImageDescriptor CONNECTION_REFRESH_IMGDESC = RemoteConnectionsActivator.getImageDescriptor("icons/connectionRefresh.png"); //$NON-NLS-1$
 
 	private static final String NEW_ACTION = "ConnectionsView.new"; //$NON-NLS-1$
@@ -873,12 +874,13 @@
 				if (isChecked() != checked) {
 					super.setChecked(checked);
 					RemoteConnectionsActivator.getDefault().setShouldTestServices(checked);
+					setImageDescriptor(checked ? SERVICE_TEST_IMGDESC : SERVICE_TEST_DISABLED_IMGDESC);
 				}
 			};
 		};
-		action.setImageDescriptor(SERVICE_TEST_IMGDESC);
 		action.setId(TOGGLE_SERVICES_ACTION);
 		action.setChecked(RemoteConnectionsActivator.getDefault().getShouldTestServices());
+		action.setImageDescriptor(action.isChecked() ? SERVICE_TEST_IMGDESC : SERVICE_TEST_DISABLED_IMGDESC);
 		actions.add(action);
 		
 		enableConnectionSelectedActions(false);