Package uk.ac.osswatch.simal.wicket.panel.project

Examples of uk.ac.osswatch.simal.wicket.panel.project.EditProjectPanel


    try {
      add(new Label("opennessRating", Integer.toString(project.getOpennessRating()) + "%"));
    } catch (SimalRepositoryException e) {
        add(new Label("opennessRating", "Not reviewed"));
    }
    add(new EditProjectPanel("editProjectPanel", project));
   
    // sources
    add(getRepeatingDataSourcePanel("sources", "seeAlso", project.getSources()));
    try {
    add(new Label("simalID", project.getSimalID()));
View Full Code Here


  public void testRenderPanel() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          IProject project =  SimalRepositoryFactory.getProjectService().getProject(projectURI);
          ReadOnlyStyleBehavior rosb = new EditProjectPanel(panelId, project).new ReadOnlyStyleBehavior();
          return new SourceRepositoriesPanel(panelId, "Source Repositories", project.getRepositories(), rosb, project);
        } catch (SimalRepositoryException e) {
          fail(e.getMessage());
          return null;
        }
View Full Code Here

  public void testRenderPanel() {
    tester.startPanel(new TestPanelSource() {
      public Panel getTestPanel(String panelId) {
        try {
          IProject project = SimalRepositoryFactory.getProjectService().getProject(projectURI);
          EditProjectPanel editProjectPanel = new EditProjectPanel("editProjectPanel", project);
          return new ReleasesPanel(panelId, project.getReleases(), editProjectPanel.new ReadOnlyStyleBehavior());
        } catch (SimalRepositoryException e) {
          fail(e.getMessage());
          return null;
        }
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.wicket.panel.project.EditProjectPanel

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.