Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin.includes = feature.xml,\
feature.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
###############################################################################
# Copyright (c) 2010-2012 Red Hat, Inc. and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Red Hat - Initial implementation.
##############################################################################
# feature.properties
# contains externalized strings for feature.xml
# "%foo" in feature.xml corresponds to the key "foo" in this file
# java.io.Properties file (ISO 8859-1 with "\" escapes)
# This file should be translated.

# "featureName" property - name of the feature
featureName=JBoss Tools Common - Launcher

# "providerName" property - name of the company that provides the feature
providerName=Red Hat

# "description" property - description of the feature
description=JBoss Tools Common - Launcher plugins

copyright=Copyright (c) 2018 Red Hat, Inc.\n\
Distributed under license by Red Hat, Inc. All rights reserved.\n\
This program is made available under the terms of the\n\
Eclipse Public License v1.0 which accompanies this distribution,\n\
and is available at http\://www.eclipse.org/legal/epl-v10.html\n\
Contributors\:\n\
Red Hat, Inc. - initial API and implementation

licenseURL=license.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature id="org.jboss.tools.common.launcher.feature" label="%featureName" version="3.10.1.qualifier" provider-name="%providerName"
plugin="org.jboss.tools.common.launcher.core"
license-feature="org.jboss.tools.foundation.license.feature"
license-feature-version="0.0.0">
<description url="http://www.jboss.org/tools">%description</description>
<copyright>%copyright</copyright>
<license url="%licenseURL">
%license
</license>
<plugin id="org.jboss.tools.common.launcher.core" download-size="0" install-size="0" version="0.0.0" />
<plugin id="org.jboss.tools.common.launcher.ui" download-size="0" install-size="0" version="0.0.0" />
</feature>
12 changes: 12 additions & 0 deletions launcher/features/org.jboss.tools.common.launcher.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.tools.common.launcher</groupId>
<artifactId>features</artifactId>
<version>3.10.1-SNAPSHOT</version>
</parent>
<groupId>org.jboss.tools.common.launcher.features</groupId>
<artifactId>org.jboss.tools.common.launcher.feature</artifactId>
<packaging>eclipse-feature</packaging>
</project>
31 changes: 31 additions & 0 deletions launcher/features/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.tools.common.launcher</groupId>
<artifactId>launcher</artifactId>
<version>3.10.1-SNAPSHOT</version>
</parent>
<groupId>org.jboss.tools.common.launcher</groupId>
<artifactId>features</artifactId>

<name>launcher.features</name>
<packaging>pom</packaging>
<modules>
<module>org.jboss.tools.common.launcher.feature</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/main/java/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
34 changes: 34 additions & 0 deletions launcher/plugins/org.jboss.tools.common.launcher.core/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.jboss.tools.common.launcher.core</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Manifest-Version: 1.0
Bundle-Name: %Bundle-Name.0
Bundle-ClassPath: .
Bundle-Activator: org.jboss.tools.common.launcher.core.LauncherCorePlugin
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.jboss.tools.common.launcher.core;singleton:=true
Bundle-Localization: plugin
Bundle-Version: 3.10.1.qualifier
Bundle-ActivationPolicy: lazy
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.jboss.tools.common,
org.eclipse.core.runtime,
org.eclipse.ui.workbench,
org.eclipse.jface,
com.fasterxml.jackson.core.jackson-annotations;bundle-version="2.9.2",
com.fasterxml.jackson.core.jackson-databind;bundle-version="2.9.2",
com.fasterxml.jackson.core.jackson-core;bundle-version="2.9.2",
org.jboss.tools.foundation.core
Automatic-Module-Name: org.jboss.tools.common.launcher.core
Export-Package: org.jboss.tools.common.launcher.core,
org.jboss.tools.common.launcher.core.model
34 changes: 34 additions & 0 deletions launcher/plugins/org.jboss.tools.common.launcher.core/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>

<head>
<title>About</title>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
</head>

<BODY lang="EN-US">

<H3>About This Content</H3>

<P>&copy;2018 Red Hat, Inc. All rights reserved</P>

<H3>License</H3>

<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
("Content"). Unless otherwise indicated below, the Content is provided to you
under the terms and conditions of the Eclipse Public License Version 1.0
("EPL"). A copy of the EPL is available at
<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
For purposes of the EPL, "Program" will mean the Content.</P>

<P>If you did not receive this Content directly from Red Hat Inc., the
Content is being redistributed by another party ("Redistributor") and different
terms and conditions may apply to your use of any object code in the Content.
Check the Redistributor's license that was provided with the Content. If no such
license exists, contact the Redistributor. Unless otherwise indicated below, the
terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at
<A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>

</BODY>
</HTML>
27 changes: 27 additions & 0 deletions launcher/plugins/org.jboss.tools.common.launcher.core/about.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# about.ini
# contains information about a feature
# java.io.Properties file (ISO 8859-1 with "\" escapes)
# "%key" are externalized strings defined in about.properties
# This file does not need to be translated.
# test
# Property "aboutText" contains blurb for "About" dialog (translated)
aboutText=%blurb

# Property "windowImage" contains path to window icon (16x16)
# needed for primary features only

# Property "featureImage" contains path to feature image (32x32)
featureImage=jboss_about.png

# Property "aboutImage" contains path to product image (500x330 or 115x164)
# needed for primary features only

# Property "appName" contains name of the application (not translated)
# needed for primary features only

# Property "welcomePerspective" contains the id of the perspective in which the
# welcome page is to be opened.
# optional



Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# about.mappings
# contains fill-ins for about.properties
# java.io.Properties file (ISO 8859-1 with "\" escapes)
# This file does not need to be translated.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
blurb=JBoss Tools Common Launcher\n\nVersion\: {featureVersion}\n\n(c) Copyright (c) Red Hat, Inc., contributors and others 2018. All rights reserved.\nVisit http\://jboss.org/tools

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
jars.compile.order = .
source.. = src/main/java/
bin.includes = plugin.properties,\
META-INF/,\
.,\
about.html,\
about.ini,\
about.mappings,\
about.properties,\
jboss_about.png
src.includes = src/main/java/
output.. = bin/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
providerName=Red Hat

Bundle-Name.0 = JBoss Tools Common Launcher Core
13 changes: 13 additions & 0 deletions launcher/plugins/org.jboss.tools.common.launcher.core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.tools.common.launcher</groupId>
<artifactId>plugins</artifactId>
<version>3.10.1-SNAPSHOT</version>
</parent>
<groupId>org.jboss.tools.common.launcher.plugins</groupId>
<artifactId>org.jboss.tools.common.launcher.core</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*************************************************************************************
* Copyright (c) 2018 Red Hat, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* JBoss by Red Hat - Initial implementation.
************************************************************************************/
package org.jboss.tools.common.launcher.core;

public final class LauncherCoreConstants {

/**
* Name of the Launcher endpoint URL preference
*/
public static final String LAUNCHER_ENDPOINT_PREFERENCE_NAME = LauncherCorePlugin.PLUGIN_ID + ".endpoint";
public static final String LAUNCHER_ENDPOINT_PREFERENCE_DEFAULT = "https://forge.api.openshift.io/api";


public static final String LAUNCHER_CATALOG_SUFFIX = "booster-catalog";
public static final String LAUNCHER_ZIP_PREFIX = "launcher/zip";
public static final String LAUNCHER_ZIP_MISSION_PARAMETER_NAME = "mission";
public static final String LAUNCHER_ZIP_RUNTIME_PARAMETER_NAME = "runtime";
public static final String LAUNCHER_ZIP_RUNTIME_VERSION_PARAMETER_NAME = "runtimeVersion";
public static final String LAUNCHER_ZIP_PROJECT_NAME_PARAMETER_NAME = "projectName";
public static final String LAUNCHER_ZIP_GROUP_ID_PARAMETER_NAME = "groupId";
public static final String LAUNCHER_ZIP_ARTIFACT_ID_PARAMETER_NAME = "artifactId";
public static final String LAUNCHER_ZIP_VERSION_PARAMETER_NAME = "projectVersion";

private LauncherCoreConstants() {}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*************************************************************************************
* Copyright (c) 2018 Red Hat, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* JBoss by Red Hat - Initial implementation.
************************************************************************************/
package org.jboss.tools.common.launcher.core;

import static org.jboss.tools.common.launcher.core.LauncherCoreConstants.LAUNCHER_ENDPOINT_PREFERENCE_DEFAULT;
import static org.jboss.tools.common.launcher.core.LauncherCoreConstants.LAUNCHER_ENDPOINT_PREFERENCE_NAME;

import org.eclipse.core.runtime.preferences.InstanceScope;
import org.jboss.tools.common.log.BaseUIPlugin;

public class LauncherCorePlugin extends BaseUIPlugin {
public static final String PLUGIN_ID = "org.jboss.tools.common.launcher.core"; //$NON-NLS-1$

private static LauncherCorePlugin INSTANCE;

public LauncherCorePlugin() {
INSTANCE = this;
}

public static LauncherCorePlugin getDefault() {
return INSTANCE;
}

public String getDefaultEndpointURL() {
return InstanceScope.INSTANCE.getNode(PLUGIN_ID)
.get(LAUNCHER_ENDPOINT_PREFERENCE_NAME, LAUNCHER_ENDPOINT_PREFERENCE_DEFAULT);
}
}
Loading