From 7e460c5b71e0b637d0ac1880011a6b52fd9dd0b0 Mon Sep 17 00:00:00 2001 From: Mariana Azevedo Date: Sun, 27 Oct 2019 23:42:31 -0300 Subject: [PATCH] Update README.md and plugin.xml configurations. --- README.md | 15 ++++++++------- plugin.xml | 4 ++-- .../o3smeasures/popup/actions/Measurement.java | 9 +++++---- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 0e0d9d8..ea9acf4 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,18 @@ In the plug-in development, we used the Eclipse IDE (Oxygen), the Java Developme - Java 8 or higher - Eclipse IDE Oxygen or higher -- jUnit 5 (5.4.0) -- org.eclipse.ui (3.109.0 or higher) -- org.eclipse.core.resources (3.12.0 or higher) -- org.eclipse.jdt.core (3.8.3 or higher) -- org.eclipse.core.runtime (3.13.0 or higher) +- jUnit 5 (org.junit.jupiter.api, org.junit.jupiter.engine and org.junit.jupiter.params - 5.4.0) +- org.eclipse.ui (3.113.0 or higher) +- org.eclipse.core.resources (3.13.400 or higher) +- org.eclipse.jdt.core (3.18.0 or higher) +- org.eclipse.core.runtime (3.15.300 or higher) +- org.eclipse.jface.text (3.15.200 or higher) ## How to use as an Eclipse Application o3smeasures can be used as an Eclipse Application, importing the project into your workspace. After import the o3smeasures project, with the right mouse button you need select the option -Run as -> Eclipse Application. In the runtime eclipse application, select a Java project to be measured and with the right mouse button, go to O3SMeasures -> Measure. +Run as -> Eclipse Application. In the runtime eclipse application, select a Java project to be measured and with the right mouse button, go to O3SMeasures -> Analyze Java project. ## Executing tests @@ -39,7 +40,7 @@ After import the o3smeasures project, with the right mouse button you need selec ### On dropins directory o3smeasures plug-in is installed in the Eclipse directory. You need to paste the .jar on the dropins directory (eclipse -> dropins). -After installed the o3smeasures project into your workspace, select a Java project to be measured and with the right mouse button, go to O3SMeasures -> Measure. +After installed the o3smeasures project into your workspace, select a Java project to be measured and with the right mouse button, go to O3SMeasures -> Analyze Java project. ### Install new Software interface diff --git a/plugin.xml b/plugin.xml index 0861340..716fe4d 100644 --- a/plugin.xml +++ b/plugin.xml @@ -8,9 +8,9 @@ mnemonic="O3SMeasures" id="O3SMeasures.menu1"> + tooltip="Measure and analyze the quality of this java project"> diff --git a/src/io/github/mariazevedo88/o3smeasures/popup/actions/Measurement.java b/src/io/github/mariazevedo88/o3smeasures/popup/actions/Measurement.java index 49eace3..3a96894 100644 --- a/src/io/github/mariazevedo88/o3smeasures/popup/actions/Measurement.java +++ b/src/io/github/mariazevedo88/o3smeasures/popup/actions/Measurement.java @@ -77,13 +77,13 @@ public Object execute(ExecutionEvent event) throws ExecutionException { private void controlMonitorProgress(Runnable update, IProgressMonitor monitor) { Integer size = MeasuresEnum.values().length; - monitor.beginTask("Measuring internal quality...", size); + monitor.beginTask("Analyze project's internal quality...", size); for (int i=1; i < size+1; i++){ - monitor.subTask("Getting measure values " + (i) + " of "+ size + "..."); + monitor.subTask("Getting metrics values " + (i) + " of "+ size + "..."); Display.getDefault().syncExec(update); - monitor.worked(i); + monitor.worked(1); if(checkIfUserCancelledExecution(monitor)) break; } @@ -97,7 +97,8 @@ private void controlMonitorProgress(Runnable update, IProgressMonitor monitor) { * @since 19/07/2019 * * @param monitor - * @return true/false + * + * @return true if cancellation is requested, and false otherwise */ private boolean checkIfUserCancelledExecution(IProgressMonitor monitor) {