Lines 823-829
Link Here
|
823 |
ErrorManager.getDefault().annotate( e, |
823 |
ErrorManager.getDefault().annotate( e, |
824 |
getString("PS_ExcIn") + |
824 |
getString("PS_ExcIn") + |
825 |
" " + editor.getClass ().getName () + // NOI18N |
825 |
" " + editor.getClass ().getName () + // NOI18N |
826 |
" " + getString ("PS_Editor") + "." |
826 |
" " + getString ("PS_Editor") + "." // NOI18N |
827 |
); |
827 |
); |
828 |
c = getTextView(getExceptionString(e)); |
828 |
c = getTextView(getExceptionString(e)); |
829 |
} |
829 |
} |
Lines 1112-1118
Link Here
|
1112 |
return getString("CTL_NoPropertyEditor"); |
1112 |
return getString("CTL_NoPropertyEditor"); |
1113 |
} |
1113 |
} |
1114 |
if (clazz.isArray()) { |
1114 |
if (clazz.isArray()) { |
1115 |
return "[" + getString ("PS_ArrayOf") +" " + |
1115 |
return "[" + getString ("PS_ArrayOf") +" " + // NOI18N |
1116 |
getTypeString(clazz.getComponentType()) + "]"; // NOI18N |
1116 |
getTypeString(clazz.getComponentType()) + "]"; // NOI18N |
1117 |
} |
1117 |
} |
1118 |
return "[" + clazz.getName() + "]"; // NOI18N |
1118 |
return "[" + clazz.getName() + "]"; // NOI18N |
Lines 1145-1151
Link Here
|
1145 |
} |
1145 |
} |
1146 |
|
1146 |
|
1147 |
if (existsCustomEditor) { |
1147 |
if (existsCustomEditor) { |
1148 |
panel.add(getCustomizeButton(), BorderLayout.EAST); // NOI18N |
1148 |
panel.add(getCustomizeButton(), BorderLayout.EAST); |
1149 |
} |
1149 |
} |
1150 |
|
1150 |
|
1151 |
panel.setToolTipText(getPanelToolTipText()); |
1151 |
panel.setToolTipText(getPanelToolTipText()); |
Lines 1189-1210
Link Here
|
1189 |
* <code>setAsText</code> or <code>setValue</code> call |
1189 |
* <code>setAsText</code> or <code>setValue</code> call |
1190 |
* on <code>editor</code>. Helper method. */ |
1190 |
* on <code>editor</code>. Helper method. */ |
1191 |
private void notifyExceptionWhileSettingProperty(Exception iae) { |
1191 |
private void notifyExceptionWhileSettingProperty(Exception iae) { |
|
|
1192 |
if (getPreferences () == 0){ |
1193 |
PropertyPanel.notifyUser (iae, descriptor.getDisplayName ()); |
1194 |
} else { |
1195 |
ErrorManager.getDefault ().notify (ErrorManager.INFORMATIONAL, iae); |
1196 |
} |
1197 |
} |
1198 |
|
1199 |
/** Processes <code>Exception</code> thrown from |
1200 |
* <code>setAsText</code> or <code>setValue</code> call |
1201 |
* on <code>editor</code>. Helper method. */ |
1202 |
static void notifyUser(Exception iae, String propertyName) { |
1192 |
|
1203 |
|
1193 |
String userMessage = extractLocalizedMessage(iae); |
1204 |
String userMessage = extractLocalizedMessage (iae); |
1194 |
|
1205 |
|
1195 |
if ((userMessage == null) && (iae instanceof InvocationTargetException)) { |
1206 |
if ((userMessage == null) && (iae instanceof InvocationTargetException)) { |
1196 |
userMessage = extractLocalizedMessage( |
1207 |
userMessage = extractLocalizedMessage( |
1197 |
((InvocationTargetException)iae).getTargetException()); |
1208 |
((InvocationTargetException)iae).getTargetException()); |
1198 |
} |
1209 |
} |
1199 |
ErrorManager em = ErrorManager.getDefault(); |
1210 |
ErrorManager em = ErrorManager.getDefault (); |
1200 |
if ((userMessage != null) && (getPreferences() == 0)){ |
1211 |
if ((userMessage != null)){ |
1201 |
em.annotate(iae, NbBundle.getMessage(PropertyPanel.class, |
1212 |
em.annotate (iae, NbBundle.getMessage(PropertyPanel.class, |
1202 |
"FMT_ErrorSettingProperty", userMessage, |
1213 |
"FMT_ErrorSettingProperty", userMessage, |
1203 |
descriptor.getDisplayName() |
1214 |
propertyName |
1204 |
)); |
1215 |
)); |
1205 |
em.notify(ErrorManager.USER, iae); |
1216 |
em.notify (ErrorManager.USER, iae); |
1206 |
} else { |
1217 |
} else { |
1207 |
em.notify(ErrorManager.INFORMATIONAL, iae); |
1218 |
em.notify (ErrorManager.INFORMATIONAL, iae); |
1208 |
} |
1219 |
} |
1209 |
} |
1220 |
} |
1210 |
|
1221 |
|
Lines 1988-1998
Link Here
|
1988 |
int j = 0; |
1999 |
int j = 0; |
1989 |
if (model instanceof ExPropertyModel) { |
2000 |
if (model instanceof ExPropertyModel) { |
1990 |
Object[] beans = ((ExPropertyModel)model).getBeans(); |
2001 |
Object[] beans = ((ExPropertyModel)model).getBeans(); |
1991 |
String delimiter = getString("ACSD_BeanListDelimiter"); |
2002 |
String delimiter = getString("ACSD_BeanListDelimiter"); // NOI18N |
1992 |
for (int i = 0; i < beans.length; i++) { |
2003 |
for (int i = 0; i < beans.length; i++) { |
1993 |
if (beans[i] instanceof Node) { |
2004 |
if (beans[i] instanceof Node) { |
1994 |
Node n = ((Node)beans[i]); |
2005 |
Node n = ((Node)beans[i]); |
1995 |
beansList = ((beansList == null) ? "" : beansList + delimiter) + n.getDisplayName(); |
2006 |
beansList = ((beansList == null) ? "" : beansList + delimiter) + n.getDisplayName(); // NOI18N |
1996 |
j++; |
2007 |
j++; |
1997 |
} |
2008 |
} |
1998 |
} |
2009 |
} |