Examples of TagShortcut


Examples of org.objectstyle.wolips.bindings.wod.TagShortcut

      }

      String shortcut = _shortcutTag.getText();
      String actual = _actualTag.getText();
      String attributes = _attributes.getText();
      _tagShortcut = new TagShortcut(shortcut, actual, attributes);

      super.okPressed();
    }
View Full Code Here

Examples of org.objectstyle.wolips.bindings.wod.TagShortcut

  @Override
  public void initializeDefaultPreferences() {
    IPreferenceStore prefs = Activator.getDefault().getPreferenceStore();

    List<TagShortcut> tagShortcuts = new ArrayList<TagShortcut>();
    tagShortcuts.add(new TagShortcut("localized", "ERXLocalizedString")); // not in 5.4
    tagShortcuts.add(new TagShortcut("not", "WOConditional"));
    tagShortcuts.add(new TagShortcut("else", "ERXElse"));
    tagShortcuts.add(new TagShortcut("if", "WOConditional"));
    tagShortcuts.add(new TagShortcut("conditional", "WOConditional"));
    tagShortcuts.add(new TagShortcut("condition", "WOConditional")); // not in 5.4
    tagShortcuts.add(new TagShortcut("foreach", "WORepetition"));
    tagShortcuts.add(new TagShortcut("repeat", "WORepetition"));
    tagShortcuts.add(new TagShortcut("repetition", "WORepetition"));
    tagShortcuts.add(new TagShortcut("loop", "WORepetition")); // not in 5.4
    tagShortcuts.add(new TagShortcut("content", "WOComponentContent"));
    tagShortcuts.add(new TagShortcut("componentContent", "WOComponentContent"));
    tagShortcuts.add(new TagShortcut("str", "WOString")); // not in 5.4
    tagShortcuts.add(new TagShortcut("string", "WOString"));
    tagShortcuts.add(new TagShortcut("switchComponent", "WOSwitchComponent"));
    tagShortcuts.add(new TagShortcut("switch", "WOSwitchComponent"));
    tagShortcuts.add(new TagShortcut("XMLNode", "WOXMLNode"));
    tagShortcuts.add(new TagShortcut("nestedList", "WONestedList"));
    tagShortcuts.add(new TagShortcut("param", "WOParam"));
    tagShortcuts.add(new TagShortcut("applet", "WOApplet"));
    tagShortcuts.add(new TagShortcut("quickTime", "WOQuickTime"));
    tagShortcuts.add(new TagShortcut("commentString", "WOHTMLCommentString"));
    tagShortcuts.add(new TagShortcut("comment", "WOHTMLCommentString"));
    tagShortcuts.add(new TagShortcut("noContentElement", "WONoContentElement"));
    tagShortcuts.add(new TagShortcut("noContent", "WONoContentElement"));
    tagShortcuts.add(new TagShortcut("body", "WOBody"));
    tagShortcuts.add(new TagShortcut("embeddedObject", "WOEmbeddedObject"));
    tagShortcuts.add(new TagShortcut("embedded", "WOEmbeddedObject"));
    tagShortcuts.add(new TagShortcut("frame", "WOFrame"));
    tagShortcuts.add(new TagShortcut("image", "WOImage"));
    tagShortcuts.add(new TagShortcut("img", "WOImage")); // not in 5.4
    tagShortcuts.add(new TagShortcut("form", "WOForm"));
    tagShortcuts.add(new TagShortcut("javaScript", "WOJavaScript"));
    tagShortcuts.add(new TagShortcut("VBScript", "WOVBScript"));
    tagShortcuts.add(new TagShortcut("resourceURL", "WOResourceURL"));
    tagShortcuts.add(new TagShortcut("genericElement", "WOGenericElement"));
    tagShortcuts.add(new TagShortcut("element", "WOGenericElement"));
    tagShortcuts.add(new TagShortcut("genericContainer", "WOGenericContainer"));
    tagShortcuts.add(new TagShortcut("container", "WOGenericContainer"));
    tagShortcuts.add(new TagShortcut("activeImage", "WOActiveImage"));
    tagShortcuts.add(new TagShortcut("checkBox", "WOCheckBox"));
    tagShortcuts.add(new TagShortcut("checkbox", "WOCheckBox")); // not in 5.4 (5.4 is case insensitive)
    tagShortcuts.add(new TagShortcut("fileUpload", "WOFileUpload"));
    tagShortcuts.add(new TagShortcut("upload", "WOFileUpload"));
    tagShortcuts.add(new TagShortcut("hiddenField", "WOHiddenField"));
    tagShortcuts.add(new TagShortcut("hidden", "WOHiddenField")); // not in 5.4
    tagShortcuts.add(new TagShortcut("imageButton", "WOImageButton"));
    tagShortcuts.add(new TagShortcut("inputList", "WOInputList"));
    tagShortcuts.add(new TagShortcut("browser", "WOBrowser"));
    tagShortcuts.add(new TagShortcut("checkBoxList", "WOCheckBoxList"));
    tagShortcuts.add(new TagShortcut("popUpButton", "WOPopUpButton"));
    tagShortcuts.add(new TagShortcut("select", "WOPopUpButton")); // not in 5.4
    tagShortcuts.add(new TagShortcut("radioButtonList", "WORadioButtonList"));
    tagShortcuts.add(new TagShortcut("passwordField", "WOPasswordField"));
    tagShortcuts.add(new TagShortcut("password", "WOPasswordField"));
    tagShortcuts.add(new TagShortcut("radioButton", "WORadioButton"));
    tagShortcuts.add(new TagShortcut("radio", "WORadioButton"));
    tagShortcuts.add(new TagShortcut("resetButton", "WOResetButton"));
    tagShortcuts.add(new TagShortcut("reset", "WOResetButton"));
    tagShortcuts.add(new TagShortcut("submitButton", "WOSubmitButton"));
    tagShortcuts.add(new TagShortcut("submit", "WOSubmitButton"));
    tagShortcuts.add(new TagShortcut("text", "WOText"));
    tagShortcuts.add(new TagShortcut("textField", "WOTextField"));
    tagShortcuts.add(new TagShortcut("textfield", "WOTextField")); // not in 5.4 (5.4 is case insensitive)
    tagShortcuts.add(new TagShortcut("search", "WOSearchField"));
    tagShortcuts.add(new TagShortcut("searchfield", "WOSearchField"));
    tagShortcuts.add(new TagShortcut("hyperlink", "WOHyperlink"));
    tagShortcuts.add(new TagShortcut("link", "WOHyperlink"));
    tagShortcuts.add(new TagShortcut("actionURL", "WOActionURL"));
    prefs.setDefault(PreferenceConstants.TAG_SHORTCUTS_KEY, TagShortcut.toPreferenceString(tagShortcuts));

    List<BindingValidationRule> validationRules = new ArrayList<BindingValidationRule>();
    validationRules.add(new BindingValidationRule(".*", "^session\\.localizer\\..*"));
    validationRules.add(new BindingValidationRule(".*", "^d2wContext\\..*"));
 
View Full Code Here

Examples of org.objectstyle.wolips.bindings.wod.TagShortcut

  public void setElementTypeForName(IType elementType, String elementName) {
    _elementNameToTypeCache.put(elementName, elementType.getFullyQualifiedName());
  }

  public static TagShortcut getTagShortcutNamed(String shortcut) {
    TagShortcut matchingTagShortcut = null;
    for (TagShortcut tagShortcut : getTagShortcuts()) {
      if (matchingTagShortcut == null && tagShortcut.getShortcut().equalsIgnoreCase(shortcut)) {
        matchingTagShortcut = tagShortcut;
      }
    }
View Full Code Here

Examples of org.objectstyle.wolips.bindings.wod.TagShortcut

        return null;
      }

      @Override
      protected void doEdit(Object obj) {
        TagShortcut _tagShortcut = (TagShortcut) obj;
        TagShortcutDialog dialog = new TagShortcutDialog(getShell(), _tagShortcut);
        if (dialog.open() == Dialog.OK) {
          TagShortcut newElement = dialog.getTagShortcut();
          _tagShortcut.setShortcut(newElement.getShortcut());
          _tagShortcut.setActual(newElement.getActual());
          _tagShortcut.setAttributesAsString(newElement.getAttributesAsString());
        }
      }

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

Examples of org.objectstyle.wolips.bindings.wod.TagShortcut

    String elementName = element.getName();
    String namespaceElementName = elementName.substring("wo:".length()).trim();
    int elementTypePosition = element.getOffset() + element.getNameOffset() + "wo:".length() + 1;
    int elementTypeLength = namespaceElementName.length();

    TagShortcut matchingTagShortcut = null;
    for (TagShortcut tagShortcut : ApiCache.getTagShortcuts()) {
      if (namespaceElementName.equalsIgnoreCase(tagShortcut.getShortcut())) {
        matchingTagShortcut = tagShortcut;
      }
    }
    if (matchingTagShortcut != null) {
      namespaceElementName = matchingTagShortcut.getActual();
    }

    _setElementName("_temp");
    _setElementType(namespaceElementName);
    setElementTypePosition(new Position(elementTypePosition, elementTypeLength));
    setInline(true);

    if (matchingTagShortcut != null) {
      for (Map.Entry<String, String> shortcutAttribute : matchingTagShortcut.getAttributes().entrySet()) {
        BindingValue value = WodHtmlUtils.toBindingValue(shortcutAttribute.getValue(), buildProperties.getInlineBindingPrefix(), buildProperties.getInlineBindingSuffix());
        SimpleWodBinding wodBinding = new SimpleWodBinding(null, shortcutAttribute.getKey(), value.getValue());
        addBinding(wodBinding);
      }
    }
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.