Package org.eclipse.jst.pagedesigner.parts

Examples of org.eclipse.jst.pagedesigner.parts.HTMLEditPartsFactory


    if (host instanceof EditPart) {
      part = (EditPart) host;
    } else if (host instanceof Node) {
      part = Target.resolvePart((Node) host);
      if (part == null) {
        part = new HTMLEditPartsFactory(
            (IDOMDocument) getDocumentNode((Node) host))
            .createEditPart(null, host);
      }
    }
    if (part instanceof NodeEditPart) {
View Full Code Here


    // initialize the viewer with input
    // IStructuredModel sModel =
    // StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(ContentTypeIdForHTML.ContentTypeID_HTML);
    // IDOMDocument designDoc = ((IDOMModel)sModel).getDocument();
    // HTMLEditPartsFactory factory = new HTMLEditPartsFactory(designDoc);
    HTMLEditPartsFactory factory = new HTMLEditPartsFactory(null);

    _viewer.setEditPartFactory(factory);

    // for sync with source view.
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.parts.HTMLEditPartsFactory

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.