diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/EntryAdvice.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/EntryAdvice.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/EntryAdvice.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/EntryAdvice.java index 9ac9276c7..ebb583cc9 100644 --- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/EntryAdvice.java +++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/EntryAdvice.java @@ -1,5 +1,6 @@ /******************************************************************************* - * Copyright (c) 2008, 2010 Code 9 and others. All rights reserved. This + * Copyright (c) 2008, 2017 Code 9 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 @@ -10,16 +11,14 @@ ******************************************************************************/ package org.eclipse.equinox.internal.provisional.p2.directorywatcher; -import org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription; - -import org.eclipse.equinox.p2.metadata.Version; - import java.io.File; import java.net.URI; import java.util.HashMap; import java.util.Map; import org.eclipse.equinox.internal.p2.update.Site; import org.eclipse.equinox.p2.metadata.IInstallableUnit; +import org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription; +import org.eclipse.equinox.p2.metadata.Version; import org.eclipse.equinox.p2.publisher.actions.IPropertyAdvice; import org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor; @@ -29,9 +28,10 @@ import org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor; * only one entry at a time and that entry is the the only entry being published. */ public class EntryAdvice implements IPropertyAdvice { - private Map<String, String> metadataProps = new HashMap<String, String>(); - private Map<String, String> artifactProps = new HashMap<String, String>(); + private Map<String, String> metadataProps = new HashMap<>(); + private Map<String, String> artifactProps = new HashMap<>(); + @Override public boolean isApplicable(String configSpec, boolean includeDefault, String id, Version version) { return true; } @@ -56,10 +56,12 @@ public class EntryAdvice implements IPropertyAdvice { metadataProps.put(Site.PROP_LINK_FILE, linkFile); } + @Override public Map<String, String> getArtifactProperties(IInstallableUnit iu, IArtifactDescriptor descriptor) { return artifactProps; } + @Override public Map<String, String> getInstallableUnitProperties(InstallableUnitDescription iu) { return metadataProps; } |