void saveLastSavedPreferences ( ) { String templateName = "" ; //$NON-NLS-1$ Template template = getSelectedTemplate ( ) ; if ( template != null ) { templateName = template . getName ( ) ; } GlassmakerUIPlugin . getDefault ( ) . getPreferenceStore ( ) . setValue ( "newFileTemplateName" , templateName ) ; GlassmakerUIPlugin . getDefault ( ) . savePluginPreferences ( ) ; }
Save template name used for next call to New HTML File wizard .