Frage

I have two workspace A and B. I call from B another class that is in Workspace A. This occures errors, becuase my code is made only to be called from Workspace A. Is there a way to call something from a special workspace?

My example:

Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE; Map m = reg.getExtensionToFactoryMap();

This code works (is in Workspace A) perfectly when calling from workspace A, but when I call it from Workspace B it contains the wrong error. I tried it with this but something like

Resource.Factory.Registry reg = this.Resource.Factory.Registry.INSTANCE;

do not work. Has someone an idea?

War es hilfreich?

Lösung

The only way you can do is , make a jar of that project containing that class from workspace A and add in build path of B .

Andere Tipps

u cannot do that in eclipse .two different workspace file cannot be accessed .

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top