@Override
	public void actionPerformed(GuiButton button)
	{
		if(button.id == 0)
			holder.closeWindow(this);
		else if(button.id == 1)
		{
			try
			{
				Entity e = ((GuiEditor)holder).getMap().getEntityList().getEntityWithUUID(entity);
				R2DFileManager manager = new R2DFileManager(textField.text,null);
				Map.saveEntityFull(e, manager.getCollection(), true);
				manager.write();
				
				e.setPrefabPath(textField.text);
				holder.closeWindow(this);
			}catch(Exception e)
			{
				throw new Remote2DException(e);
			}
		}
	}