AbstractComponent viewComp = v.getManifestedComponent();
ViewInfo newViewInfo = getViewInfoForCanvas(v, viewComp);
AbstractComponent comp = viewComp;
int nextPanelId = containerManifestation.panelId++;
MCTViewManifestationInfo viewManifestationInfo = new MCTViewManifestationInfoImpl();
viewManifestationInfo.setComponentId(comp.getComponentId());
viewManifestationInfo.setStartPoint(dropPoint);
viewManifestationInfo.setManifestedViewType(newViewInfo.getType());
if (v.getInfo().equals(newViewInfo)) {
ExtendedProperties ep = v.getViewProperties().clone();
ep.addProperty(CanvasViewStrategy.OWNED_TYPE_PROPERTY_NAME, v.getInfo().getType());
viewManifestationInfo.getOwnedProperties().add(ep);
}
viewManifestationInfo.addInfoProperty(ControlAreaFormattingConstants.PANEL_ORDER, String.valueOf(nextPanelId));
// use the viewComp here instead of the master component to retrieve the actual properties for the view
View addManifestation = CanvasViewStrategy.CANVAS_OWNED.createViewFromManifestInfo(newViewInfo, comp, canvasManifestation.getManifestedComponent(), viewManifestationInfo);
addManifestation.putClientProperty(CanvasManifestation.MANIFEST_INFO, viewManifestationInfo);
Panel panel = containerManifestation.createPanel(addManifestation, nextPanelId, containerManifestation);
viewManifestationInfo.setDimension(panel.getPreferredSize());
addManifestation.setNamingContext(panel);
assert addManifestation.getNamingContext() == panel;
// Add new panel info to the canvas content property list