mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
2004-09-16 Chris Wiebe
refactor messages out of internal.ui.search.CSearchMessages add default label for anonymous structs * src/org/eclipse/cdt/internal/ui/CUIMessages.properties * src/org/eclipse/cdt/internal/ui/viewsupport/CElementLabels.java
This commit is contained in:
parent
4cbd23a3df
commit
09dd8e4f22
3 changed files with 17 additions and 11 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-09-16 Chris Wiebe
|
||||
|
||||
refactor messages out of internal.ui.search.CSearchMessages
|
||||
add default label for anonymous structs
|
||||
* src/org/eclipse/cdt/internal/ui/CUIMessages.properties
|
||||
* src/org/eclipse/cdt/internal/ui/viewsupport/CElementLabels.java
|
||||
|
||||
2004-09-15 Chris Wiebe
|
||||
|
||||
Allow sorting categories to be accessed from subclass.
|
||||
|
|
|
@ -62,3 +62,8 @@ IndexerOptions.enableSemantic = Report &semantic problems
|
|||
IndexerOptions.enableSyntactic = Report s&yntactic problems
|
||||
|
||||
StatusBarUpdater.num_elements_selected={0} items selected
|
||||
|
||||
CElementLabels.anonymous=(anon)
|
||||
CElementLabels.concat_string=\ -\
|
||||
CElementLabels.comma_string=,\
|
||||
CElementLabels.declseparator_string=\ :\
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.cdt.core.model.IMethod;
|
|||
import org.eclipse.cdt.core.model.ISourceRoot;
|
||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||
import org.eclipse.cdt.internal.corext.util.CModelUtil;
|
||||
import org.eclipse.cdt.internal.ui.search.CSearchMessages;
|
||||
import org.eclipse.cdt.internal.ui.CUIMessages;
|
||||
import org.eclipse.cdt.ui.CUIPlugin;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
|
@ -249,9 +249,9 @@ public class CElementLabels {
|
|||
public final static int DEFAULT_POST_QUALIFIED= F_POST_QUALIFIED | M_POST_QUALIFIED | I_POST_QUALIFIED | T_POST_QUALIFIED | D_POST_QUALIFIED | CF_POST_QUALIFIED | CU_POST_QUALIFIED;
|
||||
|
||||
|
||||
public final static String CONCAT_STRING= CSearchMessages.getString("CElementLabels.concat_string"); // " - "; //$NON-NLS-1$
|
||||
public final static String COMMA_STRING = CSearchMessages.getString("CElementLabels.comma_string"); // ", "; //$NON-NLS-1$
|
||||
public final static String DECL_STRING = CSearchMessages.getString("CElementLabels.declseparator_string"); // " "; // use for return type //$NON-NLS-1$
|
||||
public final static String CONCAT_STRING= CUIMessages.getString("CElementLabels.concat_string"); // " - "; //$NON-NLS-1$
|
||||
public final static String COMMA_STRING = CUIMessages.getString("CElementLabels.comma_string"); // ", "; //$NON-NLS-1$
|
||||
public final static String DECL_STRING = CUIMessages.getString("CElementLabels.declseparator_string"); // " "; // use for return type //$NON-NLS-1$
|
||||
|
||||
public static String getTextLabel(Object obj, int flags) {
|
||||
if (obj instanceof ICElement) {
|
||||
|
@ -467,13 +467,7 @@ public class CElementLabels {
|
|||
|
||||
String typeName= elem.getElementName();
|
||||
if (typeName.length() == 0) { // anonymous
|
||||
// try {
|
||||
// String superclassName= Signature.getSimpleName(type.getSuperclassName());
|
||||
// typeName= CUIMessages.getFormattedString("JavaElementLabels.anonym_type" , superclassName); //$NON-NLS-1$
|
||||
// } catch (CModelException e) {
|
||||
// //ignore
|
||||
// typeName= CUIMessages.getString("JavaElementLabels.anonym"); //$NON-NLS-1$
|
||||
// }
|
||||
typeName = CUIMessages.getString("CElementLabels.anonymous"); //$NON-NLS-1$
|
||||
}
|
||||
buf.append(typeName);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue