[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] cdt.ui: Externalized strings in xml
|
Externalized template descriptions in
default-templates.xml, externalized name in plugin.xml, and fixed missing
resource "Link With Editor" in cview.
Cheers,
TanyaIndex: ChangeLog
===================================================================
retrieving revision 1.317
diff -u -r1.317 ChangeLog
--- ChangeLog 18 Mar 2004 05:42:51 -0000 1.317
+++ ChangeLog 18 Mar 2004 22:28:01 -0000
@@ -1,3 +1,14 @@
+2004-03-18 Tanya Wolff
+ Externalized template descriptions,
+ Externalized name in plugin.xml,
+ Fixed missing resource "Link With Editor".
+ * src/org/eclipse/cdt/internal/corext/template/default-templates.xml
+ * plugin.xml
+ * plugin.properties
+ * src/org/eclipse/cdt/internal/ui/cview/CViewMessages.properties
+
+ ICModel
+
2004-03-18 Alain Magloire
Change in the hierarchy of the core Model:
ICModel
Index: plugin.properties
===================================================================
retrieving revision 1.35
diff -u -r1.35 plugin.properties
--- plugin.properties 15 Mar 2004 21:17:47 -0000 1.35
+++ plugin.properties 18 Mar 2004 22:28:01 -0000
@@ -2,6 +2,7 @@
providerName=Eclipse.org
elementFiltersName=CElement Filters
+binaryParserPage=Binary Parser Page
textHoversName=Text Hovers
editorActionsName=Editor Actions
editorRulerActionsName=Editor Ruler Actions
Index: plugin.xml
===================================================================
retrieving revision 1.67
diff -u -r1.67 plugin.xml
--- plugin.xml 15 Mar 2004 21:17:47 -0000 1.67
+++ plugin.xml 18 Mar 2004 22:28:01 -0000
@@ -33,7 +33,7 @@
<extension-point id="CCompletionContributor" name="%completionContributorName"/>
<extension-point id="CElementFilters" name="%elementFiltersName"/>
- <extension-point id="BinaryParserPage" name="Binary Parser Page"/>
+ <extension-point id="BinaryParserPage" name="%binaryParserPage"/>
<!-- =========================================================================== -->
<!-- Extension point: org.eclipse.cdt.ui.textHovers -->
<!-- Extension Implementation: must implement org.eclipse.jface.text.ITextHover -->
Index: src/org/eclipse/cdt/internal/corext/template/default-templates.xml
===================================================================
retrieving revision 1.4
diff -u -r1.4 default-templates.xml
--- src/org/eclipse/cdt/internal/corext/template/default-templates.xml 6 Feb 2004 17:29:40 -0000 1.4
+++ src/org/eclipse/cdt/internal/corext/template/default-templates.xml 18 Mar 2004 22:28:05 -0000
@@ -1,125 +1,64 @@
-<?xml version="1.0"?>
-
-<!--
-(c) Copyright IBM Corp. 2000, 2001.
-All Rights Reserved.
--->
-
-<templates>
-
-<!-- C++ -->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document [
+ <!ENTITY withtempvar "with temporary variable">
+ <!ENTITY statement "statement">
+ <!-- block is a noun -->
+ <!ENTITY block "block">
+ <!ENTITY method "method">
+ <!ENTITY declaration "declaration">
+ <!ENTITY usinganamespace "using a namespace">
+ <!ENTITY statement "statement">
+ <!ENTITY createnewobject "create new object">
+ <!ENTITY defaultmultilinecomment "default multiline comment">
+ <!ENTITY printtostdout "print to standard output">
+ <!ENTITY printtostderr "print to standard error">
+ <!ENTITY authorname "author name">
+
+]>
-<template description="for loop" name="for" context="C Function">
-for (${var} = 0; ${var} < ${max}; ++${var}) {
+<templates><template name="for" description="for loop" context="C Function" enabled="true">for (${var} = 0; ${var} < ${max}; ${var}++) {
${cursor}
-}
-</template>
-
-<template description="for loop with temporary variable" name="for" context="C Function">
-for (int ${var} = 0; ${var} < ${max}; ++${var}) {
+}</template><template name="for" description="for loop &withtempvar;" context="C Function" enabled="true">for (int ${var} = 0; ${var} < ${max}; ${var}++) {
${cursor}
-}
-</template>
-
-<template description="do while statement" name="do" context="C Function">
-do {
+}</template><template name="do" description="do while &statement;" context="C Function" enabled="true">do {
${cursor}
-} while (${condition});
-</template>
-
-<template description="switch case statement" name="switch" context="C Function">
-switch (${key}) {
+} while (${condition});</template><template name="switch" description="switch case &statement;" context="C Function" enabled="true">switch (${key}) {
case ${value}:
${cursor}
break;
default:
break;
-}
-</template>
-
-<template description="if statement" name="if" context="C Function">
-if (${condition}) {
+}</template><template name="if" description="if &statement;" context="C Function" enabled="true">if (${condition}) {
${cursor}
-}
-</template>
-
-<template description="if else statement" name="ifelse" context="C Function">
-if (${condition}) {
+}</template><template name="ifelse" description="if else &statement;" context="C Function" enabled="true">if (${condition}) {
${cursor}
} else {
-}
-</template>
-
-<template description="else if block" name="elseif" context="C Function">
-else if (${condition}) {
+}</template><template name="elseif" description="else if █" context="C Function" enabled="true">else if (${condition}) {
${cursor}
-}
-</template>
-
-<template description="else block" name="else" context="C Function">
-else {
+}</template><template name="else" description="else █" context="C Function" enabled="true">else {
${cursor}
-}
-</template>
-
-<template description="try catch block" name="try" context="C++ Function">
-try {
+}</template><template name="try" description="try catch █" context="C++ Function" enabled="true">try {
${cursor}
} catch (${Exception} e) {
-}
-</template>
-
-<template description="catch block" name="catch" context="C++ Function">
-catch (${Exception} e) {
+}</template><template name="catch" description="catch █" context="C++ Function" enabled="true">catch (${Exception} e) {
${cursor}
-}
-</template>
-
-<template description="main method" name="main" context="C Global">
-int
+}</template><template name="main" description="main &method;" context="C Global" enabled="true">int
main(int argc, char **argv) {
${cursor}
-}
-</template>
-
-<template description="class declaration" name="class" context="C++ Global">
-class ${name} {
+}</template><template name="class" description="class &declaration;" context="C++ Global" enabled="true">class ${name} {
${cursor}
private:
-};
-</template>
-
-<template description="using a namespace" name="using" context="C++ Global">
-using namespace ${namespace};
-</template>
-
- <template description="namespace declaration" name="namespace" context="C++ Global"
- >namespace ${namespace} {
+};</template>
+<template name="using" description="&usinganamespace;" context="C++ Global" enabled="true">using namespace ${namespace};</template>
+<template name="namespace" description="namespace &declaration;" context="C++ Global" enabled="true">namespace ${namespace} {
${cursor}
-}</template>
-
- <template description="create new object" name="new" context="C++ Function"
->${type} ${name} = new ${type}(${arguments});
-</template>
-
-
-<template name="comment" description="default multiline comment" context="C Global" enabled="true">/*
+}</template><template name="new" description="&createnewobject;" context="C++ Function" enabled="true">${type} ${name} = new ${type}(${arguments});</template><template name="comment" description="&defaultmultilinecomment;" context="C Global" enabled="true">/*
* author ${user}
*
* To change this generated comment edit the template variable "comment":
* Window>Preferences>C>Templates.
- */</template>
-
- <template description="print to standard out" name="stdout" context="C Function"
- >printf(${cursor});</template>
-
- <template description="print to standard error" name="stderr" context="C Function"
- >fprintf(stderr, ${cursor});</template>
-
- <!-- javadoc -->
-
- <template description="author name" name="author" context="C Global"
- >author ${user}</template>
-
-</templates>
+ */</template>
+ <template name="stdout" description="&printtostdout;" context="C Function" enabled="true">printf(${cursor});</template>
+ <template name="stderr" description="&printtostderr;" context="C Function" enabled="true">fprintf(stderr, ${cursor});</template>
+ <template name="author" description="&authorname;" context="C Global" enabled="true">author ${user}</template></templates>
\ No newline at end of file
Index: src/org/eclipse/cdt/internal/ui/cview/CViewMessages.properties
===================================================================
retrieving revision 1.4
diff -u -r1.4 CViewMessages.properties
--- src/org/eclipse/cdt/internal/ui/cview/CViewMessages.properties 26 Feb 2004 19:30:35 -0000 1.4
+++ src/org/eclipse/cdt/internal/ui/cview/CViewMessages.properties 18 Mar 2004 22:28:05 -0000
@@ -40,7 +40,7 @@
RefreshAction.locationDeleted.message= The location for project {0} ({1}) has been deleted.\n Delete {0} from the workspace?
ToggleLinkingAction.label=Lin&k With Editor
-ToggleLinkingAction.tooltip=Link with Editor
+ToggleLinkingAction.toolTip=Link with Editor
ToggleLinkingAction.description=Link with active editor
SearchAction.label=Search
Index: src/org/eclipse/cdt/internal/ui/cview/MainActionGroup.java
===================================================================
retrieving revision 1.7
diff -u -r1.7 MainActionGroup.java
--- src/org/eclipse/cdt/internal/ui/cview/MainActionGroup.java 15 Mar 2004 21:17:47 -0000 1.7
+++ src/org/eclipse/cdt/internal/ui/cview/MainActionGroup.java 18 Mar 2004 22:28:05 -0000
@@ -156,7 +156,7 @@
collapseAllAction = new CollapseAllAction(getCView());
- toggleLinkingAction = new ToggleLinkingAction(getCView(), CViewMessages.getString("ToggleLinkingAction.text")); //$NON-NLS-1$
+ toggleLinkingAction = new ToggleLinkingAction(getCView(), CViewMessages.getString("ToggleLinkingAction.label")); //$NON-NLS-1$
toggleLinkingAction.setToolTipText(CViewMessages.getString("ToggleLinkingAction.toolTip")); //$NON-NLS-1$
toggleLinkingAction.setImageDescriptor(getImageDescriptor("elcl16/synced.gif"));//$NON-NLS-1$
toggleLinkingAction.setHoverImageDescriptor(getImageDescriptor("clcl16/synced.gif"));//$NON-NLS-1$