Examples of XMLFileFilter


Examples of com.cuubez.visualizer.scanner.filter.XmlFileFilter

public class ConfigurationScanner extends FileScanner {

    public InputStream scan(String applicationPath) throws IOException {

        URL resource = findResources(applicationPath);
        FileReader itr = getFileReader(resource, new XmlFileFilter());


        return itr.next();

    }
View Full Code Here

Examples of gov.nasa.jsc.mct.importExport.utilities.XMLFileFilter

    Assert.assertEquals(okFiles.size(), 5);
  }
 
  @Test
  public void testXMLFilter(){
    XMLFileFilter xmlfilter = new XMLFileFilter();
    Assert.assertFalse(xmlfilter.accept(new File("")));   
    Assert.assertTrue(xmlfilter.accept(new File("src/test/resources/testOutput/")));
    Assert.assertTrue(xmlfilter.accept(new File("src/test/resources/testOutput/multComp.xml")));
  }
View Full Code Here

Examples of gov.nasa.jsc.mct.importExport.utilities.XMLFileFilter

        + targetComponent.getDisplayName());
        fileChooser.setApproveButtonText(bundle.getString("import_button"));
       
        fileChooser.setFileSelectionMode(FileChooser.FILES_AND_DIRECTORIES);

        fileChooser.setFileFilter(new XMLFileFilter());
        fileChooser.setMultiSelectionEnabled(true);
       
        if (source == null) return null;
        int returnVal = fileChooser.showOpenDialog(source);
View Full Code Here

Examples of gov.nasa.jsc.mct.importExport.utilities.XMLFileFilter

    // create a save as dialog
    final FileChooser fileChooser = new FileChooser();
    fileChooser.setDialogTitle(bundle.getString("export_message"));
    fileChooser.setApproveButtonText(bundle.getString("export_button"));
    fileChooser.setFileSelectionMode(FileChooser.FILES_ONLY);
    fileChooser.setFileFilter(new XMLFileFilter());
    if (source == null)
      return null;
    int returnVal = fileChooser.showOpenDialog(source);

    if (returnVal == FileChooser.APPROVE_OPTION) {
View Full Code Here

Examples of gov.nasa.jsc.mct.importExport.utilities.XMLFileFilter

        + targetComponent.getDisplayName());
        fileChooser.setApproveButtonText(bundle.getString("import_button"));
       
        fileChooser.setFileSelectionMode(FileChooser.FILES_AND_DIRECTORIES);

        fileChooser.setFileFilter(new XMLFileFilter());
        fileChooser.setMultiSelectionEnabled(true);
       
        if (source == null) return null;
        int returnVal = fileChooser.showOpenDialog(source);
View Full Code Here

Examples of gov.nasa.jsc.mct.importExport.utilities.XMLFileFilter

    // create a save as dialog
    final FileChooser fileChooser = new FileChooser();
    fileChooser.setDialogTitle(bundle.getString("export_message"));
    fileChooser.setApproveButtonText(bundle.getString("export_button"));
    fileChooser.setFileSelectionMode(FileChooser.FILES_ONLY);
    fileChooser.setFileFilter(new XMLFileFilter());
    if (source == null)
      return null;
    int returnVal = fileChooser.showOpenDialog(source);

    if (returnVal == FileChooser.APPROVE_OPTION) {
View Full Code Here

Examples of mydatagenerator.gui.utils.filefilter.XmlFileFilter

         */
          if (e.getActionCommand().equals("Choose Import File"))
          {
            // only xml file are accepted
            inputFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
            inputFileChooser.setFileFilter(new XmlFileFilter());
            inputFileChooser.setDialogTitle("Choose an XML input file");           
                 
                int value = inputFileChooser.showOpenDialog(this);
                
                //Return value if approved (ie yes, ok) is chosen.
View Full Code Here

Examples of org.apache.ideaplugin.bean.XmlFileFilter

    public  int getPageType() {
        return  WizardPanel.SERVICE_ARCHIVE_TYPE  ;
    }

    private void browseXmlFile(){
        fileChooser.setFileFilter(new XmlFileFilter() );
        fileChooser.setCurrentDirectory(archiveBean.getClassLoc());
        int returnVal= fileChooser.showOpenDialog(butSelect);
        if(returnVal == JFileChooser .APPROVE_OPTION ){
            File xmlfile = fileChooser.getSelectedFile();
            txtServiceXml.setText(xmlfile.getAbsolutePath());
View Full Code Here

Examples of org.apache.ideaplugin.bean.XmlFileFilter

    public  int getPageType() {
        return  WizardPanel.SERVICE_ARCHIVE_TYPE  ;
    }

    private void browseXmlFile(){
        fileChooser.setFileFilter(new XmlFileFilter() );
        fileChooser.setCurrentDirectory(archiveBean.getClassLoc());
        int returnVal= fileChooser.showOpenDialog(butSelect);
        if(returnVal == JFileChooser .APPROVE_OPTION ){
            File xmlfile = fileChooser.getSelectedFile();
            txtServiceXml.setText(xmlfile.getAbsolutePath());
View Full Code Here

Examples of org.apache.tools.ant.gui.core.XMLFileFilter

  /**
   * Save the project to the current file name.
   *
   */
    public void run() {
        FileFilter filter = new XMLFileFilter(getContext().getResources());

        if(_project == null) {
            _project = getContext().getSelectionManager().getSelectedProject();
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.