Package tk.eclipse.plugin.xmleditor.editors

Examples of tk.eclipse.plugin.xmleditor.editors.ElementSchemaMapping


    @Override
    protected Object doAdd() {
      CustomSchemaDialog dialog = new CustomSchemaDialog(getShell());
      if(dialog.open()==Dialog.OK){
        ElementSchemaMapping mapping = new ElementSchemaMapping(
            dialog.getName(), dialog.getPath());
        return mapping;
      }
      return null;
    }
View Full Code Here


      return null;
    }

    @Override
    protected void doEdit(Object obj) {
      ElementSchemaMapping mapping = (ElementSchemaMapping)obj;
      CustomSchemaDialog dialog = new CustomSchemaDialog(
          getShell(), mapping.getRootElement(), mapping.getFilePath());
      if(dialog.open()==Dialog.OK){
        mapping.setRootElement(dialog.getName());
        mapping.setFilePath(dialog.getPath());
      }
    }
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.xmleditor.editors.ElementSchemaMapping

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.