Compilers (and every other kind of translator) in Eclipse are implemented with builders. These are notified when a file or a set of files are changed and can take appropriate action. In the case of the Java builder, it translates the .java
source files into the .class
files. Perform the following steps:
Open the
minimark.ui
project's.project
file. This is visible in the Navigator view, but not in the Package Explorer or other views. Builders are associated to a project within the.project
file. The builder ID is referenced viabuildCommand
, for example have a look at the following code:<projectDescription> <name>com.packtpub.e4.minimark.ui</name> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> </buildCommand> ...
To translate a
.minimark
file into HTML automatically, a builder is needed. A builder is a class that extendsIncrementalProjectBuilder
and implements...