示例#1
0
 @Override
 public void setId(int id) {
   int oldId = getId();
   super.setId(id);
   if (oldId != id) {
     // A new ID was assigned to this instance
     //				//Rename file
     //				File oldPath = new File(iconPath);
     //				File newPath = new File(oldPath.getParent(), String.format(ICON_NAME_FMT, getId()));
     //				if (newPath.exists()) {
     //					newPath.delete();
     //				}
     //				oldPath.renameTo(newPath);
     //				iconPath = newPath.getAbsolutePath();
     pendingId = true;
   }
   checkMoveFile();
 }
示例#2
0
 @Override
 protected void setParent(IIconManager parent) {
   super.setParent(parent);
   checkMoveFile();
 }