Revision: 17513
http://sourceforge.net/p/gate/code/17513
Author: markagreenwood
Date: 2014-03-03 15:53:32 +0000 (Mon, 03 Mar 2014)
Log Message:
-----------
suppressed the rest of the ontology deprecation warnings as we don't intend to
fix these at the moment as there is no sensible way of replacing some of these
things given that the original impl was broken compared to the ontology
specificiation
Modified Paths:
--------------
gate/trunk/src/main/gate/gui/ontology/DetailsTableModel.java
gate/trunk/src/main/gate/gui/ontology/InstanceAction.java
gate/trunk/src/main/gate/gui/ontology/OntologyEditor.java
gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableCellRenderer.java
gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableModel.java
gate/trunk/src/main/gate/gui/ontology/RestrictionAction.java
gate/trunk/src/main/gate/gui/ontology/SearchAction.java
gate/trunk/src/main/gate/gui/ontology/SubClassAction.java
gate/trunk/src/main/gate/gui/ontology/Utils.java
Modified: gate/trunk/src/main/gate/gui/ontology/DetailsTableModel.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/DetailsTableModel.java
2014-03-03 15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/DetailsTableModel.java
2014-03-03 15:53:32 UTC (rev 17513)
@@ -235,6 +235,7 @@
return ((DatatypeProperty)property).getDataType()
.getXmlSchemaURIString();
} else if (!(property instanceof AnnotationProperty)) {
+ @SuppressWarnings("deprecation")
Set<OResource> set = property.getRange();
if (set == null || set.isEmpty()) {
return "[ALL CLASSES]";
Modified: gate/trunk/src/main/gate/gui/ontology/InstanceAction.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/InstanceAction.java 2014-03-03
15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/InstanceAction.java 2014-03-03
15:53:32 UTC (rev 17513)
@@ -44,6 +44,7 @@
mainPanel.add(instanceName = new JTextField(30), gbc);
}
+ @SuppressWarnings("deprecation")
public void actionPerformed(ActionEvent actionevent) {
OResource selectedNode = ((OResourceNode)selectedNodes.get(0)
.getUserObject()).getResource();
Modified: gate/trunk/src/main/gate/gui/ontology/OntologyEditor.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/OntologyEditor.java 2014-03-03
15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/OntologyEditor.java 2014-03-03
15:53:32 UTC (rev 17513)
@@ -371,6 +371,7 @@
});
tree.addMouseListener(new MouseAdapter() {
+ @SuppressWarnings("deprecation")
public void mouseClicked(MouseEvent me) {
if(SwingUtilities.isRightMouseButton(me)) {
if(selectedNodes == null || selectedNodes.size() != 1) return;
Modified:
gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableCellRenderer.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableCellRenderer.java
2014-03-03 15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableCellRenderer.java
2014-03-03 15:53:32 UTC (rev 17513)
@@ -188,6 +188,7 @@
s = ((DatatypeProperty)prop).getDataType().getXmlSchemaURIString();
}
else if(prop instanceof ObjectProperty) {
+ @SuppressWarnings("deprecation")
Set<OResource> set = prop.getRange();
if(set == null || set.isEmpty()) {
s = "[ALL CLASSES]";
Modified: gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableModel.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableModel.java
2014-03-03 15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/PropertyDetailsTableModel.java
2014-03-03 15:53:32 UTC (rev 17513)
@@ -207,6 +207,7 @@
Collections.sort(equivalentProps.getValues(), itemComparator);
}
+ @SuppressWarnings("deprecation")
Set set1 = property.getDomain();
if(set1 != null) {
domain.getValues().addAll(set1);
@@ -228,6 +229,7 @@
return;
}
+ @SuppressWarnings("deprecation")
Set set2 = property.getRange();
if(set2 != null) {
range.getValues().addAll(set2);
Modified: gate/trunk/src/main/gate/gui/ontology/RestrictionAction.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/RestrictionAction.java
2014-03-03 15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/RestrictionAction.java
2014-03-03 15:53:32 UTC (rev 17513)
@@ -95,6 +95,7 @@
hasValChoice.setEnabled(false);
}
+ @SuppressWarnings("deprecation")
public void actionPerformed(ActionEvent actionevent) {
ArrayList<RDFProperty> props = new ArrayList<RDFProperty>();
Modified: gate/trunk/src/main/gate/gui/ontology/SearchAction.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/SearchAction.java 2014-03-03
15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/SearchAction.java 2014-03-03
15:53:32 UTC (rev 17513)
@@ -86,6 +86,7 @@
.getSelectedItem();
List<OResource> toAdd = new ArrayList<OResource>();
if(aProp instanceof ObjectProperty) {
+ @SuppressWarnings("deprecation")
OResource res = ontologyEditor.ontology
.getOResourceByName(s);
if(res != null) {
@@ -171,6 +172,7 @@
* the ontology editor and invokes the search dialog.
*/
public void actionPerformed(ActionEvent ae) {
+ @SuppressWarnings("deprecation")
List<OResource> resources = ontologyEditor.ontology.getAllResources();
Collections.sort(resources, new OntologyItemComparator());
Modified: gate/trunk/src/main/gate/gui/ontology/SubClassAction.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/SubClassAction.java 2014-03-03
15:52:18 UTC (rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/SubClassAction.java 2014-03-03
15:53:32 UTC (rev 17513)
@@ -44,6 +44,7 @@
mainPanel.add(className = new JTextField(30), gbc);
}
+ @SuppressWarnings("deprecation")
public void actionPerformed(ActionEvent actionevent) {
OResource selectedNode = ((OResourceNode)selectedNodes.get(0)
.getUserObject()).getResource();
Modified: gate/trunk/src/main/gate/gui/ontology/Utils.java
===================================================================
--- gate/trunk/src/main/gate/gui/ontology/Utils.java 2014-03-03 15:52:18 UTC
(rev 17512)
+++ gate/trunk/src/main/gate/gui/ontology/Utils.java 2014-03-03 15:53:32 UTC
(rev 17513)
@@ -67,6 +67,7 @@
/**
* This method returns the details to be added.
*/
+ @SuppressWarnings("deprecation")
public static List getDetailsToAdd(Object object) {
ArrayList<Object> toAdd = new ArrayList<Object>();
toAdd.add(object);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs