Skip to content

Commit 7e460c5

Browse files
author
Mariana Azevedo
committed
Update README.md and plugin.xml configurations.
1 parent ef82725 commit 7e460c5

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ In the plug-in development, we used the Eclipse IDE (Oxygen), the Java Developme
1717

1818
- Java 8 or higher
1919
- Eclipse IDE Oxygen or higher
20-
- jUnit 5 (5.4.0)
21-
- org.eclipse.ui (3.109.0 or higher)
22-
- org.eclipse.core.resources (3.12.0 or higher)
23-
- org.eclipse.jdt.core (3.8.3 or higher)
24-
- org.eclipse.core.runtime (3.13.0 or higher)
20+
- jUnit 5 (org.junit.jupiter.api, org.junit.jupiter.engine and org.junit.jupiter.params - 5.4.0)
21+
- org.eclipse.ui (3.113.0 or higher)
22+
- org.eclipse.core.resources (3.13.400 or higher)
23+
- org.eclipse.jdt.core (3.18.0 or higher)
24+
- org.eclipse.core.runtime (3.15.300 or higher)
25+
- org.eclipse.jface.text (3.15.200 or higher)
2526

2627
## How to use as an Eclipse Application
2728

2829
o3smeasures can be used as an Eclipse Application, importing the project into your workspace.
2930
After import the o3smeasures project, with the right mouse button you need select the option
30-
<b>Run as</b> -> <b>Eclipse Application</b>. In the runtime eclipse application, select a Java project to be measured and with the right mouse button, go to <b>O3SMeasures</b> -> <b>Measure</b>.
31+
<b>Run as</b> -> <b>Eclipse Application</b>. In the runtime eclipse application, select a Java project to be measured and with the right mouse button, go to <b>O3SMeasures</b> -> <b>Analyze Java project</b>.
3132

3233
## Executing tests
3334

@@ -39,7 +40,7 @@ After import the o3smeasures project, with the right mouse button you need selec
3940
### On dropins directory
4041

4142
o3smeasures plug-in is installed in the Eclipse directory. You need to paste the .jar on the <b>dropins</b> directory (<b>eclipse</b> -> <b>dropins</b>).
42-
After installed the o3smeasures project into your workspace, select a Java project to be measured and with the right mouse button, go to <b>O3SMeasures</b> -> <b>Measure</b>.
43+
After installed the o3smeasures project into your workspace, select a Java project to be measured and with the right mouse button, go to <b>O3SMeasures</b> -> <b>Analyze Java project</b>.
4344

4445
### Install new Software interface
4546

plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
mnemonic="O3SMeasures" id="O3SMeasures.menu1">
99
<command commandId="io.github.mariazevedo88.o3smeasures.popup.actions.Measurement"
1010
id="O3SMeasures.newAction"
11-
label="Measure"
11+
label="Analyze Java project"
1212
style="push"
13-
tooltip="Measure this java project">
13+
tooltip="Measure and analyze the quality of this java project">
1414
</command>
1515
<visibleWhen>
1616
<with variable="activeMenuSelection">

src/io/github/mariazevedo88/o3smeasures/popup/actions/Measurement.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
7777
private void controlMonitorProgress(Runnable update, IProgressMonitor monitor) {
7878

7979
Integer size = MeasuresEnum.values().length;
80-
monitor.beginTask("Measuring internal quality...", size);
80+
monitor.beginTask("Analyze project's internal quality...", size);
8181

8282
for (int i=1; i < size+1; i++){
8383

84-
monitor.subTask("Getting measure values " + (i) + " of "+ size + "...");
84+
monitor.subTask("Getting metrics values " + (i) + " of "+ size + "...");
8585
Display.getDefault().syncExec(update);
86-
monitor.worked(i);
86+
monitor.worked(1);
8787
if(checkIfUserCancelledExecution(monitor)) break;
8888
}
8989

@@ -97,7 +97,8 @@ private void controlMonitorProgress(Runnable update, IProgressMonitor monitor) {
9797
* @since 19/07/2019
9898
*
9999
* @param monitor
100-
* @return true/false
100+
*
101+
* @return true if cancellation is requested, and false otherwise
101102
*/
102103
private boolean checkIfUserCancelledExecution(IProgressMonitor monitor) {
103104

0 commit comments

Comments
 (0)