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

Examples of org.eclipse.wst.xml.ui.internal.dialogs.SelectFileOrXMLCatalogIdDialog


      browseButton.setEnabled(locationHintField.getEnabled());
    }

    protected void performBrowse() {
      String[] extensions = {".xsd"}; //$NON-NLS-1$
      SelectFileOrXMLCatalogIdDialog dialog = new SelectFileOrXMLCatalogIdDialog(getShell(), extensions);
      dialog.create();
      dialog.getShell().setText(XMLUIMessages._UI_LABEL_SELECT_FILE);
      dialog.setBlockOnOpen(true);
      dialog.open();

      if (dialog.getReturnCode() == Window.OK) {
        // String grammarURI = null;
        IFile file = dialog.getFile();
        String id = dialog.getId();
        if (file != null) {
          String uri = null;
          if (resourceLocation != null) {
            IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(resourceLocation);
            if (resource != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.ui.internal.dialogs.SelectFileOrXMLCatalogIdDialog

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.