mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
externalizing strings from Tanya Wolff
This commit is contained in:
parent
e267a0e584
commit
f8d8ad6843
6 changed files with 50 additions and 101 deletions
|
@ -4,6 +4,15 @@
|
||||||
* src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
|
* src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
|
||||||
* src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
|
* src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
2004-03-18 Alain Magloire
|
2004-03-18 Alain Magloire
|
||||||
Change in the hierarchy of the core Model:
|
Change in the hierarchy of the core Model:
|
||||||
ICModel
|
ICModel
|
||||||
|
|
|
@ -2,6 +2,7 @@ pluginName=C/C++ Development Tools UI
|
||||||
providerName=Eclipse.org
|
providerName=Eclipse.org
|
||||||
|
|
||||||
elementFiltersName=CElement Filters
|
elementFiltersName=CElement Filters
|
||||||
|
binaryParserPage=Binary Parser Page
|
||||||
textHoversName=Text Hovers
|
textHoversName=Text Hovers
|
||||||
editorActionsName=Editor Actions
|
editorActionsName=Editor Actions
|
||||||
editorRulerActionsName=Editor Ruler Actions
|
editorRulerActionsName=Editor Ruler Actions
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<extension-point id="CCompletionContributor" name="%completionContributorName"/>
|
<extension-point id="CCompletionContributor" name="%completionContributorName"/>
|
||||||
<extension-point id="CElementFilters" name="%elementFiltersName"/>
|
<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 point: org.eclipse.cdt.ui.textHovers -->
|
||||||
<!-- Extension Implementation: must implement org.eclipse.jface.text.ITextHover -->
|
<!-- Extension Implementation: must implement org.eclipse.jface.text.ITextHover -->
|
||||||
|
|
|
@ -1,125 +1,64 @@
|
||||||
<?xml version="1.0"?>
|
<?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">
|
||||||
|
|
||||||
<!--
|
]>
|
||||||
(c) Copyright IBM Corp. 2000, 2001.
|
|
||||||
All Rights Reserved.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<templates>
|
<templates><template name="for" description="for loop" context="C Function" enabled="true">for (${var} = 0; ${var} < ${max}; ${var}++) {
|
||||||
|
|
||||||
<!-- C++ -->
|
|
||||||
|
|
||||||
<template description="for loop" name="for" context="C Function">
|
|
||||||
for (${var} = 0; ${var} < ${max}; ++${var}) {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="for" description="for loop &withtempvar;" context="C Function" enabled="true">for (int ${var} = 0; ${var} < ${max}; ${var}++) {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="for loop with temporary variable" name="for" context="C Function">
|
|
||||||
for (int ${var} = 0; ${var} < ${max}; ++${var}) {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="do" description="do while &statement;" context="C Function" enabled="true">do {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="do while statement" name="do" context="C Function">
|
|
||||||
do {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
} while (${condition});
|
} while (${condition});</template><template name="switch" description="switch case &statement;" context="C Function" enabled="true">switch (${key}) {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="switch case statement" name="switch" context="C Function">
|
|
||||||
switch (${key}) {
|
|
||||||
case ${value}:
|
case ${value}:
|
||||||
${cursor}
|
${cursor}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}</template><template name="if" description="if &statement;" context="C Function" enabled="true">if (${condition}) {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="if statement" name="if" context="C Function">
|
|
||||||
if (${condition}) {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="ifelse" description="if else &statement;" context="C Function" enabled="true">if (${condition}) {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="if else statement" name="ifelse" context="C Function">
|
|
||||||
if (${condition}) {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}</template><template name="elseif" description="else if █" context="C Function" enabled="true">else if (${condition}) {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="else if block" name="elseif" context="C Function">
|
|
||||||
else if (${condition}) {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="else" description="else █" context="C Function" enabled="true">else {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="else block" name="else" context="C Function">
|
|
||||||
else {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="try" description="try catch █" context="C++ Function" enabled="true">try {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="try catch block" name="try" context="C++ Function">
|
|
||||||
try {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
} catch (${Exception} e) {
|
} catch (${Exception} e) {
|
||||||
}
|
}</template><template name="catch" description="catch █" context="C++ Function" enabled="true">catch (${Exception} e) {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="catch block" name="catch" context="C++ Function">
|
|
||||||
catch (${Exception} e) {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="main" description="main &method;" context="C Global" enabled="true">int
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="main method" name="main" context="C Global">
|
|
||||||
int
|
|
||||||
main(int argc, char **argv) {
|
main(int argc, char **argv) {
|
||||||
${cursor}
|
${cursor}
|
||||||
}
|
}</template><template name="class" description="class &declaration;" context="C++ Global" enabled="true">class ${name} {
|
||||||
</template>
|
|
||||||
|
|
||||||
<template description="class declaration" name="class" context="C++ Global">
|
|
||||||
class ${name} {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
private:
|
private:
|
||||||
};
|
};</template>
|
||||||
</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} {
|
||||||
<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} {
|
|
||||||
${cursor}
|
${cursor}
|
||||||
}</template>
|
}</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">/*
|
||||||
|
|
||||||
<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">/*
|
|
||||||
* author ${user}
|
* author ${user}
|
||||||
*
|
*
|
||||||
* To change this generated comment edit the template variable "comment":
|
* To change this generated comment edit the template variable "comment":
|
||||||
* Window>Preferences>C>Templates.
|
* Window>Preferences>C>Templates.
|
||||||
*/</template>
|
*/</template>
|
||||||
|
<template name="stdout" description="&printtostdout;" context="C Function" enabled="true">printf(${cursor});</template>
|
||||||
<template description="print to standard out" name="stdout" context="C Function"
|
<template name="stderr" description="&printtostderr;" context="C Function" enabled="true">fprintf(stderr, ${cursor});</template>
|
||||||
>printf(${cursor});</template>
|
<template name="author" description="&authorname;" context="C Global" enabled="true">author ${user}</template></templates>
|
||||||
|
|
||||||
<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>
|
|
|
@ -40,7 +40,7 @@ RefreshAction.locationDeleted.title= Project location has been deleted
|
||||||
RefreshAction.locationDeleted.message= The location for project {0} ({1}) has been deleted.\n Delete {0} from the workspace?
|
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.label=Lin&k With Editor
|
||||||
ToggleLinkingAction.tooltip=Link with Editor
|
ToggleLinkingAction.toolTip=Link with Editor
|
||||||
ToggleLinkingAction.description=Link with active editor
|
ToggleLinkingAction.description=Link with active editor
|
||||||
|
|
||||||
SearchAction.label=Search
|
SearchAction.label=Search
|
||||||
|
|
|
@ -156,7 +156,7 @@ public class MainActionGroup extends CViewActionGroup {
|
||||||
|
|
||||||
collapseAllAction = new CollapseAllAction(getCView());
|
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.setToolTipText(CViewMessages.getString("ToggleLinkingAction.toolTip")); //$NON-NLS-1$
|
||||||
toggleLinkingAction.setImageDescriptor(getImageDescriptor("elcl16/synced.gif"));//$NON-NLS-1$
|
toggleLinkingAction.setImageDescriptor(getImageDescriptor("elcl16/synced.gif"));//$NON-NLS-1$
|
||||||
toggleLinkingAction.setHoverImageDescriptor(getImageDescriptor("clcl16/synced.gif"));//$NON-NLS-1$
|
toggleLinkingAction.setHoverImageDescriptor(getImageDescriptor("clcl16/synced.gif"));//$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue