Permalink
Browse files

Added a few comments.

  • Loading branch information...
1 parent 79c35f1 commit 962cf38b206e45355225af77b78e1e7fcd6b6121 @kelemen committed Nov 17, 2012
@@ -3,6 +3,7 @@
import javax.swing.event.ChangeListener;
public interface MutableProperty<ValueType> {
+ // Setting and getting the value of a property is only allowed from the EDT.
public void setValueFromSource(PropertySource<? extends ValueType> source);
public void setValue(ValueType value);
public ValueType getValue();
@@ -6,6 +6,9 @@
import org.netbeans.api.java.platform.JavaPlatform;
public interface ProjectProperties {
+ // Methods of this interface must be safe to access from multiple threads
+ // concurrently.
+
// When adding new properties, don't forget to update:
// - PropertiesSnapshot: Add a field for the new property.
// - XmlPropertiesPersister.load: Do the same as with other properties.
@@ -22,6 +25,7 @@
// In case you add more built-in tasks, don't forget to update
// AbstractProjectProperties.getCustomizableCommands().
+ // Also define the defaults in BuiltInTasks.
public MutableProperty<PredefinedTask> tryGetBuiltInTask(String command);
public Collection<MutableProperty<?>> getAllProperties();

0 comments on commit 962cf38

Please sign in to comment.