From 9218ea6c8e5824cc385bad9ec32d9f568a106a16 Mon Sep 17 00:00:00 2001 From: willemc Date: Mon, 27 Aug 2007 20:47:54 +0200 Subject: [PATCH] [svn r279] fixed method name, and added i18n keys for edit dialog --- src/com/idcanet/vasc/annotations/VascAnnotationParser.java | 3 ++- src/com/idcanet/vasc/impl/swing/SwingVascViewRenderer.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/idcanet/vasc/annotations/VascAnnotationParser.java b/src/com/idcanet/vasc/annotations/VascAnnotationParser.java index a22a7c7..97c9536 100644 --- a/src/com/idcanet/vasc/annotations/VascAnnotationParser.java +++ b/src/com/idcanet/vasc/annotations/VascAnnotationParser.java @@ -85,7 +85,7 @@ public class VascAnnotationParser { return (String)getValue(beanClass,VascName.class,property); } - public String getVascLabelKey(Class beanClass) { + public String getVascNameKey(Class beanClass) { return (String)getValue(beanClass,VascName.class,null); } @@ -121,6 +121,7 @@ public class VascAnnotationParser { public String getVascImage(Class beanClass) { return (String)getValue(beanClass,VascImage.class,null); } + /** * No oop code here...refactor at some point in time diff --git a/src/com/idcanet/vasc/impl/swing/SwingVascViewRenderer.java b/src/com/idcanet/vasc/impl/swing/SwingVascViewRenderer.java index fbd685b..ff8cfdc 100644 --- a/src/com/idcanet/vasc/impl/swing/SwingVascViewRenderer.java +++ b/src/com/idcanet/vasc/impl/swing/SwingVascViewRenderer.java @@ -249,9 +249,9 @@ public class SwingVascViewRenderer implements VascViewRenderer { JLabel l = new JLabel(); l.setHorizontalAlignment(JLabel.TRAILING); - l.setText(c.getName()); + l.setText(table.getVascTextValue().getTextValue(c.getName())); if(c.getToolTip()!=null) { - l.setToolTipText(c.getToolTip()); + l.setToolTipText(table.getVascTextValue().getTextValue(c.getToolTip())); } body.add(l);