mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
2005-05-27 Alain Magloire
Patch from Dave Daoust to externalize some strings * refactor/org/eclipse/cdt/internal/core/refactoring/rename/RenameElementProcessor.java * src/rg/eclipse/cdt/internal/ui/CUIMessages.properties * src/org/eclipse/cdt/internal/ui/preferences/PreferencesMessages.properties * src/org/eclipse/cdt/internal/ui/search/DOMQuery.java * src/org/eclipse/cdt/internal/ui/search/LevelTreeContentProvider.java * src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionprocessor2.java * src/org/eclipse/cdt/ui/dialogs/CodeFormatterBlock.java
This commit is contained in:
parent
6597aae483
commit
52961638a3
8 changed files with 19 additions and 6 deletions
|
@ -1,3 +1,13 @@
|
|||
2005-05-27 Alain Magloire
|
||||
Patch from Dave Daoust to externalize some strings
|
||||
* refactor/org/eclipse/cdt/internal/core/refactoring/rename/RenameElementProcessor.java
|
||||
* src/rg/eclipse/cdt/internal/ui/CUIMessages.properties
|
||||
* src/org/eclipse/cdt/internal/ui/preferences/PreferencesMessages.properties
|
||||
* src/org/eclipse/cdt/internal/ui/search/DOMQuery.java
|
||||
* src/org/eclipse/cdt/internal/ui/search/LevelTreeContentProvider.java
|
||||
* src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionprocessor2.java
|
||||
* src/org/eclipse/cdt/ui/dialogs/CodeFormatterBlock.java
|
||||
|
||||
2005-05-19 Alain Magloire
|
||||
Fixed PR 95943
|
||||
* src/org/elcipse/cdt/internla/corext/template/c/TemplateMessages.properties
|
||||
|
|
|
@ -725,7 +725,7 @@ public class RenameElementProcessor extends RenameProcessor implements IReferenc
|
|||
if(( returnType == null) || (returnType.length() == 0) )
|
||||
return true;
|
||||
|
||||
if(getCurrentElementName().startsWith("~"))
|
||||
if(getCurrentElementName().startsWith("~")) //$NON-NLS-1$
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
|
@ -19,6 +19,7 @@ ExceptionDialog.seeErrorLogMessage=See error log for more details.
|
|||
CEditor.contentassist.noCompletions=No completions available
|
||||
CEditor.contentassist.parseError=No completions available due to parse error
|
||||
CEditor.contentassist.timeout=Content Assist parsing has timed out
|
||||
CEditor.contentassist.badDialect=Unsupported Dialect Exception
|
||||
|
||||
CAnnotationHover.multipleMarkers=Multiple markers at this line
|
||||
|
||||
|
|
|
@ -213,6 +213,8 @@ FoldingConfigurationBlock.error.not_exist= The selected folding provider does no
|
|||
|
||||
#Code Formatting
|
||||
CodeFormatterPreferencePage.title=Code Formatter
|
||||
CodeFormatterPreferencePage.selectionName=Formatters:
|
||||
CodeFormatterPreferencePage.emptyName=(NONE)
|
||||
CodeFormatterPreferencePage.description=Code Formatter
|
||||
|
||||
# --- Linked Resources ---
|
||||
|
|
|
@ -45,7 +45,6 @@ import org.eclipse.cdt.core.search.ICSearchResultCollector;
|
|||
import org.eclipse.cdt.core.search.ICSearchScope;
|
||||
import org.eclipse.cdt.core.search.IMatch;
|
||||
import org.eclipse.cdt.core.search.OffsetLocatable;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTName;
|
||||
import org.eclipse.cdt.ui.CUIPlugin;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
|
|
|
@ -20,7 +20,6 @@ import org.eclipse.cdt.core.CCorePlugin;
|
|||
import org.eclipse.cdt.core.model.CModelException;
|
||||
import org.eclipse.cdt.core.model.ICElement;
|
||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||
import org.eclipse.cdt.core.parser.IOffsetDuple;
|
||||
import org.eclipse.cdt.core.search.BasicSearchMatch;
|
||||
import org.eclipse.cdt.core.search.ILineLocatable;
|
||||
import org.eclipse.cdt.core.search.IMatchLocatable;
|
||||
|
|
|
@ -46,6 +46,7 @@ public class CCompletionProcessor2 implements IContentAssistProcessor {
|
|||
private String assistPrefix = "CEditor.contentassist"; //$NON-NLS-1$
|
||||
private String noCompletions = assistPrefix + ".noCompletions"; //$NON-NLS-1$
|
||||
private String parseError = assistPrefix + ".parseError"; //$NON-NLS-1$
|
||||
private String dialectError = assistPrefix + ".badDialect"; //$NON-NLS-1$
|
||||
|
||||
public CCompletionProcessor2(IEditorPart editor) {
|
||||
this.editor = editor;
|
||||
|
@ -134,7 +135,7 @@ public class CCompletionProcessor2 implements IContentAssistProcessor {
|
|||
return propsArray;
|
||||
|
||||
} catch (UnsupportedDialectException e) {
|
||||
errorMessage = "Unsupported Dialect Exception";
|
||||
errorMessage = CUIMessages.getString(dialectError);
|
||||
} catch (Throwable e) {
|
||||
errorMessage = e.toString();
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ import java.util.Map;
|
|||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.CCorePreferenceConstants;
|
||||
import org.eclipse.cdt.internal.ui.ICHelpContextIds;
|
||||
import org.eclipse.cdt.internal.ui.preferences.PreferencesMessages;
|
||||
import org.eclipse.cdt.internal.ui.util.PixelConverter;
|
||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||
import org.eclipse.core.runtime.IConfigurationElement;
|
||||
|
@ -48,7 +49,7 @@ public class CodeFormatterBlock {
|
|||
private static final String ATTR_ID="id"; //$NON-NLS-1$
|
||||
// This is a hack until we have a default Formatter.
|
||||
// For now it is comment out in the plugin.xml
|
||||
private static final String NONE="(NONE)"; //$NON-NLS-1$
|
||||
private static final String NONE=PreferencesMessages.getString("CodeFormatterPreferencePage.emptyName"); //$NON-NLS-1$
|
||||
|
||||
|
||||
public CodeFormatterBlock(Preferences prefs) {
|
||||
|
@ -105,7 +106,7 @@ public class CodeFormatterBlock {
|
|||
|
||||
ControlFactory.createEmptySpace(control, 2);
|
||||
|
||||
Label label = ControlFactory.createLabel(control, "Formatters:");
|
||||
Label label = ControlFactory.createLabel(control, PreferencesMessages.getString("CodeFormatterPreferencePage.selectionName")); //$NON-NLS-1$
|
||||
label.setLayoutData(new GridData());
|
||||
fFormatterCombo = new Combo(control, SWT.DROP_DOWN | SWT.READ_ONLY);
|
||||
GridData gd = new GridData(GridData.GRAB_HORIZONTAL);
|
||||
|
|
Loading…
Add table
Reference in a new issue