Package net.sf.rej.files

Examples of net.sf.rej.files.Project


    public void openFile(File f) {
        if (this.project != null) {
            this.classIndex.removeElement(this.project.getFileSet());
        }

        Project project = new Project();

        project.setFile(f);
        try {
            FileSet set = getFileSet(f);
            this.classIndex.addElement(set);
            updateClassIndex();
            project.setFileSet(set);

            openProject(project);
        } catch(Exception e) {
          handleException(e);
        }
View Full Code Here


            }
        }
       
        try {
      Archive archive = Archive.createNew(archiveFile);
      Project project = new Project();
      project.setFile(archiveFile);
      project.setFileSet(archive);
      project.save();
      openProject(project);
    } catch (Exception e) {
      handleException(e);
    }
    }
View Full Code Here

        });
    }

  public void processEvent(Event event) {
    if (event.getType() == EventType.PROJECT_UPDATE) {
      Project p = event.getProject();
      if (p != null) {
        this.filenameField1.setText(p.getFile().getAbsolutePath());
      } else {
        this.filenameField1.setText("");
      }
    }
    }
View Full Code Here

TOP

Related Classes of net.sf.rej.files.Project

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.