connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/view/ConnectionsView.java
changeset 749 22f0d10fce10
parent 748 7bd40a2d0a18
child 757 dfe9c76b4eb2
equal deleted inserted replaced
748:7bd40a2d0a18 749:22f0d10fce10
   328 					IConnectionStatus status = ((IConnection2) value).getStatus();
   328 					IConnectionStatus status = ((IConnection2) value).getStatus();
   329 					if (status != null)
   329 					if (status != null)
   330 						return status.getLongDescription();
   330 						return status.getLongDescription();
   331 				}
   331 				}
   332 				else if (ConnectionUIUtils.isSomeServiceInUse((IConnection) value)) {
   332 				else if (ConnectionUIUtils.isSomeServiceInUse((IConnection) value)) {
   333 					return Messages.getString("ConnectionsView.InUseDesc");
   333 					return Messages.getString("ConnectionsView.InUseDesc"); //$NON-NLS-1$
   334 				}
   334 				}
   335 			}
   335 			}
   336 			
   336 			
   337 			return null;
   337 			return null;
   338 		}
   338 		}
   645 		};
   645 		};
   646 		action.setId(NEW_ACTION);
   646 		action.setId(NEW_ACTION);
   647 		actions.add(action);
   647 		actions.add(action);
   648 		action.setEnabled(!Registry.instance().getConnectionTypes().isEmpty());
   648 		action.setEnabled(!Registry.instance().getConnectionTypes().isEmpty());
   649 		
   649 		
   650 		String editLabel = Messages.getString("ConnectionsView.EditActionLabel");
   650 		String editLabel = Messages.getString("ConnectionsView.EditActionLabel"); //$NON-NLS-1$
   651 		action = new Action(editLabel, CONNECTION_EDIT_IMGDESC) { //$NON-NLS-1$
   651 		action = new Action(editLabel, CONNECTION_EDIT_IMGDESC) { //$NON-NLS-1$
   652 			@Override
   652 			@Override
   653 			public void run() {
   653 			public void run() {
   654 				ISelection selection = viewer.getSelection();
   654 				ISelection selection = viewer.getSelection();
   655 				if (selection.isEmpty())
   655 				if (selection.isEmpty())