This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated JaCoCo library to 0.7.2 + preparation for Java Web/EE/EJB/EAR…
… projects + code cleanup
- Loading branch information
1 parent
f08bf30
commit 2947b6c
Showing
16 changed files
with
101 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
build.xml.data.CRC32=eea180bb | ||
build.xml.data.CRC32=4c0c1a66 | ||
build.xml.script.CRC32=b0c00133 | ||
build.xml.stylesheet.CRC32=a56c6a5b@2.56.1 | ||
build.xml.stylesheet.CRC32=a56c6a5b@2.67.1 | ||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. | ||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. | ||
nbproject/build-impl.xml.data.CRC32=eea180bb | ||
nbproject/build-impl.xml.data.CRC32=4c0c1a66 | ||
nbproject/build-impl.xml.script.CRC32=10dbad13 | ||
nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.56.1 | ||
nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...erage-plugin/src/fr/tikione/jacocoverage/plugin/config/PrjcfgAntJavaeewebCatProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package fr.tikione.jacocoverage.plugin.config; | ||
|
||
import java.io.FileNotFoundException; | ||
import java.io.IOException; | ||
import javax.swing.ImageIcon; | ||
import javax.swing.JComponent; | ||
import javax.swing.JPanel; | ||
import org.netbeans.spi.project.ui.support.ProjectCustomizer; | ||
import org.netbeans.spi.project.ui.support.ProjectCustomizer.Category; | ||
import org.openide.util.Exceptions; | ||
import org.openide.util.Lookup; | ||
|
||
/** | ||
* JaCoCoverage configuration category at project level. | ||
* <br/>See <a href="http://wiki.netbeans.org/DevFaqActionAddProjectCustomizer">DevFaqActionAddProjectCustomizer</a> for integration. | ||
* | ||
* @author Jonathan Lermitage | ||
*/ | ||
@ProjectCustomizer.CompositeCategoryProvider.Registration( | ||
projectType = "org-netbeans-modules-web-project-webproject", | ||
position = 1405) | ||
public class PrjcfgAntJavaeewebCatProvider implements ProjectCustomizer.CompositeCategoryProvider { | ||
|
||
private Category cat; | ||
|
||
public @Override | ||
Category createCategory(Lookup context) { | ||
ImageIcon pluginIcon = new ImageIcon(getClass().getResource( | ||
"/fr/tikione/jacocoverage/plugin/resources/icon/famfamfam_lightning.png")); | ||
cat = ProjectCustomizer.Category.create( | ||
"JaCoCoverage", | ||
"JaCoCoverage", | ||
pluginIcon.getImage()); | ||
return cat; | ||
} | ||
|
||
public @Override | ||
JComponent createComponent(Category category, Lookup context) { | ||
JPanel panel; | ||
try { | ||
panel = new PrjcfgAntJavasePanel(context); | ||
cat.setStoreListener(new PrjcfgAntJavaseListener((IStorable) panel)); | ||
} catch (FileNotFoundException ex) { | ||
Exceptions.printStackTrace(ex); | ||
panel = new JPanel(); | ||
} catch (IOException ex) { | ||
Exceptions.printStackTrace(ex); | ||
panel = new JPanel(); | ||
} | ||
return panel; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters