final DesktopName name = new DesktopName(MasterEnclosurePanel.class, PathFactory.provideMasterPath(device));
final ViewPath vp = new ViewPath(ZDesktopManager.dockMASTER, name);
return new ViewInstance() {
public JComponent getView() throws ComponentGenerationException {
try {
MasterEnclosurePanel mep = new MasterEnclosurePanel();
mep.init(device);
return mep;
} catch (Exception e) {
throw new ComponentGenerationException(e.getMessage());
}
}