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
Expand Up @@ -36,7 +36,7 @@
* @deprecated The org.eclipse.update component has been replaced by Equinox p2.
* This API will be deleted in a future release. See bug 311590 for details.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
public interface IPlatformConfiguration {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @deprecated The org.eclipse.update component has been replaced by Equinox p2.
* This API will be deleted in a future release. See bug 311590 for details.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
public interface IPlatformConfigurationFactory {
/**
* Returns the current platform configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

import org.eclipse.core.runtime.IBundleGroup;
import org.eclipse.core.runtime.IBundleGroupProvider;
import org.eclipse.update.configurator.IPlatformConfiguration;
import org.eclipse.update.configurator.IPlatformConfiguration.IFeatureEntry;
import org.eclipse.update.configurator.IPlatformConfigurationFactory;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
Expand All @@ -30,26 +27,28 @@
* made available in the service registry before this bundle has started.
*/
@Component(service = IBundleGroupProvider.class)
@SuppressWarnings("deprecation")
@SuppressWarnings("removal")
public class BundleGroupComponent implements IBundleGroupProvider {


private IPlatformConfigurationFactory factory;
private org.eclipse.update.configurator.IPlatformConfigurationFactory factory;

@Activate
public BundleGroupComponent(@Reference IPlatformConfigurationFactory factory) {
public BundleGroupComponent(@Reference org.eclipse.update.configurator.IPlatformConfigurationFactory factory) {
this.factory = factory;
}

@Override
public IBundleGroup[] getBundleGroups() {
IPlatformConfiguration configuration = factory.getCurrentPlatformConfiguration();
org.eclipse.update.configurator.IPlatformConfiguration configuration = factory
.getCurrentPlatformConfiguration();
if (configuration == null) {
return new IBundleGroup[0];
}
IPlatformConfiguration.IFeatureEntry[] features = configuration.getConfiguredFeatureEntries();
org.eclipse.update.configurator.IPlatformConfiguration.IFeatureEntry[] features = configuration
.getConfiguredFeatureEntries();
ArrayList<IBundleGroup> bundleGroups = new ArrayList<>(features.length);
for (IFeatureEntry feature : features) {
for (org.eclipse.update.configurator.IPlatformConfiguration.IFeatureEntry feature : features) {
if (feature instanceof FeatureEntry && ((FeatureEntry) feature).hasBranding())
bundleGroups.add((IBundleGroup) feature);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
*******************************************************************************/
package org.eclipse.update.internal.configurator;

import org.eclipse.update.configurator.IPlatformConfiguration.*;

/**
* Constants
*/
Expand Down Expand Up @@ -43,15 +41,16 @@ public interface IConfigurationConstants {
public static final String CFG_FRAGMENT = "fragment"; //$NON-NLS-1$
public static final String CFG_ENABLED = "enabled"; //$NON-NLS-1$
public static final String CFG_SHARED_URL = "shared_ur"; //$NON-NLS-1$


public static final String CFG_VERSION = "version"; //$NON-NLS-1$
public static final String CFG_TRANSIENT = "transient"; //$NON-NLS-1$
public static final String VERSION = "3.0"; //$NON-NLS-1$

public static final int DEFAULT_POLICY_TYPE = ISitePolicy.USER_EXCLUDE;
@SuppressWarnings("removal")
public static final int DEFAULT_POLICY_TYPE = org.eclipse.update.configurator.IPlatformConfiguration.ISitePolicy.USER_EXCLUDE;
public static final String[] DEFAULT_POLICY_LIST = new String[0];

public static final String PLUGINS = "plugins"; //$NON-NLS-1$
public static final String FEATURES = "features"; //$NON-NLS-1$
public static final String PLUGIN_XML = "plugin.xml"; //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;

@SuppressWarnings("deprecation")
@SuppressWarnings("removal")
@Component(service = IPlatformConfigurationFactory.class)
public class PlatformConfigurationFactory implements IPlatformConfigurationFactory {
private Location configLocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.xml.sax.*;


@SuppressWarnings("removal")
public class SiteEntry implements IPlatformConfiguration.ISiteEntry, IConfigurationConstants{
private static final String MAC_OS_MARKER = ".DS_Store"; //$NON-NLS-1$

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@
*******************************************************************************/
package org.eclipse.update.internal.configurator;

import org.eclipse.update.configurator.*;
import org.eclipse.update.configurator.IPlatformConfiguration.*;


public class SitePolicy implements IPlatformConfiguration.ISitePolicy {
@SuppressWarnings("removal")
public class SitePolicy implements org.eclipse.update.configurator.IPlatformConfiguration.ISitePolicy {

private int type;
private String[] list;

public SitePolicy() {
}

public SitePolicy(int type, String[] list) {
if (type != ISitePolicy.USER_INCLUDE && type != ISitePolicy.USER_EXCLUDE && type != ISitePolicy.MANAGED_ONLY)
if (type != org.eclipse.update.configurator.IPlatformConfiguration.ISitePolicy.USER_INCLUDE
&& type != org.eclipse.update.configurator.IPlatformConfiguration.ISitePolicy.USER_EXCLUDE
&& type != org.eclipse.update.configurator.IPlatformConfiguration.ISitePolicy.MANAGED_ONLY)
throw new IllegalArgumentException();
this.type = type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
*******************************************************************************/
package org.eclipse.update.internal.configurator.branding;

import org.eclipse.update.configurator.IPlatformConfiguration.IFeatureEntry;

/**
* These constants define the set of properties that the UI expects to
* be available via <code>IBundleGroup.getProperty(String)</code>.
Expand Down
Loading