projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add progress updates to project tab titles
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
project
/
Project.java
diff --git
a/src/net/pterodactylus/jsite/project/Project.java
b/src/net/pterodactylus/jsite/project/Project.java
index
2c6609f
..
5a3b848
100644
(file)
--- a/
src/net/pterodactylus/jsite/project/Project.java
+++ b/
src/net/pterodactylus/jsite/project/Project.java
@@
-45,7
+45,10
@@
public class Project extends AbstractBean {
public static final String PROPERTY_PRIVATE_KEY = "privateKey";
/** Name of the “local path” property. */
public static final String PROPERTY_PRIVATE_KEY = "privateKey";
/** Name of the “local path” property. */
- public static final String PROPERTY_LOCAL_PATH = "localPath";
+ public static final String PROPERTY_BASE_PATH = "basePath";
+
+ /** Internal ID. */
+ private String id;
/** The name of the project. */
private String name;
/** The name of the project. */
private String name;
@@
-62,9
+65,24
@@
public class Project extends AbstractBean {
/** The base path of the project. */
private String basePath;
/** The base path of the project. */
private String basePath;
- //
- // EVENT MANAGEMENT
- //
+ /**
+ * Returns the internal ID.
+ *
+ * @return The internal ID
+ */
+ String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the internal ID.
+ *
+ * @param id
+ * The internal ID
+ */
+ void setId(String id) {
+ this.id = id;
+ }
/**
* Returns the name of the project.
/**
* Returns the name of the project.
@@
-84,9
+102,7
@@
public class Project extends AbstractBean {
public void setName(String name) {
String oldName = this.name;
this.name = name;
public void setName(String name) {
String oldName = this.name;
this.name = name;
- if (!equal(oldName, name)) {
- firePropertyChange(PROPERTY_NAME, oldName, name);
- }
+ fireIfPropertyChanged(PROPERTY_NAME, oldName, name);
}
/**
}
/**
@@
-107,9
+123,7
@@
public class Project extends AbstractBean {
public void setDescription(String description) {
String oldDescription = this.description;
this.description = description;
public void setDescription(String description) {
String oldDescription = this.description;
this.description = description;
- if (!equal(oldDescription, description)) {
- firePropertyChange(PROPERTY_DESCRIPTION, oldDescription, description);
- }
+ fireIfPropertyChanged(PROPERTY_DESCRIPTION, oldDescription, description);
}
/**
}
/**
@@
-130,9
+144,7
@@
public class Project extends AbstractBean {
public void setPublicKey(String publicKey) {
String oldPublicKey = this.publicKey;
this.publicKey = publicKey;
public void setPublicKey(String publicKey) {
String oldPublicKey = this.publicKey;
this.publicKey = publicKey;
- if (!equal(oldPublicKey, publicKey)) {
- firePropertyChange(PROPERTY_PUBLIC_KEY, oldPublicKey, publicKey);
- }
+ fireIfPropertyChanged(PROPERTY_PUBLIC_KEY, oldPublicKey, publicKey);
}
/**
}
/**
@@
-153,9
+165,7
@@
public class Project extends AbstractBean {
public void setPrivateKey(String privateKey) {
String oldPrivateKey = this.privateKey;
this.privateKey = privateKey;
public void setPrivateKey(String privateKey) {
String oldPrivateKey = this.privateKey;
this.privateKey = privateKey;
- if (!equal(oldPrivateKey, privateKey)) {
- firePropertyChange(PROPERTY_PRIVATE_KEY, oldPrivateKey, privateKey);
- }
+ fireIfPropertyChanged(PROPERTY_PRIVATE_KEY, oldPrivateKey, privateKey);
}
/**
}
/**
@@
-176,7
+186,7
@@
public class Project extends AbstractBean {
public void setBasePath(String basePath) {
String oldBasePath = this.basePath;
this.basePath = basePath;
public void setBasePath(String basePath) {
String oldBasePath = this.basePath;
this.basePath = basePath;
- fire
PropertyChange(PROPERTY_LOCAL
_PATH, oldBasePath, basePath);
+ fire
IfPropertyChanged(PROPERTY_BASE
_PATH, oldBasePath, basePath);
}
}
}
}