1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-23 08:13:50 +02:00
Commit graph

15 commits

Author SHA1 Message Date
Jonah Graham
ff75ae80fa Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +

Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
2018-11-23 07:52:26 +00:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
Sergey Prigogin
06e1b830a8 Don't produce a blank line at the top of the file if file comment
template is blank. Trim blank lines at the end of the file.
2013-06-12 17:05:29 -07:00
Sergey Prigogin
c5a85e4b4d Template-based New Class creation. 2011-05-13 02:41:49 +00:00
Anton Leherbauer
ff7c57acb7 Add support for Code Templates
88390: Auto-Insert Code Template When New File Created
147390: [New class wizard] doesn't use template or formatter
2007-12-03 14:04:12 +00:00
Anton Leherbauer
d8c6b82a23 Fix for 188007: Namespace indenting preference is not honored
Patch by Sergey Prigogin (Google)
2007-05-29 07:36:48 +00:00
Doug Schaefer
06d652b74c Put the new line at the end of the main code template. 2007-03-23 14:16:53 +00:00
Vivian Kong
a51c134be1 fix for bug 178424 2007-03-21 19:52:31 +00:00
Anton Leherbauer
c2146c6d14 Fix for Bug 128361 - templates depending on line or word selection don't work 2007-02-02 14:38:30 +00:00
Anton Leherbauer
bdfd719f05 Fix for Bug 170461 - [Content Assist] Templates need a context type "Comment" 2007-01-18 07:58:56 +00:00
Anton Leherbauer
c557bb21a6 Fix leading space of comment template 2006-11-27 10:35:42 +00:00
Anton Leherbauer
8c9b5d9416 Fix comment template 2006-10-04 07:31:59 +00:00
Chris Recoskie
ceb0dedf56 fix for 158402 by Vivian Kong 2006-09-26 18:51:30 +00:00
Alain Magloire
c9e12353d6 2005-02-25 Alain Magloire
Fix PR 82292: Code template variable not working.
	* src/org/eclipse/cdt/internal/corext/template/c/CContext.java
	* src/org/eclipse/cdt/internal/corext/template/c/CContextType.java
	* src/org/eclipse/cdt/internal/corext/template/c/TemplateMessage.properties
	* src/org/eclipse/cdt/internal/corext/template/c/TranslationUnitContext.java
	* src/org/eclipse/cdt/internal/corext/template/c/TranslationUnitContextType.java
	* src/org/eclipse/cdt/internal/ui/text/contentassit/CCompletionProcessor.java
	* templates/default-templates.xml
2005-02-26 03:12:35 +00:00
Alain Magloire
3c9660722e 2004-12-10 Alain Magloire
Fix for 77874.
	In order to fix this we removed all of the Eclipse-1.0 classes
	that we copied in the CDT.
	The good news is that it is now part of Eclipse-3.x platform and we no
	need to carry the duplicate.
	The templates support was rewritten to use the JFace templates support
	classes.

	* src/org/eclipse/cdt/internal/corext/template/*: remove to use
	JFace Templates support.
	* src/org/eclipse/cdt/internal/corext/template/c/*: rewritten to use
	JFace Templates classes.
	* src/org/eclipse/cdt/intenal/corext/texmanipulation/*: remove to use
	JFace TextEdit support
	* src/org/eclipse/cdt/internal/ui/preferences/CTemplatePreferencePage.java:
	Rewritten to take advantage of JFace support for Templates.
	* src/org/eclipse/cdt/internal/ui/text/link/*: Remove use JFace
	* src/org/eclipse/cdt/internal/ui/text/template/*: Remove use JFace templates
	* plugin.xml
	* plugin.properties
	* template/default-templates.xml
2004-12-10 17:22:41 +00:00