Index: properties/src/org/netbeans/modules/properties/Bundle.properties =================================================================== RCS file: /cvs/properties/src/org/netbeans/modules/properties/Bundle.properties,v retrieving revision 1.57 diff -u -r1.57 Bundle.properties --- properties/src/org/netbeans/modules/properties/Bundle.properties 16 Nov 2001 10:21:06 -0000 1.57 +++ properties/src/org/netbeans/modules/properties/Bundle.properties 15 Jan 2002 11:23:29 -0000 @@ -166,15 +166,9 @@ LBL_EditorName_Modified={0} * # {0} name of the file LBL_EditorName_Uptodate={0} -# {0} file with package -# {1} file without package -# {2} extension -LBL_EditorToolTip_Invalid={0} [{2}] (invalid) -# {0} file with package -# {1} file without package -# {2} extension -# {3} filesystem display name -LBL_EditorToolTip_Valid={0} [{2}] in {3} +# {0} file with path and extension +# {1} filesystem display name +LAB_EditorToolTip={0} in {1} # {0} = name of the data object # {1} = file name with package LBL_ObjectOpen=Opening {0} ... Index: properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java =================================================================== RCS file: /cvs/properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java,v retrieving revision 1.54 diff -u -r1.54 PropertiesEditorSupport.java --- properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java 4 Dec 2001 16:24:18 -0000 1.54 +++ properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java 15 Jan 2002 11:23:31 -0000 @@ -59,6 +59,7 @@ import org.openide.util.Utilities; import org.openide.windows.CloneableOpenSupport; import org.openide.windows.CloneableTopComponent; +import org.openide.filesystems.FileUtil; /** @@ -354,22 +355,19 @@ * @return text to show to the user */ protected String messageToolTip () { - // update tooltip + // copied from DataEditorSupport, more or less FileObject fo = myEntry.getFile(); - try { - return NbBundle.getMessage (PropertiesEditorSupport.class, "LBL_EditorToolTip_Valid", new Object[] { - fo.getPackageName ('.'), - fo.getName (), - fo.getExt (), - fo.getFileSystem ().getDisplayName () - }); + File f = FileUtil.toFile(fo); + if (f != null) { + return f.getAbsolutePath(); + } else { + return NbBundle.getMessage(PropertiesEditorSupport.class, "LAB_EditorToolTip", + fo.getPackageNameExt('/', '.'), + fo.getFileSystem().getDisplayName()); + } } catch (FileStateInvalidException fsie) { - return NbBundle.getMessage (PropertiesEditorSupport.class, "LBL_EditorToolTip_Invalid", new Object[] { - fo.getPackageName ('.'), - fo.getName (), - fo.getExt () - }); + return fo.getPackageNameExt('/', '.'); } }