else if (data.getFileName()!=file.getAbsolutePath())
else if (!file.getAbsolutePath().equals(data.getFileName()))
public void save(java.io.File file) throws IOException {/* if (drawingSurface.isTemplateMode()) { 	saveAsTemplate(file); 	return; }*/  Group.save(Group.getRoot(), file, false); VDBTemplate data = Group.getEditingTemplateData(); if (data==null) { 	// create a new 	// id = basename	data = new VDBTemplate(file.getName(), file.getAbsolutePath());		data.setPorts(new Hashtable());	data.setPortsV(new Vector());	data.setMacros(new Hashtable());	data.setMacrosV(new Vector());		data.setGroup(Group.getRoot());		Group.setEditingTemplateData(data);	drawingSurface.getTemplateStack().push(data);	VDBData.addTemplate(data); }  // save as check //	fileName & id has been changed, fix them else if (data.getFileName()!=file.getAbsolutePath()) { 	// reload previous ... 	drawingSurface.reloadTemplate(data); 	 	// ... and fix current id (basename) and path	data.setFileName(file.getAbsolutePath()); 		data.setId(file.getName()); }  // if ok drawingSurface.setModified(false); // !!! VisualDCT.getInstance().updateLoadLabel();	 VisualDCT.getInstance().setOpenedFile(file); //SetWorkspaceFile cmd = (SetWorkspaceFile)CommandManager.getInstance().getCommand("SetFile"); //cmd.setFile(file.getCanonicalPath()); //cmd.execute();}