Commit 0ba8777d authored by Adam Knapp's avatar Adam Knapp
Browse files

Adding copyright texts



Change-Id: Ie3c31e2cc0fee5f4971bdeb99fb78eae5fe074ef
Signed-off-by: default avatarAdam Knapp <adam.knapp@sigmatechnology.se>
parent a320227f
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
******************************************************************************/
package org.eclipse.titan.designer.actions.runconfiggenerator;
import static org.eclipse.titan.common.utils.StringUtils.isNullOrEmpty;
......
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
******************************************************************************/
package org.eclipse.titan.designer.samples;
import java.text.MessageFormat;
......@@ -56,12 +63,12 @@ public class HelloWorldJavaSample extends HelloWorldSample {
public Map<String, String> getOtherFileContent() {
return OTHER_FILE_CONTENT;
}
@Override
public Map<String, String> getSourceFileContent() {
return SOURCE_FILE_CONTENT;
}
/**
* Generates the user provided test port Java source for the Hello World project
* @param project Project in which the code is needed
......
......@@ -254,7 +254,7 @@ public class HelloWorldSample extends SampleProject {
SOURCE_FILE_CONTENT.put("PCOType.hh", PCOTYPE_HH);
SOURCE_FILE_CONTENT.put("PCOType.cc", PCOTYPE_CC);
}
private static String setHostName() {
try {
return InetAddress.getLocalHost().getHostName();
......
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
******************************************************************************/
package org.eclipse.titan.designer.samples;
import java.util.HashMap;
......@@ -15,7 +22,7 @@ public final class SampleProjects {
AVAILABLE_PROJECTS.put(emptyProject.getName(), emptyProject);
AVAILABLE_PROJECTS.put(helloWorld.getName(), helloWorld);
}
private static final Map<String, SampleProject> AVAILABLE_JAVA_PROJECTS = new HashMap<String, SampleProject>();
static {
final SampleProject emptyProject = new EmptyProjectSample();
......@@ -24,11 +31,19 @@ public final class SampleProjects {
AVAILABLE_JAVA_PROJECTS.put(emptyProject.getName(), emptyProject);
AVAILABLE_JAVA_PROJECTS.put(helloWorld.getName(), helloWorld);
}
/**
* Returns the list of Titan Java sample projects
* @return The list of Titan Java sample projects
*/
public static Map<String, SampleProject> getJavaProjects() {
return AVAILABLE_JAVA_PROJECTS;
}
/**
* Returns the list of Titan C++ sample projects
* @return The list of Titan C++ sample projects
*/
public static Map<String, SampleProject> getProjects() {
return AVAILABLE_PROJECTS;
}
......
......@@ -155,7 +155,7 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements
ErrorReporter.logExceptionStackTrace(e);
}
}
final SampleProject sample = contentPage.getSampleProject();
if (sample != null) {
sample.setupProject(newProjectHandle.getProject(), folder);
......@@ -289,7 +289,6 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements
createBuildProperties();
createManifest();
//createUserProvidedPackageFolder();
ProjectSourceCompiler.generateGeneratedPackageInfo(newProject);
ProjectSourceCompiler.generateUserProvidedPackageInfo(newProject);
......
......@@ -32,7 +32,7 @@ public class NewTITANProjectContentPage extends WizardPage {
private Composite pageComposite;
private SampleProject sampleProject = null;
private boolean titanJavaProject = false;
public NewTITANProjectContentPage() {
......@@ -64,7 +64,7 @@ public class NewTITANProjectContentPage extends WizardPage {
pageComposite.dispose();
super.dispose();
}
/**
* Returns whether this page is created for Titan C++ or Java project
* @return True, if this page is created for Titan Java project; false otherwise
......
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
******************************************************************************/
package org.eclipse.titan.executor.executors;
import static org.eclipse.titan.common.utils.StringUtils.isNullOrEmpty;
......
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
******************************************************************************/
package org.eclipse.titan.executor.executors.java_mctr;
import java.util.List;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment