@Override
	public void actionPerformed(GuiButton button)
	{
		if(button.id == 0)
			holder.closeWindow(this);
		else if(button.id == 1 && holder instanceof GuiEditor)
		{
			GuiEditor editor = (GuiEditor)holder;
			
			Map newMap = new Map();
			newMap.loadR2DFile(ResourceLoader.getCollection(textField.text));
			if(editor.getMap() != null)
				editor.confirmOperation(new OperationOpenMap(editor,newMap,textField.text));
			else
				editor.executeOperation(new OperationOpenMap(editor,newMap,textField.text));
		}
	}