◆ RepositoriesTree()
org.turro.zkoss.text.RepositoriesTree.RepositoriesTree |
( |
| ) |
|
Definition at line 47 of file RepositoriesTree.java.
48 addFolder(I_.get(
"Root"),
new File(ElephantContext.getRealPath(
"/")),
REPOSITORY_DIR);
49 addFolder(I_.get(
"Publication"),
new File(ElephantContext.getRealPath(REPOSITORY_PUBLICATION)),
"");
50 addFolder(I_.get(
"Publishable"),
new File(ElephantContext.getRealPath(REPOSITORY_PUBLISHABLE)),
"");
static final String REPOSITORY_DIR
◆ createFolder()
void org.turro.zkoss.text.RepositoriesTree.createFolder |
( |
| ) |
|
Definition at line 57 of file RepositoriesTree.java.
58 InputDialog.getInput(getPage(), I_.get(
"Folder"),
"Name",
"",
59 null, 0,
new Command() {
61 public Object execute(Context context) {
62 String name = (String) context.get(
"value");
63 if(!Strings.isBlank(name)) {
65 if(folder !=
null && folder.isDirectory()) {
66 folder =
new File(folder, name);
68 addFolderOnSelected(folder.getName(), folder,
"");
File getSelectedRepository()
◆ deleteFolder()
void org.turro.zkoss.text.RepositoriesTree.deleteFolder |
( |
| ) |
|
Definition at line 112 of file RepositoriesTree.java.
115 Messages.confirmDeletion().add(folder.getName()).show(() -> {
116 FileUtil.deleteFile(folder);
◆ getEntityPath()
static String org.turro.zkoss.text.RepositoriesTree.getEntityPath |
( |
File |
file | ) |
|
|
static |
Definition at line 125 of file RepositoriesTree.java.
126 String path = file.getAbsolutePath();
127 return path.substring(path.indexOf(REPOSITORY_PUBLISHABLE) + REPOSITORY_PUBLISHABLE.length());
◆ getSelectedRepository()
File org.turro.zkoss.text.RepositoriesTree.getSelectedRepository |
( |
| ) |
|
Definition at line 53 of file RepositoriesTree.java.
54 return ((RepositoryItem) getSelectedItem()).getRepositoryFile();
◆ isPublishable()
static boolean org.turro.zkoss.text.RepositoriesTree.isPublishable |
( |
File |
file | ) |
|
|
static |
Definition at line 121 of file RepositoriesTree.java.
122 return file.getAbsolutePath().startsWith(ElephantContext.getRealPath(REPOSITORY_PUBLISHABLE));
◆ selectFolder()
void org.turro.zkoss.text.RepositoriesTree.selectFolder |
( |
String |
folder | ) |
|
Definition at line 97 of file RepositoriesTree.java.
98 for(Treeitem ti : getItems()) {
99 RepositoryItem ri = (RepositoryItem) ti;
100 if(ri.isFolder(folder)) {
104 ti = ti.getParentItem();
◆ REPOSITORY_DIR
final String org.turro.zkoss.text.RepositoriesTree.REPOSITORY_DIR = "/_internal/repository" |
|
static |
The documentation for this class was generated from the following file: