diff options
author | Jeffrey Overbey | 2011-03-14 21:49:14 +0000 |
---|---|---|
committer | Jeffrey Overbey | 2011-03-14 21:49:14 +0000 |
commit | 6a0aac7edb4572644e4cb7ee6f91a6575c450218 (patch) | |
tree | 22eaba34d6c4b3044490e82c4a514fb6f21f1d12 /org.eclipse.photran.cdtinterface | |
parent | 2a633076e3ae95e20a342e12a03f35164a692935 (diff) | |
download | org.eclipse.photran-6a0aac7edb4572644e4cb7ee6f91a6575c450218.tar.gz org.eclipse.photran-6a0aac7edb4572644e4cb7ee6f91a6575c450218.tar.xz org.eclipse.photran-6a0aac7edb4572644e4cb7ee6f91a6575c450218.zip |
Bug 316799 - Fortran language name incorrect in CDT language mappings dialog
Diffstat (limited to 'org.eclipse.photran.cdtinterface')
3 files changed, 40 insertions, 0 deletions
diff --git a/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/FortranLanguage.java b/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/FortranLanguage.java index 1b887991..b7adcb8d 100644 --- a/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/FortranLanguage.java +++ b/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/FortranLanguage.java @@ -55,6 +55,12 @@ public class FortranLanguage extends AbstractLanguage { return LANGUAGE_ID; } + + @Override + public String getName() + { + return Messages.FortranLanguage_Name; + } public IContributedModelBuilder createModelBuilder(ITranslationUnit tu) { diff --git a/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/Messages.java b/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/Messages.java new file mode 100644 index 00000000..311bbaef --- /dev/null +++ b/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/Messages.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2011 University of Illinois at Urbana-Champaign and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * UIUC - Initial API and implementation + *******************************************************************************/ +package org.eclipse.photran.internal.cdtinterface.core; + +import org.eclipse.osgi.util.NLS; + +/** + * + * @author joverbey + */ +public class Messages extends NLS +{ + private static final String BUNDLE_NAME = "org.eclipse.photran.internal.cdtinterface.core.messages"; //$NON-NLS-1$ + + public static String FortranLanguage_Name; + static + { + // initialize resource bundle + NLS.initializeMessages(BUNDLE_NAME, Messages.class); + } + + private Messages() + { + } +} diff --git a/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/messages.properties b/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/messages.properties new file mode 100644 index 00000000..9e44e8a3 --- /dev/null +++ b/org.eclipse.photran.cdtinterface/src/org/eclipse/photran/internal/cdtinterface/core/messages.properties @@ -0,0 +1 @@ +FortranLanguage_Name=Fortran |