Package org.eclipse.wst.xml.ui.internal.nsedit

Examples of org.eclipse.wst.xml.ui.internal.nsedit.CommonEditNamespacesDialog


    private CommonEditNamespacesDialog getEditNamespaces() {
      if (editNamespaces == null) {
        Composite co = new Composite(this, SWT.NONE);
        co.setLayout(new GridLayout());
        String tableTitle = XMLWizardsMessages._UI_LABEL_NAMESPACE_INFORMATION;
        editNamespaces = new CommonEditNamespacesDialog(co, null, tableTitle, true, true);
        this.layout();
      }
      return editNamespaces;
    }
View Full Code Here


      }
      return editNamespaces;
    }

    public void setNamespaceInfoList(List list) {
      CommonEditNamespacesDialog editDialog = getEditNamespaces();
     
        if (newFilePage != null) {
          IPath newPath = newFilePage.getContainerFullPath();
          if (newPath != null) {
            if (!newPath.equals(currentPath)) {
                  String resourceURI = "platform:/resource" + newPath.toString() + "/dummy"; //$NON-NLS-1$ //$NON-NLS-2$
                  String resolvedPath = URIHelper.normalize(resourceURI, null, null);
                  resolvedPath = URIHelper.removeProtocol(resolvedPath);
                 
                  currentPath = new Path(resolvedPath);
                  editDialog.setResourcePath(currentPath);
            }
          }
        }
        editDialog.setNamespaceInfoList(list);
        editDialog.updateErrorMessage(list);
    }
View Full Code Here

  protected Control createDialogArea(Composite parent) {
    Composite dialogArea = (Composite) super.createDialogArea(parent);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(dialogArea, XMLCommonUIContextIds.XCUI_SCHEMA_INFO_DIALOG);

    CommonEditNamespacesDialog editNamespacesControl = new CommonEditNamespacesDialog(dialogArea, resourceLocation, XMLUIMessages._UI_NAMESPACE_DECLARATIONS, false, true);
    editNamespacesControl.setNamespaceInfoList(namespaceInfoList);

    editNamespacesControl.updateErrorMessage(namespaceInfoList);

    return dialogArea;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.ui.internal.nsedit.CommonEditNamespacesDialog

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.