+
+ &api-questions;
+
+
+
+
+
+ This module implements Favorites tab and Template Manager.
+
+
+
+
+
+
+
+
+ XXX no answer for arch-quality
+
+
+
+
+
+
+
+
+ XXX no answer for arch-time
+
+
+
+
+
+
+
+
+ XXX no answer for arch-usecases
+
+
+
+
+
+
+
+
+ XXX no answer for arch-what
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ none.
+
+
+
+
+
+
+
+
+ Yes.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ Yes.
+
+
+
+
+
+
+
+
+ XXX no answer for dep-jre
+
+
+
+
+
+
+
+
+ JRE is enough.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Freemarker org.netbeans.libs.freemarker.
+
+
+
+
+
+
+
+
+ It runs on any platform.
+
+
+
+
+
+
+
+
+ XXX no answer for deploy-dependencies
+
+
+
+
+
+
+
+
+ XXX no answer for deploy-jar
+
+
+
+
+
+
+
+
+ XXX no answer for deploy-nbm
+
+
+
+
+
+
+
+
+ XXX no answer for deploy-packages
+
+
+
+
+
+
+
+
+ XXX no answer for deploy-shared
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ Templates Manager reads some file attributes of template files.
+ They can also be stored in the module layer. Please see filesystems for more
+ information about this.
+
+
+
+ If set to Boolean.TRUE the template file is allowed to be edited.
+ If set to Boolean.FALSE the template file is not allowed to be edited.
+ If not set, the template file is allowed to be edited iff the associated
+ node provides EditCookie
or OpenCookie
.
+
+
+
+ Value of this attribute can be an instance of Editable
,
+ that is used to edit the teplate file.
+
+
+
+
+
+
+
+
+
+ XXX no answer for exec-introspection
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ XXX no answer for exec-threading
+
+
+
+
+
+
+
+
+ None.
+
+
+
+
+
+
+
+
+ None.
+
+
+
+
+
+
+
+
+ None.
+
+
+
+
+
+
+
+
+ To find FileObject
, DataObject
, EditCookie
or OpenCookie
from Node.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ Template Manager, Favorites view. Only simple UI controls.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ XXX no answer for perf-mem
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ XXX no answer for perf-scale
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ Yes. Module layer with Favorites view and Templates action.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ Reads Template folder to allow to manage templates.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
+
+
+
+
+ No.
+
+
+
+
diff -r b8470e9b3bac favorites/nbproject/project.properties
--- a/favorites/nbproject/project.properties Wed Nov 03 16:50:14 2010 +0100
+++ b/favorites/nbproject/project.properties Wed Nov 03 18:03:50 2010 +0100
@@ -43,3 +43,4 @@
javac.source=1.6
test.config.stable.includes=\
gui/core/favorites/BasicsTest.class
+javadoc.arch=${basedir}/arch.xml
diff -r b8470e9b3bac favorites/src/org/netbeans/modules/favorites/templates/TemplatesAction.java
--- a/favorites/src/org/netbeans/modules/favorites/templates/TemplatesAction.java Wed Nov 03 16:50:14 2010 +0100
+++ b/favorites/src/org/netbeans/modules/favorites/templates/TemplatesAction.java Wed Nov 03 18:03:50 2010 +0100
@@ -56,6 +56,7 @@
import java.util.Iterator;
import java.util.Set;
import javax.swing.JButton;
+import org.netbeans.api.actions.Editable;
import org.openide.awt.Mnemonics;
import org.openide.cookies.EditCookie;
import org.openide.cookies.OpenCookie;
@@ -77,6 +78,10 @@
*/
public class TemplatesAction extends CallableSystemAction {
+ private static final String CAN_EDIT_TEMPLATE = "templateCanEdit"; // NOI18N
+
+ private static final String EDITABLE_TEMPLATE = "templateEditable"; // NOI18N
+
/** Weak reference to the dialog showing singleton Template Manager. */
private Reference