if(!new File(file.getParent()).canWrite())
if((file.exists() && !file.canWrite()) || (!file.exists() && !new File(file.getParent()).canWrite()))
	public boolean save(View view, Buffer buffer, String path)	{		File file = new File(path);		long modTime = buffer.getLastModified();		long newModTime = file.lastModified();		if(!buffer.isNewFile() && newModTime != modTime)		{			Object[] args = { path };			int result = JOptionPane.showConfirmDialog(view,				jEdit.getProperty("filechanged-save.message",				args),jEdit.getProperty("filechanged.title"),				JOptionPane.YES_NO_OPTION,				JOptionPane.WARNING_MESSAGE);			if(result != JOptionPane.YES_OPTION)				return false;		}		// Check that we can actually write to the file		if(!new File(file.getParent()).canWrite())		{			String[] args = { path };			GUIUtilities.error(view,"no-write",args);			return false;		}		backup(buffer,file);		return super.save(view,buffer,path);	}