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; package org.eclipse.titan.designer.actions.runconfiggenerator;
import static org.eclipse.titan.common.utils.StringUtils.isNullOrEmpty; 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; package org.eclipse.titan.designer.samples;
import java.text.MessageFormat; import java.text.MessageFormat;
...@@ -56,12 +63,12 @@ public class HelloWorldJavaSample extends HelloWorldSample { ...@@ -56,12 +63,12 @@ public class HelloWorldJavaSample extends HelloWorldSample {
public Map<String, String> getOtherFileContent() { public Map<String, String> getOtherFileContent() {
return OTHER_FILE_CONTENT; return OTHER_FILE_CONTENT;
} }
@Override @Override
public Map<String, String> getSourceFileContent() { public Map<String, String> getSourceFileContent() {
return SOURCE_FILE_CONTENT; return SOURCE_FILE_CONTENT;
} }
/** /**
* Generates the user provided test port Java source for the Hello World project * Generates the user provided test port Java source for the Hello World project
* @param project Project in which the code is needed * @param project Project in which the code is needed
......
...@@ -254,7 +254,7 @@ public class HelloWorldSample extends SampleProject { ...@@ -254,7 +254,7 @@ public class HelloWorldSample extends SampleProject {
SOURCE_FILE_CONTENT.put("PCOType.hh", PCOTYPE_HH); SOURCE_FILE_CONTENT.put("PCOType.hh", PCOTYPE_HH);
SOURCE_FILE_CONTENT.put("PCOType.cc", PCOTYPE_CC); SOURCE_FILE_CONTENT.put("PCOType.cc", PCOTYPE_CC);
} }
private static String setHostName() { private static String setHostName() {
try { try {
return InetAddress.getLocalHost().getHostName(); 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; package org.eclipse.titan.designer.samples;
import java.util.HashMap; import java.util.HashMap;
...@@ -15,7 +22,7 @@ public final class SampleProjects { ...@@ -15,7 +22,7 @@ public final class SampleProjects {
AVAILABLE_PROJECTS.put(emptyProject.getName(), emptyProject); AVAILABLE_PROJECTS.put(emptyProject.getName(), emptyProject);
AVAILABLE_PROJECTS.put(helloWorld.getName(), helloWorld); AVAILABLE_PROJECTS.put(helloWorld.getName(), helloWorld);
} }
private static final Map<String, SampleProject> AVAILABLE_JAVA_PROJECTS = new HashMap<String, SampleProject>(); private static final Map<String, SampleProject> AVAILABLE_JAVA_PROJECTS = new HashMap<String, SampleProject>();
static { static {
final SampleProject emptyProject = new EmptyProjectSample(); final SampleProject emptyProject = new EmptyProjectSample();
...@@ -24,11 +31,19 @@ public final class SampleProjects { ...@@ -24,11 +31,19 @@ public final class SampleProjects {
AVAILABLE_JAVA_PROJECTS.put(emptyProject.getName(), emptyProject); AVAILABLE_JAVA_PROJECTS.put(emptyProject.getName(), emptyProject);
AVAILABLE_JAVA_PROJECTS.put(helloWorld.getName(), helloWorld); 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() { public static Map<String, SampleProject> getJavaProjects() {
return AVAILABLE_JAVA_PROJECTS; 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() { public static Map<String, SampleProject> getProjects() {
return AVAILABLE_PROJECTS; return AVAILABLE_PROJECTS;
} }
......
...@@ -155,7 +155,7 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements ...@@ -155,7 +155,7 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements
ErrorReporter.logExceptionStackTrace(e); ErrorReporter.logExceptionStackTrace(e);
} }
} }
final SampleProject sample = contentPage.getSampleProject(); final SampleProject sample = contentPage.getSampleProject();
if (sample != null) { if (sample != null) {
sample.setupProject(newProjectHandle.getProject(), folder); sample.setupProject(newProjectHandle.getProject(), folder);
...@@ -289,7 +289,6 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements ...@@ -289,7 +289,6 @@ public class NewTITANJavaProjectWizard extends BasicNewResourceWizard implements
createBuildProperties(); createBuildProperties();
createManifest(); createManifest();
//createUserProvidedPackageFolder();
ProjectSourceCompiler.generateGeneratedPackageInfo(newProject); ProjectSourceCompiler.generateGeneratedPackageInfo(newProject);
ProjectSourceCompiler.generateUserProvidedPackageInfo(newProject); ProjectSourceCompiler.generateUserProvidedPackageInfo(newProject);
......
...@@ -32,7 +32,7 @@ public class NewTITANProjectContentPage extends WizardPage { ...@@ -32,7 +32,7 @@ public class NewTITANProjectContentPage extends WizardPage {
private Composite pageComposite; private Composite pageComposite;
private SampleProject sampleProject = null; private SampleProject sampleProject = null;
private boolean titanJavaProject = false; private boolean titanJavaProject = false;
public NewTITANProjectContentPage() { public NewTITANProjectContentPage() {
...@@ -64,7 +64,7 @@ public class NewTITANProjectContentPage extends WizardPage { ...@@ -64,7 +64,7 @@ public class NewTITANProjectContentPage extends WizardPage {
pageComposite.dispose(); pageComposite.dispose();
super.dispose(); super.dispose();
} }
/** /**
* Returns whether this page is created for Titan C++ or Java project * 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 * @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; package org.eclipse.titan.executor.executors;
import static org.eclipse.titan.common.utils.StringUtils.isNullOrEmpty; 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; package org.eclipse.titan.executor.executors.java_mctr;
import java.util.List; 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