Index: api/doc/changes/apichanges.xml =================================================================== RCS file: /cvs/openide/api/doc/changes/apichanges.xml,v retrieving revision 1.236 diff -u -r1.236 apichanges.xml --- api/doc/changes/apichanges.xml 18 Mar 2005 07:12:39 -0000 1.236 +++ api/doc/changes/apichanges.xml 23 Mar 2005 15:57:44 -0000 @@ -114,6 +114,21 @@ + + + Add method NotifyDescriptor.getDefaultValue() + + + + + + The NotifyDescriptor.getDefaultValue() returns object which represents the default value. + This default value is introduced in the constructor of NotifyDescriptor. + + + + + One can specify separator for property editor for String[] Index: src/org/openide/NotifyDescriptor.java =================================================================== RCS file: /cvs/openide/src/org/openide/NotifyDescriptor.java,v retrieving revision 1.45 diff -u -r1.45 NotifyDescriptor.java --- src/org/openide/NotifyDescriptor.java 2 Mar 2005 17:11:45 -0000 1.45 +++ src/org/openide/NotifyDescriptor.java 23 Mar 2005 15:57:44 -0000 @@ -84,6 +84,8 @@ private Object[] adOptions; /** The user's choice value object. */ private Object value; + /** The default initial value. */ + private Object defaultValue; /** The title string for the report. */ private String title; /** Is OK button valid (enabled). */ @@ -176,6 +178,7 @@ this.optionType = optionType; this.title = title; this.value = initialValue; + this.defaultValue = initialValue; } /** Method that is called before a value is returned from any of @@ -465,6 +468,16 @@ public Object getValue() { getterCalled (); return value; + } + + /** + * Get the default value of descriptor. + * + * @return an Object that represents the default value + * @since 5.8 + */ + public Object getDefaultValue () { + return defaultValue; } /**