Examples of Project


Examples of noop.model.Project

    repository = injector.getInstance(LibraryRepository.class);
  }

  @Test public void shouldRunTheHelloWorldProgram() throws Exception {
    UUID uuid = UUID.randomUUID();   
    Project project = new Project("Hello World", "com.example", "");
    project.addLibrary(new Library(uuid, "hello")).addFunction(new Function("go"));
    controller.addProject(new NewProjectOperation(project));
    repository.save(project);
    StandardLibraryBuilder stdLib = new StandardLibraryBuilder().build(controller);
    repository.save(stdLib.noop);
View Full Code Here

Examples of npanday.dao.Project

    //TODO: Handle parent poms
    private void storeMavenProject( MavenProject project )
        throws MojoExecutionException
    {
        ProjectDao dao = (ProjectDao) daoRegistry.find( "dao:project" );
        Project proj = new Project();
        proj.setGroupId( project.getGroupId() );
        proj.setArtifactId( project.getArtifactId() );
        proj.setVersion( project.getVersion() );
        proj.setPublicKeyTokenId( project.getArtifact().getClassifier() );
        proj.setArtifactType( project.getArtifact().getType() );
        proj.setResolved( true );
        for ( Dependency dependency : (List<Dependency>) project.getDependencies() )
        {
            ProjectDependency projectDependency = new ProjectDependency();
            projectDependency.setGroupId( dependency.getGroupId() );
            projectDependency.setArtifactId( dependency.getArtifactId() );
            projectDependency.setVersion( dependency.getVersion() );
            projectDependency.setPublicKeyTokenId( dependency.getClassifier() );
            projectDependency.setArtifactType( dependency.getType() );
            proj.addProjectDependency( projectDependency );
        }

        try
        {
            dao.storeProjectAndResolveDependencies( proj, localRepository, new ArrayList<ArtifactRepository>() );
View Full Code Here

Examples of opus.gwt.management.console.client.overlays.Project

  }

  public void handleProjectInformation(String projectName){
    applicationsFlowPanel.clear();
   
    final Project project = clientFactory.getProjects().get(projectName);
    HashMap<String, Application> applicationsMap = clientFactory.getApplications();
    JsArrayString applicationsArray = project.getApps();
    active = project.isActive();
   
    if(active) {
      activeButton.setText("Deactivate project");
    } else {
      activeButton.setText("Activate project");
    }
   
    for(int i = 0; i < applicationsArray.length() - 1; i++) {
     
      final Application app = applicationsMap.get(applicationsArray.get(i));
      final FlowPanel application = new FlowPanel();
      final FocusPanel applicationLabel = new FocusPanel();
     
      final Label appName = new Label(app.getName());
      final Label httpLabel = new Label("HTTP");
      final Label httpsLabel = new Label("HTTPS");
      final Label settingsLabel = new Label("Settings");
     
      Image appIcon = new Image();
     
      if(app.getIconURL().split("//").length < 2) {
        appIcon = new Image(JSVarHandler.getCommunityBaseURL() + app.getIconURL());
      } else {
        appIcon = new Image(app.getIconURL());
      }
     
      appIcon.setSize("64px", "64px");
     
      application.add(appIcon);
      application.add(appName);
      application.add(httpLabel);
      application.add(httpsLabel);
      application.add(settingsLabel);
      application.setStyleName(manager.appIcon());
     
      applicationLabel.add(application);

      applicationLabel.addMouseOverHandler(new MouseOverHandler() {
        public void onMouseOver(MouseOverEvent event){
          if(project.isActive()) {
            applicationLabel.setStyleName(manager.appIconActive());
            appName.addStyleName(manager.text());
            httpLabel.addStyleName(manager.link());
            httpsLabel.addStyleName(manager.link());
            settingsLabel.addStyleName(manager.link());
          }
        }
      });
      applicationLabel.addMouseOutHandler(new MouseOutHandler() {
        public void onMouseOut(MouseOutEvent event){
          applicationLabel.setStyleName(manager.appIcon());
          appName.removeStyleName(manager.text());
          httpLabel.removeStyleName(manager.link());
          httpsLabel.removeStyleName(manager.link());
          settingsLabel.removeStyleName(manager.link());
        }
      });
     
      httpLabel.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          if(project.isActive()) {
            Window.Location.assign(project.getURLS().get(0) + app.getAppName());
          }
        }
      });
     
      httpsLabel.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          if(project.isActive()) {
            Window.Location.assign(project.getURLS().get(1) + app.getAppName());
          }
        }
      });
     
      settingsLabel.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          if(project.isActive()) {
            eventBus.fireEvent(new PanelTransitionEvent(PanelTransitionEvent.TransitionTypes.SETTINGS, app.getAppName()));
          }
        }
      });
     
View Full Code Here

Examples of oracle.ide.model.Project

        final Workspace activeWorkspace = Ide.getActiveWorkspace();
        for (Object child : activeWorkspace.getListOfChildren()) {
            if (child instanceof Reference) {
                oracle.ide.model.Node node = ((Reference) child).getData();
                if (node instanceof Project) {
                    final Project project = (Project) node;
                    // Create a child classloader for the project with the current classloader as parent.
                    retval = ProjectRunClassPathClassLoaderUtils.getClassLoader(project, retval);
                }
            }
        }
View Full Code Here

Examples of oracle.toplink.essentials.sessions.Project

    private ClassTransformer buildTransformer(PersistenceUnitInfo unitInfo, Writer logWriter, int logLevel) {
        //persistenceUnitInfo = unitInfo;
        ClassLoader privateClassLoader = unitInfo.getNewTempClassLoader();

        // create server session (it should be done before initializing ServerPlatform)
        ServerSession session = new ServerSession(new Project(new DatabaseLogin()));
        session.setLogLevel(logLevel);
        if(logWriter!=null){
            ((DefaultSessionLog)session.getSessionLog()).setWriter(logWriter);
         }
       
View Full Code Here

Examples of org.andromda.cartridges.deployment.psm.ant.Project

        ArrayList allTargets = new ArrayList(2);
        allTargets.add(compilationTarget);
        allTargets.add(deploymentTarget);

        Project p = new Project(getFullyQualifiedName(), "deploy", allTargets);
        return p;
    }
View Full Code Here

Examples of org.apache.airavata.model.workspace.Project

import org.apache.airavata.model.workspace.Project;

public class ProjectModelUtil {
    public static Project createProject (String projectName, String owner,String description){
        Project project = new Project();
        project.setName(projectName);
        project.setOwner(owner);
        project.setDescription(description);
        return project;
    }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Project

        queryGenerator.setParameter(ProjectConstants.PROJECT_NAME, keys[0]);
        Query q = queryGenerator.selectQuery(em);
        List<?> resultList = q.getResultList();
        if (resultList.size() != 0) {
            for (Object result : resultList) {
                Project project = (Project) result;
                ProjectResource projectResource = (ProjectResource)
                        Utils.getResource(ResourceType.PROJECT, project);
                list.add(projectResource);
            }
        }
View Full Code Here

Examples of org.apache.archiva.metadata.repository.cassandra.model.Project

        // project exists ? if yes return
        String projectKey = new Project.KeyBuilder().withProjectId( projectMetadata.getId() ).withNamespace(
            new Namespace( projectMetadata.getNamespace(), new Repository( repositoryId ) ) ).build();

        Project project = getProjectEntityManager().get( projectKey );
        if ( project != null )
        {
            return;
        }

        String namespaceKey = new Namespace.KeyBuilder().withRepositoryId( repositoryId ).withNamespace(
            projectMetadata.getNamespace() ).build();
        Namespace namespace = getNamespaceEntityManager().get( namespaceKey );
        if ( namespace == null )
        {
            namespace = updateOrAddNamespace( repositoryId, projectMetadata.getNamespace() );
        }

        project = new Project( projectKey, projectMetadata.getId(), namespace );

        try
        {
            getProjectEntityManager().put( project );
        }
View Full Code Here

Examples of org.apache.cayenne.project.Project

            // no more name assertions
            return;
        }

        Project project = (Project) path.getObjectParent();
        if (project == null) {
            return;
        }

        // check for duplicate names in the parent context
        Iterator it = project.getChildren().iterator();
        while (it.hasNext()) {
            DataDomain dom = (DataDomain) it.next();
            if (dom == domain) {
                continue;
            }
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.