Package org.eclipse.wst.xml.core.internal.contentmodel.annotation

Examples of org.eclipse.wst.xml.core.internal.contentmodel.annotation.AnnotationMap


   * @return AnnotationMap
   */
  private AnnotationMap getAnnotationMap() {
    // create a new annotation map and load it up
    if (fAnnotationMap == null) {
      fAnnotationMap = new AnnotationMap();
     
      List annotationFiles = ContentModelManager.getInstance().getAnnotationFilesInfos(getUri());
        for (Iterator i = annotationFiles.iterator(); i.hasNext();) {
          try {
            AnnotationFileInfo fileInfo = (AnnotationFileInfo) i.next();
View Full Code Here


   *
   * @return String taginfo if it exists, null otherwise
   */
  private String getTagInfo() {
    if (getOwnerDocument().supports("annotationMap")) { //$NON-NLS-1$
      AnnotationMap map = (AnnotationMap) getOwnerDocument().getProperty("annotationMap"); //$NON-NLS-1$
      String spec = getSpec();
      String result = map.getProperty(spec, "tagInfo"); //$NON-NLS-1$
      return result;
      // bug88336 no need to restore markers
      // return StringUtils.restoreMarkers(result); // return tag info
    }
    return null;
View Full Code Here

     * Gets the annotationMap.
     * @return Returns a AnnotationMap
     */
    protected AnnotationMap getAnnotationMap() {
      if (fAnnotationMap == null) {
        fAnnotationMap = new AnnotationMap();
        try {
          fAnnotationMap.load(htmlAnnotationLoc, HTMLCorePlugin.getDefault().getBundle().getSymbolicName());
        }
        catch (Exception e) {
          // no annotation available
View Full Code Here

     * Gets the annotationMap.
     * @return Returns a AnnotationMap
     */
    protected AnnotationMap getAnnotationMap() {
      if (fAnnotationMap == null) {
        fAnnotationMap = new AnnotationMap();
        try {
          fAnnotationMap.load(htmlAnnotationLoc, HTMLCorePlugin.getDefault().getBundle().getSymbolicName());
        }
        catch (Exception e) {
          // no annotation available
View Full Code Here

*
*/
public class AnnotationUtility {
  public static void loadAnnotationsForGrammar(String publicId, CMDocument cmDocument) {
    List annotationFiles = ContentModelManager.getInstance().getAnnotationFilesInfos(publicId);
    AnnotationMap map = (AnnotationMap) cmDocument.getProperty("annotationMap"); //$NON-NLS-1$
    if (map != null) {
      for (Iterator i = annotationFiles.iterator(); i.hasNext();) {
        try {
          AnnotationFileInfo annotationFileInfo = (AnnotationFileInfo) i.next();
          AnnotationFileParser parser = new AnnotationFileParser();
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.contentmodel.annotation.AnnotationMap

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.