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