sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.button/src/com/nokia/carbide/cpp/pi/button/ButtonPlugin.java
changeset 12 ae255c9aa552
parent 5 844b047e260d
equal deleted inserted replaced
11:5b9d4d8641ce 12:ae255c9aa552
   418 			maxSize = Math.max(maxSize, BUP_MAP_IS_BUILTIN);
   418 			maxSize = Math.max(maxSize, BUP_MAP_IS_BUILTIN);
   419 			Vector<Object> result = new Vector<Object>(maxSize + 1);
   419 			Vector<Object> result = new Vector<Object>(maxSize + 1);
   420 			result.setSize(maxSize + 1);
   420 			result.setSize(maxSize + 1);
   421 			result.setElementAt(profile.getProfileId(), BUP_MAP_PROFILE_ID);
   421 			result.setElementAt(profile.getProfileId(), BUP_MAP_PROFILE_ID);
   422 			result.setElementAt(profile.getSDK() != null ? profile.getSDK().getUniqueId() : "", BUP_MAP_SYMBIAN_SDK_ID); //$NON-NLS-1$
   422 			result.setElementAt(profile.getSDK() != null ? profile.getSDK().getUniqueId() : "", BUP_MAP_SYMBIAN_SDK_ID); //$NON-NLS-1$
   423 			result.setElementAt(new Boolean(profile.getURI().equals(BupEventMapManager.WORKSPACE_PREF_KEY_MAP_URI)), BUP_MAP_IS_WORSPACE);
   423 			result.setElementAt(Boolean.valueOf(profile.getURI().equals(BupEventMapManager.WORKSPACE_PREF_KEY_MAP_URI)), BUP_MAP_IS_WORSPACE);
   424 			result.setElementAt(new Boolean(profile.getURI().equals(BupEventMapManager.DEFAULT_PROFILE_URI)), BUP_MAP_IS_BUILTIN);
   424 			result.setElementAt(Boolean.valueOf(profile.getURI().equals(BupEventMapManager.DEFAULT_PROFILE_URI)), BUP_MAP_IS_BUILTIN);
   425 			
   425 			
   426 			return result;
   426 			return result;
   427 		}
   427 		}
   428 		
   428 		
   429 		void fromAddtionalInfo(Vector<Object> additional_info) {
   429 		void fromAddtionalInfo(Vector<Object> additional_info) {
   542 			return ((BupInfoHandlerAdditionalInfo)info).profile;
   542 			return ((BupInfoHandlerAdditionalInfo)info).profile;
   543 		}
   543 		}
   544 		GeneralMessages.showWarningMessage(Messages.getString("ButtonPlugin.keyMapRemoved")); //$NON-NLS-1$
   544 		GeneralMessages.showWarningMessage(Messages.getString("ButtonPlugin.keyMapRemoved")); //$NON-NLS-1$
   545 		return BupEventMapManager.getInstance().getPrefSelectedProfile();
   545 		return BupEventMapManager.getInstance().getPrefSelectedProfile();
   546 	}
   546 	}
       
   547 	
       
   548 	/*
       
   549 	 * (non-Javadoc)
       
   550 	 * @see com.nokia.carbide.cpp.internal.pi.plugin.model.ITrace#isMandatory()
       
   551 	 */
       
   552 	public boolean isMandatory() {
       
   553 		return false;
       
   554 	}
       
   555 	
       
   556 	/*
       
   557 	 * (non-Javadoc)
       
   558 	 * @see com.nokia.carbide.cpp.internal.pi.plugin.model.ITrace#getTraceDescription()
       
   559 	 */
       
   560 	public String getTraceDescription() {
       
   561 		return getTraceTitle();
       
   562 	}
   547 }
   563 }