@Override
  protected IDataModelProvider getDefaultProvider() {
    final TemplateStore templateStore = LayoutTplUI.getDefault().getTemplateStore();

    final TemplateContextType contextType =
        LayoutTplUI.getDefault()
            .getTemplateContextRegistry()
            .getContextType(LayoutTplTemplateContextTypeIds.NEW);

    return new NewLayoutTplDataModelProvider() {
      @Override
      public IDataModelOperation getDefaultOperation() {
        return new AddLayoutTplOperation(getDataModel(), templateStore, contextType);
      }
    };
  }
 protected void openWebFile(IFile file) {
   try {
     openEditor(file);
   } catch (Exception cantOpen) {
     LayoutTplUI.logError(cantOpen);
   }
 }
  public PortletLayoutTreeEditPart(PortletLayout model) {
    super(model);

    URL url = LayoutTplUI.getDefault().getBundle().getEntry("/icons/e16/layout.png"); // $NON-NLS-1$
    icon = ImageDescriptor.createFromURL(url).createImage();
  }
 protected ImageDescriptor getDefaultImageDescriptor() {
   return LayoutTplUI.imageDescriptorFromPlugin(
       LayoutTplUI.PLUGIN_ID, "/icons/wizban/layout_template_wiz.png"); // $NON-NLS-1$
 }