Skip to content

Commit

Permalink
New Feature: Added output volume column to the industry jobs tool (Is…
Browse files Browse the repository at this point in the history
…sue #418)
  • Loading branch information
GoldenGnu committed Sep 21, 2023
1 parent 8042132 commit c24ed4e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ public String getOutputType() {
return output.getTypeName();
}

public double getOutputVolume() {
if (isCopying()) {
return output.getVolumePackaged() * getRuns(); // Volume of the output blueprints (bp runs should not be counted)
} else {
return output.getVolumePackaged() * outputCount;
}
}

public String getInstaller() {
return installer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,20 @@ public Object getColumnValue(final MyIndustryJob from) {
return from.getOutputValue();
}
},
OUTPUT_VOLUME(Double.class, GlazedLists.comparableComparator()) {
@Override
public String getColumnName() {
return TabsJobs.get().columnOutputVolume();
}
@Override
public String getColumnToolTip() {
return TabsJobs.get().columnOutputVolumeToolTip();
}
@Override
public Object getColumnValue(final MyIndustryJob from) {
return from.getOutputVolume();
}
},
OUTPUT_TYPE(String.class, GlazedLists.comparableComparator()) {
@Override
public String getColumnName() {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/nikr/eve/jeveasset/i18n/TabsJobs.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public TabsJobs(final Locale locale) {
public abstract String columnRuns();
public abstract String columnOutputCount();
public abstract String columnOutputValue();
public abstract String columnOutputVolume();
public abstract String columnOutputVolumeToolTip();
public abstract String columnOutputType();
public abstract String columnBPO();
public abstract String columnMaterialEfficiency();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ columnPauseDate=Paused Date
columnRuns=Runs
columnOutputCount=Output Count
columnOutputValue=Output Value
columnOutputVolume=Output Volume
columnOutputVolumeToolTip=Total packaged volume of output items
columnOutputType=Output Type
columnBPO=BPO
columnMaterialEfficiency=ME
Expand Down

0 comments on commit c24ed4e

Please sign in to comment.