-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize usage of Eclipse Applications in Tycho
Embedded Eclipse Application have proven to be a powerful tool in Tycho to reuse existing Eclipse codes in a dynamic way. Currently its still a bit of boilerplate code to start the application but always have the same semantics we want something with bundles resolved and cached and read from a location/target. This adds a generic EclipseApplicationManager that is able to manage many applications and caching these in a more effective way than single applications can do.
- Loading branch information
Showing
12 changed files
with
267 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
tycho-core/src/main/java/org/eclipse/tycho/osgi/framework/Bundles.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Christoph Läubrich and others. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Christoph Läubrich - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.tycho.osgi.framework; | ||
|
||
import java.util.Set; | ||
|
||
public record Bundles(Set<String> bundles) { | ||
|
||
public static final String BUNDLE_API_TOOLS = "org.eclipse.pde.api.tools"; | ||
public static final String BUNDLE_ECLIPSE_HELP_BASE = "org.eclipse.help.base"; | ||
public static final String BUNDLE_PDE_CORE = "org.eclipse.pde.core"; | ||
static final String BUNDLE_LAUNCHING_MACOS = "org.eclipse.jdt.launching.macosx"; | ||
static final String BUNDLE_APP = "org.eclipse.equinox.app"; | ||
static final String BUNDLE_SCR = "org.apache.felix.scr"; | ||
static final String BUNDLE_CORE = "org.eclipse.core.runtime"; | ||
static final String BUNDLE_LAUNCHER = "org.eclipse.equinox.launcher"; | ||
|
||
public static Bundles of(String... bundles) { | ||
return new Bundles(Set.of(bundles)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.