Revision 13444 trunk/extensions/extExpressionField/src/com/iver/cit/gvsig/project/documents/table/operators/Plus.java
Plus.java | ||
---|---|---|
3 | 3 |
import org.apache.bsf.BSFException; |
4 | 4 |
import org.apache.bsf.BSFManager; |
5 | 5 |
|
6 |
import com.iver.andami.PluginServices; |
|
6 | 7 |
import com.iver.cit.gvsig.project.documents.table.AbstractOperator; |
7 | 8 |
import com.iver.cit.gvsig.project.documents.table.IOperator; |
8 | 9 |
/** |
... | ... | |
19 | 20 |
public void eval(BSFManager interpreter) throws BSFException { |
20 | 21 |
} |
21 | 22 |
public boolean isEnable() { |
22 |
return (getType()==IOperator.NUMBER || getType()==IOperator.STRING || getType()==IOperator.DATE);
|
|
23 |
return (getType()==IOperator.NUMBER || getType()==IOperator.STRING); |
|
23 | 24 |
} |
25 |
public String getTooltip(){ |
|
26 |
return PluginServices.getText(this,"operator")+": "+addText("")+"\n"+getDescription(); |
|
27 |
} |
|
28 |
public String getDescription() { |
|
29 |
return PluginServices.getText(this, "returns") + ": " + |
|
30 |
PluginServices.getText(this, "numeric_value") + "\n" + |
|
31 |
PluginServices.getText(this, "description") + ": " + |
|
32 |
"Returns the result of sum."; |
|
33 |
} |
|
24 | 34 |
} |
Also available in: Unified diff