Ignore:
Timestamp:
Feb 26, 2011, 5:26:27 PM (13 years ago)
Author:
mlg
Message:

All services have been removed from this project to be integrated in a new project : jiwigo-ws-api (not yet on the svn).
The current project now uses jiwigo-ws-api as a maven dependency (explanations can be found here : http://www.jiwigo.com/api.html )

Location:
extensions/jiwigo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk

    • Property svn:ignore set to
      bin
      target
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/ThumbnailPanel.java

    r8829 r9385  
    2626import javax.swing.ListSelectionModel;
    2727
     28import fr.mael.jiwigo.Main;
    2829import fr.mael.jiwigo.om.Image;
    2930import fr.mael.jiwigo.om.Tag;
     
    6061   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    6162   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    62    
     63
    6364 * @author mael
    6465 * Panel that contains the thumbnail of an image
     
    172173            try {
    173174                //getting the list of tags
    174                 List<Tag> tagsDispo = TagService.getInstance().lister();
     175                List<Tag> tagsDispo = TagService.getInstance(Main.sessionManager).lister();
    175176                //list to array (cause fucking JList does not support Lists)
    176177                Tag[] tableauTagDispo = (Tag[]) tagsDispo.toArray(new Tag[tagsDispo.size()]);
    177178                //getting the image's tags to preselect them
    178                 List<Tag> tagsDeLimage = TagService.getInstance().tagsForImage(image);
     179                List<Tag> tagsDeLimage = TagService.getInstance(Main.sessionManager).tagsForImage(image);
    179180                listTags = new JList(tableauTagDispo);
    180181                //multiple selection is allowed
     
    220221            tagIds.deleteCharAt(tagIds.lastIndexOf(","));
    221222            try {
    222                 if (!ImageService.getInstance().addTags(image, tagIds.toString())) {
     223                if (!ImageService.getInstance(Main.sessionManager).addTags(image, tagIds.toString())) {
    223224                    JOptionPane.showMessageDialog(this, Messages.getMessage("addingTagsError"), Messages
    224225                            .getMessage("error"), JOptionPane.ERROR_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.