Package org.eclipse.ui.texteditor.templates.TemplatePreferencePage

Examples of org.eclipse.ui.texteditor.templates.TemplatePreferencePage.EditTemplateDialog.open()


   * @param isNameModifiable <code>true</code> if the template name may be modified
   * @return the created or modified template, or <code>null</code> if the editing failed
   */
  protected Template editTemplate(Template template, boolean edit, boolean isNameModifiable) {
    EditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, edit, isNameModifiable, getContextTypeRegistry());
    if (dialog.open() == Window.OK)
      return dialog.getTemplate();
    return null;
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.