Browse Source

Fix view and edit of script objects

Former-commit-id: 8632c74c970de34c8457392150547bf455555f6e
Karl Grießer 7 năm trước cách đây
mục cha
commit
f2b241dc74

+ 3 - 3
plugins/org.jkiss.dbeaver.ext.exasol/src/org/jkiss/dbeaver/ext/exasol/model/ExasolSchema.java

@@ -227,14 +227,14 @@ public class ExasolSchema extends ExasolGlobalObject implements DBSSchema, DBPNa
     public Collection<ExasolScript> getProcedures(DBRProgressMonitor monitor) throws DBException {
 
         return scriptCache.getAllObjects(monitor, this).stream()
-    			.filter(o -> o.getType() == "SCRIPTING")
+    			.filter(o -> o.getType().equals("SCRIPTING"))
     			.collect(Collectors.toCollection(ArrayList::new));
     }
     
     public Collection<ExasolScript> getUdfs(DBRProgressMonitor monitor) throws DBException {
     	
     	return scriptCache.getAllObjects(monitor, this).stream()
-    			.filter(o -> o.getType() == "UDF")
+    			.filter(o -> o.getType().equals("UDF"))
     			.collect(Collectors.toCollection(ArrayList::new));
     }
 
@@ -247,7 +247,7 @@ public class ExasolSchema extends ExasolGlobalObject implements DBSSchema, DBPNa
     public Collection<ExasolScript> getAdapter(DBRProgressMonitor monitor) throws DBException {
 
         return scriptCache.getAllObjects(monitor, this).stream()
-    			.filter(o -> o.getType() == "ADAPTER")
+    			.filter(o -> o.getType().equals("ADAPTER"))
     			.collect(Collectors.toCollection(ArrayList::new));
 
     }