View Javadoc
1   package org.argeo.connect.ui;
2   
3   import javax.jcr.Node;
4   
5   import org.eclipse.jface.wizard.Wizard;
6   import org.eclipse.swt.graphics.Image;
7   
8   /** Provide interface to manage a connect apps in a RCP/RAP Workbench */
9   public interface AppUiService {
10  
11  	/** Centralize icon management for a given app */
12  	default public Image getIconForType(Node entity) {
13  		return null;
14  	}
15  
16  	/**
17  	 * Creates and returns the correct wizard to retrieve relevant minimum
18  	 * information depending on the type of the given node.
19  	 */
20  	default public Wizard getCreationWizard(Node node) {
21  		return null;
22  	}
23  
24  	/* CONFIGURE QUERIES */
25  	default public boolean lazyLoadLists() {
26  		return false;
27  	}
28  
29  	default public boolean queryWhenTyping() {
30  		return true;
31  	}
32  }