private void loadLastSavedPreferences() {
		fLastSelectedTemplateName = ""; //$NON-NLS-1$
		boolean setSelection = false;
		String templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_NAME);
		if (templateName == null || templateName.length() == 0) {
			templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_ID);
			if (templateName != null && templateName.length() > 0) {
				Template template = fTemplateStore.findTemplateById(templateName);
				if (template != null) {
					fLastSelectedTemplateName = template.getName();
					setSelection = true;
				}
			}
		}
		else {
			fLastSelectedTemplateName = templateName;
			setSelection = true;
		}
		fUseTemplateButton.setSelection(setSelection);
		enableTemplates();
	}
private void loadLastSavedPreferences() {
		fLastSelectedTemplateName = ""; 
		boolean setSelection = false;
		String templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_NAME);
		if (templateName == null || templateName.length() == 0) {
			templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_ID);
			if (templateName != null && templateName.length() > 0) {
				Template template = fTemplateStore.findTemplateById(templateName);
				if (template != null) {
					fLastSelectedTemplateName = template.getName();
					setSelection = true;
				}
			}
		}
		else {
			fLastSelectedTemplateName = templateName;
			setSelection = true;
		}
		fUseTemplateButton.setSelection(setSelection);
		enableTemplates();
	}
private void loadLastSavedPreferences ( ) { fLastSelectedTemplateName = "" ; //$NON-NLS-1$ boolean setSelection = false ; String templateName = GlassmakerUIPlugin . getDefault ( ) . getPreferenceStore ( ) . getString ( HTMLUIPreferenceNames . NEW_FILE_TEMPLATE_NAME ) ; if ( templateName == null || templateName . length ( ) == 0 ) { templateName = GlassmakerUIPlugin . getDefault ( ) . getPreferenceStore ( ) . getString ( HTMLUIPreferenceNames . NEW_FILE_TEMPLATE_ID ) ; if ( templateName != null && templateName . length ( ) > 0 ) { Template template = fTemplateStore . findTemplateById ( templateName ) ; if ( template != null ) { fLastSelectedTemplateName = template . getName ( ) ; setSelection = true ; } } } else { fLastSelectedTemplateName = templateName ; setSelection = true ; } fUseTemplateButton . setSelection ( setSelection ) ; enableTemplates ( ) ; }
Load the last template name used in New HTML File wizard.
Load the last template name used in New HTML File wizard .