Questions tagged [eclipse-fragment]

A fragment is used to replace or extend the functionality of an existing plug-in. A common use for fragments is to put environment (operating system, architecture, etc.) specific code into fragments.

A fragment is used to replace or extend the functionality of an existing plug-in. A common use for fragments is to put environment (operating system, architecture, etc.) specific code into fragments. Depending on the environment the plug-in is installed in the base plug-in code along with the correct fragment can be installed. Fragments are also ideal for shipping features like language or maintenance packs that typically trail the initial products for a few months.

When a fragment is detected by the platform and its parent plug-in is found, the fragment's libraries, extensions and extension points are "merged" with those of the parent plug-in.

Related Links:

15 questions
6
votes
1 answer

Are the contents of a fragment visible outside the host plugin?

I have never worked with plug-in fragments before. I thought that by creating a new class within a fragment and exporting the package that contains it in the fragment's manifest, I'd be able to access that class from another plug-in that already has…
Mike Daniels
  • 8,582
  • 2
  • 31
  • 44
4
votes
1 answer

Is there an equivalent to BundleActivator for Eclipse fragment projects?

I am building an Eclipse plug-in that provides a set of core features in the regular plug-in project. The optional features I am providing via fragment projects. But I need the fragments to register themselves with the main plug-in on start-up. I…
Brian Matthews
  • 8,506
  • 7
  • 46
  • 68
4
votes
3 answers

Java 7u55 Eclipse System Fragment Classloader

In previous versions of Java I was able to use a fragment that had a host of system-bundle in order to provide classes to the boot classloader. In my particular case this was to support using Jacorb in Eclipse. This all worked fine prior to Java…
Erik Englund
  • 355
  • 2
  • 11
4
votes
1 answer

Eclipse RCP: how to export launch configuration plugins?

Note: This is not a duplicate of any question regarding problems with product export: I can already export successfully both within gui and with headless pde build. I am developing a RCP application on eclipse Indigo (3.7), which is in the final…
guido
  • 18,864
  • 6
  • 70
  • 95
2
votes
1 answer

Where should I put testcode for an Eclipse plugin fragment?

There are several posts I found while searching for best practice of where to put test code for an Eclipse plugin. Most of them suggest fragments like this I have a plugin single sourced and it has two fragments, one for RCP and one for RAP. Now if…
1
vote
0 answers

Eclipse PDE UI feature export with two fragments for same os, different arch

Hoping to have some Eclipse PDE guru's weigh in here in a problem I'm having trouble solving. I am attempting export (via PDE UI) a feature that has two fragments included where both fragments target the same os (e.g., Linux) but have different…
Michael
  • 786
  • 8
  • 18
1
vote
1 answer

Where to put test classes?

When testing Eclipse RCP plugins, it is good practice to have all test classes and resources live in a dedicated (test) fragment. This way all classes in the host plugin can be accessed, no matter if those packages are actually exported or not. But…
kerner1000
  • 3,382
  • 1
  • 37
  • 57
1
vote
3 answers

Class loading when extending an Eclipse plugin with a fragment project does not work

I am trying to extend a third-party Eclipse plug-in by using a fragment project. The major reason is that the third party plug-in contains classes having the default (package) modifier and I need to extend them. Thus, my extensions class must be…
Claas Wilke
  • 1,951
  • 1
  • 18
  • 29
0
votes
0 answers

Creating a popup menu within a fragment.e4xmi for an editor at extension point org.eclipse.ui.editors

I am creating a custom editor via the extension point org.eclipse.ui.editors. This works all well. Let's say this is given the id=my.custom.editor.id Now, I would like to define a popup menu for my editor within my fragment.e4xmi. I do not seem to…
user3726374
  • 583
  • 1
  • 4
  • 24
0
votes
0 answers

Eclipse RCP: implement feature separated from other code

Let's say we want to extend someone elses (open-source) Eclipse 4 RCP application with our own eclipse-feature. Obviously, this feature cannot be stored together with the other code, but must reside in its own git repository. Unfortunately, the…
0
votes
1 answer

How to morph a fragment into a plug-in?

I need to turn Eclipse fragments into plug-ins. Haven't found any wizard to support this. So I've created a plugin.xml and edited the MANIFEST.MF to look exactly like a plug-in project does. Still, Eclipse somehow detects it's not a plug-in: for…
Adam Horvath
  • 1,249
  • 1
  • 10
  • 25
0
votes
1 answer

Use fragment to replace resource file in Eclipse plugin

I have an Eclipse plugin containing a resource file (resource.xml) which is loaded by the source code. This plugin is used in two applications, one base and one derivative, and I want to use a different resource.xml file in the derivative…
Bearmarshal
  • 115
  • 4
0
votes
1 answer

Eclipse fragment not resoving classes in parent plugin

Running in Linux on Eclipse Mars.2. I am using a targetplatform so that the plugins are mostly from Kepler.2, due to one of my plugins being 3rd party from that era. I have a fragment that will not compile in Eclipse because lots of classes do not…
0
votes
1 answer

Accessing plugins from fragments and vise versa

I'm trying to add a fragment to a plugin in order to have information added to the plugin without touching the latter. However, the problem I experienced is that I can access resources that are in the plugin from the fragment but not the other way…
Majid
  • 654
  • 2
  • 7
  • 28
0
votes
1 answer

Eclipse product does not recognize fragment (uncompressed)

I have an eclipse PRODUCT that has plugins and fragments: Plugin A (PRODUCT MAIN Plugin) Exported Plugins (eclipse DROPINS folder): Plugin B (Dependency of Plugin A) Fragment A (HOST=Plugin B) - UNCOMPRESSED=resources Fragment B (HOST=Plugin B) …
marcolopes
  • 9,232
  • 14
  • 54
  • 65