void attachTo(Layered c) {
		Object oldHost = c.getHost();
		AttachDialog aid = new AttachDialog(getModel());
		aid.pack();
		aid.setVisible(true);
		if (oldHost == c.getHost())
			return;
		getModel().notifyChange();
		if (!doNotFireUndoEvent) {
			getModel().getUndoManager().undoableEditHappened(new UndoableEditEvent(getModel(), new UndoableLayeredComponentOperation(UndoAction.ATTACH_LAYERED_COMPONENT, c)));
			updateUndoUIComponents();
		}
	}