Package tk.eclipse.plugin.htmleditor.assist

Examples of tk.eclipse.plugin.htmleditor.assist.CustomAttribute


        HTMLPlugin.openAlertDialog(HTMLPlugin.createMessage(
            HTMLPlugin.getResourceString("Error.Required"),
            new String[]{ HTMLPlugin.getResourceString("HTMLEditorPreferencePage.AttributeName") }));
        return;
      }
      attrInfo = new CustomAttribute(target.getText(), name.getText());
      super.okPressed();
    }
View Full Code Here


        }
        return null;
      }

      protected void doEdit(Object obj) {
        CustomAttribute attrInfo = (CustomAttribute)obj;
        CustomAttributeDialog dialog = new CustomAttributeDialog(getShell(), attrInfo);
        if(dialog.open()==Dialog.OK){
          CustomAttribute newAttrInfo = dialog.getCustomAttribute();
          attrInfo.setTargetTag(newAttrInfo.getTargetTag());
          attrInfo.setAttributeName(newAttrInfo.getAttributeName());
        }
      }

      protected ITableLabelProvider createLabelProvider() {
        return new CustomAssistLabelProvider();
View Full Code Here

      return null;
    }
   
    public String getColumnText(Object element, int columnIndex) {
      if(element instanceof CustomAttribute){
        CustomAttribute attr = (CustomAttribute)element;
        if(columnIndex==0){
          return attr.getTargetTag();
        } else if(columnIndex==1){
          return attr.getAttributeName();
        }
      } else if(element instanceof CustomElement){
        CustomElement elem = (CustomElement)element;
        if(columnIndex==0){
          return elem.getDisplayName();
View Full Code Here

        return null;
      }

      @Override
      protected void doEdit(Object obj) {
        CustomAttribute attrInfo = (CustomAttribute)obj;
        CustomAttributeDialog dialog = new CustomAttributeDialog(getShell(), attrInfo);
        if(dialog.open()==Dialog.OK){
          CustomAttribute newAttrInfo = dialog.getCustomAttribute();
          attrInfo.setTargetTag(newAttrInfo.getTargetTag());
          attrInfo.setAttributeName(newAttrInfo.getAttributeName());
        }
      }

      @Override
      protected ITableLabelProvider createLabelProvider() {
View Full Code Here

      return null;
    }
   
    public String getColumnText(Object element, int columnIndex) {
      if(element instanceof CustomAttribute){
        CustomAttribute attr = (CustomAttribute)element;
        if(columnIndex==0){
          return attr.getTargetTag();
        } else if(columnIndex==1){
          return attr.getAttributeName();
        }
      } else if(element instanceof CustomElement){
        CustomElement elem = (CustomElement)element;
        if(columnIndex==0){
          return elem.getDisplayName();
View Full Code Here

        HTMLPlugin.openAlertDialog(HTMLPlugin.createMessage(
            HTMLPlugin.getResourceString("Error.Required"),
            new String[]{ HTMLPlugin.getResourceString("HTMLEditorPreferencePage.AttributeName") }));
        return;
      }
      attrInfo = new CustomAttribute(target.getText(), name.getText());
      super.okPressed();
    }
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.htmleditor.assist.CustomAttribute

Copyright © 2018 www.massapicom. 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.