Package org.eclipse.wst.sse.core.internal.ltk.modelhandler

Examples of org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler


  /**
   */
  public boolean isJSPType() {
    if (this.model == null)
      return false;
    IModelHandler handler = this.model.getModelHandler();
    if (handler == null)
      return false;
    String id = handler.getAssociatedContentTypeId();
    if (id == null)
      return false;
    // ISSUE: -- avoid this hardcoded string
    return id.equals("org.eclipse.jst.jsp.core.jspsource"); //$NON-NLS-1$
  }
View Full Code Here


      /*
       * using a real document allows us to pull out text in the
       * translator for dealing with TEI variables
       */
      try {
        IModelHandler handler = ModelHandlerRegistry.getInstance().getHandlerFor(f, false);
        if (handler == null)
          handler = ModelHandlerRegistry.getInstance().getHandlerForContentTypeId(ContentTypeIdForJSP.ContentTypeID_JSPFRAGMENT);
        document = (IStructuredDocument) handler.getDocumentLoader().createNewStructuredDocument();
        contents = FileContentCache.getInstance().getContents(f.getFullPath());
      }
      catch (CoreException e) {
        Logger.logException(e);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler

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.