( ( OptionsInfo ) infoMap.get( nameOfOption ) ).setDescription( description ); ( ( OptionsInfo ) infoMap.get( nameOfOption ) ).setPluginToAppear( pluginToAppear ); ( ( OptionsInfo ) infoMap.get( nameOfOption ) ).setOptionType( optionType );
if ( this.infoMap.contains( nameOfOption ) ) { OptionsInfo optionInfo = ( ( OptionsInfo ) infoMap.get( nameOfOption ) ); optionInfo.setDescription( description ); optionInfo.setPluginToAppear( pluginToAppear ); optionInfo.setOptionType( optionType ); } else { OptionsInfo optionInfo = new OptionsInfo( this.parent ); optionInfo.setDescription( description ); optionInfo.setPluginToAppear( pluginToAppear ); optionInfo.setOptionType( optionType ); optionInfo.setKey( nameOfOption ); this.infoMap.put( nameOfOption, optionInfo ); }
	public void readPluginOptionDetails( MessageBuffer messageBuffer ) {		/*		 * 	 String  	 Plugin where Option should appear 		 * 	 String  	 Description 		 * 	 String  	 Name of Option 		 * 	 OptionType  	 The Type of the Option (to select which widget to use)		 */		String pluginToAppear = messageBuffer.readString();		String description = messageBuffer.readString();		String nameOfOption = messageBuffer.readString();		byte optionType = messageBuffer.readByte();		 		/*		 * now get the specific Option and set the values:		 */	   ( ( OptionsInfo ) infoMap.get( nameOfOption ) ).setDescription( description );	   ( ( OptionsInfo ) infoMap.get( nameOfOption ) ).setPluginToAppear( pluginToAppear );	   ( ( OptionsInfo ) infoMap.get( nameOfOption ) ).setOptionType( optionType );	   			}