Revision: 16336
http://gate.svn.sourceforge.net/gate/?rev=16336&view=rev
Author: adamfunk
Date: 2012-11-27 14:01:14 +0000 (Tue, 27 Nov 2012)
Log Message:
-----------
Tweaking some comments.
Modified Paths:
--------------
gate/trunk/plugins/TermRaider/src/gate/termraider/bank/AbstractPairbank.java
gate/trunk/plugins/TermRaider/src/gate/termraider/gui/MultilineCellRenderer.java
gate/trunk/plugins/TermRaider/src/gate/termraider/util/Term.java
Modified:
gate/trunk/plugins/TermRaider/src/gate/termraider/bank/AbstractPairbank.java
===================================================================
---
gate/trunk/plugins/TermRaider/src/gate/termraider/bank/AbstractPairbank.java
2012-11-27 11:39:57 UTC (rev 16335)
+++
gate/trunk/plugins/TermRaider/src/gate/termraider/bank/AbstractPairbank.java
2012-11-27 14:01:14 UTC (rev 16336)
@@ -110,9 +110,6 @@
protected void createActions() {
actionsList = new ArrayList<Action>();
- //TODO: add constructors for these things for AbstractPairBank
- //actionsList.add(new ActionMakeOntology("Generate GATE Ontology...",
this));
- //actionsList.add(new ActionSaveRdf("Save as RDF-XML...", this));
actionsList.add(new ActionSaveCsv("Save as CSV...", this));
}
Modified:
gate/trunk/plugins/TermRaider/src/gate/termraider/gui/MultilineCellRenderer.java
===================================================================
---
gate/trunk/plugins/TermRaider/src/gate/termraider/gui/MultilineCellRenderer.java
2012-11-27 11:39:57 UTC (rev 16335)
+++
gate/trunk/plugins/TermRaider/src/gate/termraider/gui/MultilineCellRenderer.java
2012-11-27 14:01:14 UTC (rev 16336)
@@ -69,11 +69,11 @@
* Calculate the new preferred height for a given row, and sets the height
on the table.
*/
private void adjustRowHeight(JTable table, int row, int column) {
- //The trick to get this to work properly is to set the width of the column
to the
- //textarea. The reason for this is that getPreferredSize(), without a
width tries
- //to place all the text in one line. By setting the size with the with of
the column,
- //getPreferredSize() returnes the proper height which the row should have
in
- //order to make room for the text.
+ // The trick to get this to work properly is to set the width of the
column to the
+ // textarea. The reason for this is that getPreferredSize(), without a
width tries
+ // to place all the text in one line. By setting the size with the with of
the column,
+ // getPreferredSize() returns the proper height which the row should have
in
+ // order to make room for the text.
int cWidth =
table.getTableHeader().getColumnModel().getColumn(column).getWidth();
setSize(new Dimension(cWidth, 1000));
int prefH = getPreferredSize().height;
Modified: gate/trunk/plugins/TermRaider/src/gate/termraider/util/Term.java
===================================================================
--- gate/trunk/plugins/TermRaider/src/gate/termraider/util/Term.java
2012-11-27 11:39:57 UTC (rev 16335)
+++ gate/trunk/plugins/TermRaider/src/gate/termraider/util/Term.java
2012-11-27 14:01:14 UTC (rev 16336)
@@ -88,6 +88,11 @@
return hashCode;
}
+
+ /**
+ * This is used for alphabetical sorting. The Term instance
+ * does not know what its score is.
+ */
public int compareTo(Term other) {
int comp = this.getTermString().compareTo(other.getTermString());
if (comp != 0) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs