Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Side by Side Diff: dart/editor/tools/plugins/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/preferences/HTMLUIPreferenceInitializer.java

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2006, 2012 IBM Corporation and others. All rights reserved. Thi s program and the 2 * Copyright (c) 2006, 2012 IBM Corporation and others. All rights reserved. Thi s program and the
3 * accompanying materials are made available under the terms of the Eclipse Publ ic License v1.0 3 * accompanying materials are made available under the terms of the Eclipse Publ ic License v1.0
4 * which accompanies this distribution, and is available at 4 * which accompanies this distribution, and is available at
5 * http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - ini tial API and 5 * http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - ini tial API and
6 * implementation Benjamin Muskalla, b.muskalla@gmx.net - [158660] character ent ities should have 6 * implementation Benjamin Muskalla, b.muskalla@gmx.net - [158660] character ent ities should have
7 * their own syntax highlighting preference 7 * their own syntax highlighting preference
8 ******************************************************************************* / 8 ******************************************************************************* /
9 package org.eclipse.wst.html.ui.internal.preferences; 9 package org.eclipse.wst.html.ui.internal.preferences;
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // set default new html file template to use in new file wizard 118 // set default new html file template to use in new file wizard
119 /* 119 /*
120 * Need to find template name that goes with default template id (name may c hange for different 120 * Need to find template name that goes with default template id (name may c hange for different
121 * language) 121 * language)
122 */ 122 */
123 store.setDefault(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_ID, 123 store.setDefault(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_ID,
124 "org.eclipse.wst.html.ui.templates.html"); //$NON-NLS-1$ 124 "org.eclipse.wst.html.ui.templates.html"); //$NON-NLS-1$
125 125
126 // Defaults for the Typing preference page 126 // Defaults for the Typing preference page
127 store.setDefault(HTMLUIPreferenceNames.TYPING_COMPLETE_COMMENTS, true); 127 store.setDefault(HTMLUIPreferenceNames.TYPING_COMPLETE_COMMENTS, false); // Changed by popular demand
128 store.setDefault(HTMLUIPreferenceNames.TYPING_COMPLETE_END_TAGS, true); 128 store.setDefault(HTMLUIPreferenceNames.TYPING_COMPLETE_END_TAGS, true);
129 store.setDefault(HTMLUIPreferenceNames.TYPING_COMPLETE_ELEMENTS, true); 129 store.setDefault(HTMLUIPreferenceNames.TYPING_COMPLETE_ELEMENTS, true);
130 store.setDefault(HTMLUIPreferenceNames.TYPING_REMOVE_END_TAGS, true); 130 store.setDefault(HTMLUIPreferenceNames.TYPING_REMOVE_END_TAGS, true);
131 store.setDefault(HTMLUIPreferenceNames.TYPING_CLOSE_STRINGS, true); 131 store.setDefault(HTMLUIPreferenceNames.TYPING_CLOSE_STRINGS, true);
132 store.setDefault(HTMLUIPreferenceNames.TYPING_CLOSE_BRACKETS, true); 132 store.setDefault(HTMLUIPreferenceNames.TYPING_CLOSE_BRACKETS, true);
133 133
134 // Defaults for Content Assist preference page 134 // Defaults for Content Assist preference page
135 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DO_NOT_DISPLAY_ON_DEFA ULT_PAGE, ""); 135 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DO_NOT_DISPLAY_ON_DEFA ULT_PAGE, "");
136 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DO_NOT_DISPLAY_ON_OWN_ PAGE, ""); 136 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DO_NOT_DISPLAY_ON_OWN_ PAGE, "");
137 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DEFAULT_PAGE_SORT_ORDE R, 137 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_DEFAULT_PAGE_SORT_ORDE R,
138 "org.eclipse.wst.html.ui.proposalCategory.htmlTags\0" 138 "org.eclipse.wst.html.ui.proposalCategory.htmlTags\0"
139 + "org.eclipse.wst.css.ui.proposalCategory.css\0" 139 + "org.eclipse.wst.css.ui.proposalCategory.css\0"
140 + "org.eclipse.wst.html.ui.proposalCategory.htmlTemplates\0" 140 + "org.eclipse.wst.html.ui.proposalCategory.htmlTemplates\0"
141 + "org.eclipse.wst.css.ui.proposalCategory.cssTemplates"); 141 + "org.eclipse.wst.css.ui.proposalCategory.cssTemplates");
142 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_OWN_PAGE_SORT_ORDER, 142 store.setDefault(HTMLUIPreferenceNames.CONTENT_ASSIST_OWN_PAGE_SORT_ORDER,
143 "org.eclipse.wst.html.ui.proposalCategory.htmlTemplates\0" 143 "org.eclipse.wst.html.ui.proposalCategory.htmlTemplates\0"
144 + "org.eclipse.wst.css.ui.proposalCategory.cssTemplates\0" 144 + "org.eclipse.wst.css.ui.proposalCategory.cssTemplates\0"
145 + "org.eclipse.wst.html.ui.proposalCategory.htmlTags\0" 145 + "org.eclipse.wst.html.ui.proposalCategory.htmlTags\0"
146 + "org.eclipse.wst.css.ui.proposalCategory.css"); 146 + "org.eclipse.wst.css.ui.proposalCategory.css");
147 getModelPreferences().setValue(HTMLCorePreferenceNames.ELEM_UNKNOWN_NAME, -1 ); 147 getModelPreferences().setValue(HTMLCorePreferenceNames.ELEM_UNKNOWN_NAME, -1 );
148 getModelPreferences().setValue(HTMLCorePreferenceNames.ATTRIBUTE_UNDEFINED_N AME, -1); 148 getModelPreferences().setValue(HTMLCorePreferenceNames.ATTRIBUTE_UNDEFINED_N AME, -1);
149 } 149 }
150 150
151 private Preferences getModelPreferences() { 151 private Preferences getModelPreferences() {
152 return HTMLCorePlugin.getDefault().getPluginPreferences(); 152 return HTMLCorePlugin.getDefault().getPluginPreferences();
153 } 153 }
154 154
155 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698