Permalink
Browse files

Only show first line for input name in report view

  • Loading branch information...
twschiller committed Oct 30, 2013
1 parent ad1dd5d commit c449ffc075b66e8081da53391855fb3ada26d649
Showing with 14 additions and 6 deletions.
  1. +1 −1 edu.washington.cs.cupid.core.feature/feature.xml
  2. +1 −1 edu.washington.cs.cupid/META-INF/MANIFEST.MF
  3. +9 −1 edu.washington.cs.cupid/src/edu/washington/cs/cupid/views/ReportView.java
  4. BIN snapshots/nightly/artifacts.jar
  5. BIN snapshots/nightly/content.jar
  6. BIN snapshots/nightly/features/edu.washington.cs.cupid.charts_1.3.1.v20131014-1030.jar
  7. BIN snapshots/nightly/features/edu.washington.cs.cupid.core_1.3.3.v20131030-1130.jar
  8. BIN snapshots/nightly/features/edu.washington.cs.cupid.core_1.3.3.v20131030-1350.jar
  9. BIN snapshots/nightly/features/edu.washington.cs.cupid.editor_0.7.0.v20130921-2000.jar
  10. BIN snapshots/nightly/features/edu.washington.cs.cupid.egit_1.3.2.v20131030-1130.jar
  11. BIN snapshots/nightly/features/edu.washington.cs.cupid.hg_1.3.2.v20130921-2000.jar
  12. BIN snapshots/nightly/features/edu.washington.cs.cupid.license_1.0.0.jar
  13. BIN snapshots/nightly/features/edu.washington.cs.cupid.mapview_1.3.0.v20130818-2130.jar
  14. BIN snapshots/nightly/features/edu.washington.cs.cupid.markers_1.3.0.v20130725-1500.jar
  15. BIN snapshots/nightly/features/edu.washington.cs.cupid.mylyn_1.3.2.v20131030-1130.jar
  16. BIN snapshots/nightly/features/edu.washington.cs.cupid.plugins_1.3.4.v20131030-1130.jar
  17. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.charts_1.3.1.v20131014-1030.jar
  18. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.conditional_1.3.0.v20131014-1100.jar
  19. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.editor_0.7.0.v20130921-2000.jar
  20. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.egit_1.3.2.v20131030-1130.jar
  21. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.hg_1.3.2.v20130921-2000.jar
  22. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.jdt_1.3.0.v20130801-2120.jar
  23. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.mapview_1.3.0.v20130818-2130.jar
  24. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.markers_1.3.0.v20130725-1500.jar
  25. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.mylyn_1.3.2.v20131030-1130.jar
  26. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.resources_1.3.0.v20130725-1500.jar
  27. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.scripting.java_1.3.1.v20130809-2300.jar
  28. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.usage_1.3.1.v20130813-1600.jar
  29. BIN snapshots/nightly/plugins/edu.washington.cs.cupid.wizards_1.3.3.v20131030-1130.jar
  30. BIN ....washington.cs.cupid_1.3.4.v20131030-1130.jar → edu.washington.cs.cupid_1.3.4.v20131030-1350.jar}
  31. +3 −3 snapshots/nightly/site.xml
@@ -2,7 +2,7 @@
<feature
id="edu.washington.cs.cupid.core"
label="Cupid for Eclipse"
version="1.3.3.v20131030-1130"
version="1.3.3.v20131030-1350"
provider-name="University of Washington PLSE"
plugin="edu.washington.cs.cupid"
license-feature="edu.washington.cs.cupid.license"
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Cupid
Bundle-SymbolicName: edu.washington.cs.cupid;singleton:=true
Bundle-Version: 1.3.4.v20131030-1130
Bundle-Version: 1.3.4.v20131030-1350
Bundle-Activator: edu.washington.cs.cupid.internal.CupidActivator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
@@ -178,14 +178,22 @@ public String getText(Object element) {
root.layout(true);
}
private String firstLine(String original){
if (original == null || original.equals("")){
return original;
}else{
return original.split(System.getProperty("line.separator"))[0];
}
}
public void setData(Object [] data){
if (capability == null) return;
ICapability.IParameter<?> param = CapabilityUtil.unaryParameter(capability);
List<ReportRow> rows = Lists.newArrayList();
for (Object x : data){
if (TypeManager.isCompatible(param, x)){
rows.add(new ReportRow(x.toString(), x));
rows.add(new ReportRow(firstLine(x.toString()), x));
}
}
Binary file not shown.
Binary file not shown.
@@ -18,9 +18,6 @@
<feature url="features/edu.washington.cs.cupid.charts_1.3.1.v20131014-1030.jar" id="edu.washington.cs.cupid.charts" version="1.3.1.v20131014-1030">
<category name="edu.washington.cs.cupid.visualize"/>
</feature>
<feature url="features/edu.washington.cs.cupid.core_1.3.3.v20131030-1130.jar" id="edu.washington.cs.cupid.core" version="1.3.3.v20131030-1130">
<category name="edu.washington.cs.cupid"/>
</feature>
<feature url="features/edu.washington.cs.cupid.plugins_1.3.4.v20131030-1130.jar" id="edu.washington.cs.cupid.plugins" version="1.3.4.v20131030-1130">
<category name="edu.washington.cs.cupid"/>
</feature>
@@ -30,6 +27,9 @@
<feature url="features/edu.washington.cs.cupid.mylyn_1.3.2.v20131030-1130.jar" id="edu.washington.cs.cupid.mylyn" version="1.3.2.v20131030-1130">
<category name="edu.washington.cs.cupid.discover"/>
</feature>
<feature url="features/edu.washington.cs.cupid.core_1.3.3.v20131030-1350.jar" id="edu.washington.cs.cupid.core" version="1.3.3.v20131030-1350">
<category name="edu.washington.cs.cupid"/>
</feature>
<category-def name="edu.washington.cs.cupid" label="Cupid"/>
<category-def name="edu.washington.cs.cupid.discover" label="Integration (Information Discovery)"/>
<category-def name="edu.washington.cs.cupid.visualize" label="Visualization"/>

0 comments on commit c449ffc

Please sign in to comment.