diff -r 5b9d4d8641ce -r ae255c9aa552 sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.button/src/com/nokia/carbide/cpp/pi/button/BupEventMapManager.java --- a/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.button/src/com/nokia/carbide/cpp/pi/button/BupEventMapManager.java Wed Jun 23 14:49:59 2010 +0300 +++ b/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.button/src/com/nokia/carbide/cpp/pi/button/BupEventMapManager.java Wed Jun 23 15:05:09 2010 +0300 @@ -172,7 +172,7 @@ profile = buttonProfile; EList mappingList = buttonProfileType.getMapping(); for (MappingType mapping : mappingList) { - addMapping(new Long(mapping.getKeyCode()).intValue(), mapping.getEnumString(), mapping.getLabel()); + addMapping(Long.valueOf(mapping.getKeyCode()).intValue(), mapping.getEnumString(), mapping.getLabel()); } } @@ -240,12 +240,12 @@ } public ButtonEventProfileType toEmfModel() { - ButtonEventProfileType profile = PIConfigFactory.eINSTANCE.createButtonEventProfileType(); + ButtonEventProfileType profile = PIConfigFactory.E_INSTANCE.createButtonEventProfileType(); profile.setProfileId(getProfileName()); EList mappingList = profile.getMapping(); for (Entry entry : keyCodeMap.entrySet()) { - MappingType mappingType = PIConfigFactory.eINSTANCE.createMappingType(); + MappingType mappingType = PIConfigFactory.E_INSTANCE.createMappingType(); mappingType.setKeyCode(entry.getKey().longValue()); mappingType.setEnumString(entry.getValue().enumString); mappingType.setLabel(entry.getValue().label); @@ -439,7 +439,7 @@ ButtonEventProfileListType workspace_settings = PIConfigXMLLoader.loadPiSettings(WORKSPACE_PREF_KEY_MAP_URI.toURL()); EList workspace_profileList = workspace_settings.getButtonEventProfile(); - ButtonEventProfileType buttonEventProfileType = PIConfigFactory.eINSTANCE.createButtonEventProfileType(); + ButtonEventProfileType buttonEventProfileType = PIConfigFactory.E_INSTANCE.createButtonEventProfileType(); buttonEventProfileType.setProfileId(profileId); buttonEventProfileType.getMapping().clear(); @@ -545,7 +545,7 @@ } public void saveMap (URI uri, ArrayList mapList) { - ButtonEventProfileListType profileList = PIConfigFactory.eINSTANCE.createButtonEventProfileListType(); + ButtonEventProfileListType profileList = PIConfigFactory.E_INSTANCE.createButtonEventProfileListType(); profileList.setButtonEventProfileVersion(new BigDecimal("1.0")); //$NON-NLS-1$ profileList.getButtonEventProfile().addAll(mapList); try {