Domanda

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?

È stato utile?

Soluzione

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 .

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top