[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: Create a fork of org.eclipse.jdt.core with new features

Mario Pastorelli wrote:
In the same instance of Eclipse I want to run JDT and my plugin.
Currently I can't because my fork has same plugin's ids  of the standard
JDT.
You definitely need to change the ID. And then the stuff you register and extend in the plugin.xml. Another place to check is the startup code of your bundle.

Dani
 I was thinking to change plugin.xml but probably I need to change
also some other files, like JavaCore.
My first idea was to change only the nature and builder ids (from
javabuilder to atjavabuilder and from javanature to atjavanature) but
not change the builder class
(org.eclipse.jdt.internal.core.builder.JavaBuilder) or the JavaProject
class (org.eclipse.jdt.internal.core.JavaProject). The problem is that
when i start a new project, not a java project, and then I addin
.project then new nature and the new builder I got the error:

The project was not built due to "nonJavaProject does not exist". Fix
the problem, then try refreshing this project and building it since it
may be inconsistent

The new builder, atjavabuilder, seems to work fine, because if i change
the javabuilder with this one in a Java project, the project is built
fine. The problem is the new nature, but I don't know why.

Apart that, I don't know if this is the right way to create a plugin
based on JDT.

Daniel Megert wrote:
What do you mean by "run with" i.e. what do you want to achieve?

Dani