Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/runtime/org.eclipse.fx.osgi/src/org/eclipse/fx/osgi/patch/PFBundleWrapper.java')
-rwxr-xr-xbundles/runtime/org.eclipse.fx.osgi/src/org/eclipse/fx/osgi/patch/PFBundleWrapper.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/bundles/runtime/org.eclipse.fx.osgi/src/org/eclipse/fx/osgi/patch/PFBundleWrapper.java b/bundles/runtime/org.eclipse.fx.osgi/src/org/eclipse/fx/osgi/patch/PFBundleWrapper.java
deleted file mode 100755
index a70a484ca..000000000
--- a/bundles/runtime/org.eclipse.fx.osgi/src/org/eclipse/fx/osgi/patch/PFBundleWrapper.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.fx.osgi.patch;
-
-import org.eclipse.osgi.baseadaptor.BaseData;
-import org.eclipse.osgi.baseadaptor.bundlefile.BundleFile;
-import org.eclipse.osgi.baseadaptor.hooks.BundleFileWrapperFactoryHook;
-
-/**
- * Wraps bundle files so that they can be patched with content from
- * patch fragments.
- */
-public class PFBundleWrapper implements BundleFileWrapperFactoryHook {
- private final PFAdaptorHook adaptorHook;
-
- /**
- * @param adaptorHook
- */
- public PFBundleWrapper(PFAdaptorHook adaptorHook) {
- this.adaptorHook = adaptorHook;
- }
-
- @Override
- public BundleFile wrapBundleFile(BundleFile bundleFile, Object content, BaseData data, boolean base) {
- if (data.getBundleID() == 0)
- // it is usually a bad idea to modify the behavior of the system.bundle file.
- return null;
- // at this point we do not know if the BaseData is a host or a fragment;
- // we just create a PFBundleFile for all bundles
- return new PFBundleFile(bundleFile, data, this.adaptorHook);
- }
-
-}

Back to the top