Revision 2b9d7d53 gss/src/gr/ebs/gss/client/FileMenu.java
b/gss/src/gr/ebs/gss/client/FileMenu.java | ||
---|---|---|
21 | 21 |
import gr.ebs.gss.client.commands.EmptyTrashCommand; |
22 | 22 |
import gr.ebs.gss.client.commands.NewFolderCommand; |
23 | 23 |
import gr.ebs.gss.client.commands.PropertiesCommand; |
24 |
import gr.ebs.gss.client.commands.UpdateFileCommand; |
|
24 | 25 |
import gr.ebs.gss.client.commands.UploadFileCommand; |
25 | 26 |
import gr.ebs.gss.client.domain.FileHeaderDTO; |
26 | 27 |
import gr.ebs.gss.client.domain.UserDTO; |
... | ... | |
72 | 73 |
AbstractImagePrototype fileNew(); |
73 | 74 |
|
74 | 75 |
/** |
76 |
* Will bundle the file 'update.png' residing in the package |
|
77 |
* 'gr.ebs.gss.resources'. |
|
78 |
* |
|
79 |
* @return the image prototype |
|
80 |
*/ |
|
81 |
@Resource("gr/ebs/gss/resources/update.png") |
|
82 |
AbstractImagePrototype fileUpdate(); |
|
83 |
|
|
84 |
/** |
|
75 | 85 |
* Will bundle the file 'view_text.png' residing in the package |
76 | 86 |
* 'gr.ebs.gss.resources'. |
77 | 87 |
* |
... | ... | |
175 | 185 |
boolean propertiesNotVisible = selectedItem != null && (folders.isTrash(selectedItem) || folders.isMyShares(selectedItem) || folders.isOthersShared(selectedItem) || selectedItem.getUserObject() instanceof UserDTO); |
176 | 186 |
contextMenu.addItem("<span>" + images.folderNew().getHTML() + " New Folder</span>", true, new NewFolderCommand(this, images)); |
177 | 187 |
contextMenu.addItem("<span>" + images.fileNew().getHTML() + " New File</span>", true, new UploadFileCommand(this)); |
188 |
contextMenu .addItem("<span>" + images.fileUpdate().getHTML() + " Update</span>", true, new UpdateFileCommand(this)) |
|
189 |
.setVisible(!propertiesNotVisible); |
|
178 | 190 |
contextMenu .addItem("<span>" + images.viewText().getHTML() + " Properties</span>", true, new PropertiesCommand(this, images)) |
179 | 191 |
.setVisible(!propertiesNotVisible); |
180 | 192 |
contextMenu.addItem("<span>" + images.emptyTrash().getHTML() + " Empty Trash</span>", true, new EmptyTrashCommand(this)); |
Also available in: Unified diff