Skip to content

Commit

Permalink
Update README.md and plugin.xml configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana Azevedo committed Oct 28, 2019
1 parent ef82725 commit 7e460c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<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>.
<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>.

## Executing tests

Expand All @@ -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 <b>dropins</b> directory (<b>eclipse</b> -> <b>dropins</b>).
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>.
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>.

### Install new Software interface

Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
mnemonic="O3SMeasures" id="O3SMeasures.menu1">
<command commandId="io.github.mariazevedo88.o3smeasures.popup.actions.Measurement"
id="O3SMeasures.newAction"
label="Measure"
label="Analyze Java project"
style="push"
tooltip="Measure this java project">
tooltip="Measure and analyze the quality of this java project">
</command>
<visibleWhen>
<with variable="activeMenuSelection">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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) {

Expand Down

0 comments on commit 7e460c5

Please sign in to comment.