Implement missing interface method
[gpl/argeo-suite.git] / org.argeo.suite.core / src / org / argeo / suite / core / DefaultSuiteAppService.java
index 24cf37dff2e4087c3d00fddd6ac1206a57c08e24..b87527af828b30736790d6a85a5f0bc30934dde9 100644 (file)
@@ -8,6 +8,7 @@ import javax.jcr.Session;
 
 import org.argeo.connect.AppService;
 import org.argeo.connect.SystemAppService;
+import org.argeo.eclipse.ui.EclipseUiUtils;
 import org.argeo.suite.SuiteConstants;
 import org.argeo.suite.SuiteException;
 
@@ -51,6 +52,16 @@ public class DefaultSuiteAppService implements SystemAppService {
                return null;
        }
 
+       @Override
+       public String getMainNodeType(Node node) {
+               for (AppService appService : knownAppServices) {
+                       String foundType = appService.getMainNodeType(node);
+                       if (EclipseUiUtils.notEmpty(foundType))
+                               return foundType;
+               }
+               return null;
+       }
+
        @Override
        public String getDefaultRelPath(Session session, String nodetype, String id) {
                for (AppService appService : knownAppServices) {