# HG changeset patch # User dadubrow # Date 1282157377 18000 # Node ID 03d160c02b5f37162fc07987748eb18628e48b8a # Parent 49624691da341ce67dd1baed8857b4a2935f46f1 add unchecked icon for toggle service testing action diff -r 49624691da34 -r 03d160c02b5f connectivity/com.nokia.carbide.remoteConnections/icons/serviceTest_No.png Binary file connectivity/com.nokia.carbide.remoteConnections/icons/serviceTest_No.png has changed diff -r 49624691da34 -r 03d160c02b5f connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java --- 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);