Skip to content

Commit

Permalink
updated to 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjoconnor committed Oct 19, 2023
1 parent 80661db commit 2c2e44a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 10 deletions.
66 changes: 62 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>edu.stanford.protege</groupId>
<artifactId>cellfie</artifactId>
<version>2.2.2</version>
<version>2.2.3</version>
<packaging>bundle</packaging>

<name>Cellfie Protege 5.5+ Plugin</name>
Expand Down Expand Up @@ -43,8 +43,52 @@
<dependency>
<groupId>edu.stanford.protege</groupId>
<artifactId>mapping-master</artifactId>
<version>2.1.1</version>
<version>2.2.3</version>
</dependency>

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.4</version>
</dependency>

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.4</version>
</dependency>

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-lite</artifactId>
<version>5.2.4</version>
</dependency>


<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.20.0</version>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.24.0</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>

</dependencies>

<build>
Expand Down Expand Up @@ -72,10 +116,14 @@
<Embed-Transitive>true</Embed-Transitive>
<Embed-Dependency>
commons-codec,
commons-io,
commons-compress,
commons-collections4,
log4j-api,
log4j-core,
poi,
poi-ooxml,
poi-ooxml-schemas,
ooxml-schemas,
poi-ooxml-lite,
xmlbeans,
gson,
mapping-master
Expand Down Expand Up @@ -105,6 +153,16 @@
org.openxmlformats.*;resolution:=optional,
schemasMicrosoftCom*;resolution:=optional,
com.sun.*;resolution:=optional,
com.github.javaparser.*;resolution:=optional,
com.graphbuilder.curve.*;resolution:=optional,
com.graphbuilder.geom.*;resolution:=optional,
com.microsoft.schemas.compatibility.*;resolution:=optional,
com.microsoft.schemas.office.*;resolution:=optional,
com.microsoft.schemas.vml.*;resolution:=optional,
com.zaxxer.sparsebits.*;resolution:=optional,
de.rototor.pdfbox.graphics2d.*;resolution:=optional,
net.sf.saxon.*;resolution:=optional,
org.w3c.dom.svg.*;resolution:=optional,
javax.*;resolution:=optional,
*
</Import-Package>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mm/cellfie/ui/view/Sheet.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.mm.cellfie.ui.view;

import org.apache.poi.hssf.util.CellReference;
import org.apache.poi.ss.util.CellReference;

public class Sheet
{
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/mm/cellfie/ui/view/SheetPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ public Object getValueAt(int row, int column) {
try {
Cell cell = sheet.getRow(row).getCell(column);
switch (cell.getCellType()) {
case Cell.CELL_TYPE_BLANK :
case BLANK :
return "";
case Cell.CELL_TYPE_STRING :
case STRING :
return cell.getStringCellValue();
case Cell.CELL_TYPE_NUMERIC :
case NUMERIC :
// Check if the numeric is an integer or double or a date
if (isDateFormatted(cell)) {
return dataFormatter.formatCellValue(cell);
Expand All @@ -165,9 +165,9 @@ public Object getValueAt(int row, int column) {
} else {
return Double.toString(cell.getNumericCellValue());
}
case Cell.CELL_TYPE_BOOLEAN :
case BOOLEAN :
return cell.getBooleanCellValue();
case Cell.CELL_TYPE_FORMULA :
case FORMULA :
return cell.getNumericCellValue();
default :
return "";
Expand Down

0 comments on commit 2c2e44a

Please sign in to comment.