~teemu-heinamaki/ubuntu/maverick/tuxguitar/merge-from-debian

« back to all changes in this revision

Viewing changes to TuxGuitar-community/src/org/herac/tuxguitar/community/browser/TGBrowserImpl.java

  • Committer: teemu.heinamaki at gmail
  • Date: 2010-05-21 18:04:21 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: teemu.heinamaki@gmail.com-20100521180421-8b3pn1cknq1kn08h
* Merge from Debian, remaining changes (LP: 523196):
  - debian/control
     + Use xulrunner 1.9.2
     + Use jsa-plugin by default
     + Change maintainer to Ubuntu MOTU
  - misc/tuxguitar.sh
     + Search for xulrunner 1.9.2 instead of 1.9.1   
* Address bashism in /usr/bin/tuxguitar (Closes: #581142) 
  (Thank you to Raphael Geissert)
* Switch to dpkg-source 3.0 (quilt) format
  - remove debian/README.source
  - remove patch-related targets in debian/rules
  - remove build-dep on quilt
* debian/compat - upgrade to debhelper 7
* Remove extraneous LICENSE file.
* Modify tuxguitar.sh to find swt-gtk-3.5.1.jar (Closes: #575898)
* Unbuild tuxguitar-gervill (Closes: #570556) :
  - since it depends on unpackaged component
* Added jack plugin (Closes: #569999)
* Merged upstream files in patch (Closes: #569910)
* Non-maintainer upload.
* debian/control:
  - Update swt-gtk dependency to 3.5 to fix FTBFS. (Closes: #564347)
  - Change XS-Vcs-* fields to Vcs-*.
  - Add ${misc:Depends}.
  - Bump Standards-Version to 3.8.4.
* debian/rules: Don't install redundant LICENSE doc.
* New upstream release (Closes: #510742)
* Merged patch : tuxguitar_1.1-1ubuntu1.patch
* Added Makefile : from upstream repo
* debian/* :
  - Migrated to quilt
  - Updated standards
* Non-maintainer upload for transition to xulrunner 1.9.1.
  (Closes: #548683)
* debian/control: Depend on a xulrunner-1.9.1.
* misc/tuxguitar.sh: Detect xulrunner 1.9.1.
* New upstream release (closes: #405295 , #398972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.community.browser;
 
2
 
 
3
import java.util.ArrayList;
 
4
import java.util.List;
 
5
 
 
6
import org.herac.tuxguitar.gui.tools.browser.TGBrowserException;
 
7
import org.herac.tuxguitar.gui.tools.browser.base.TGBrowser;
 
8
import org.herac.tuxguitar.gui.tools.browser.base.TGBrowserElement;
 
9
 
 
10
public class TGBrowserImpl extends TGBrowser {
 
11
        
 
12
        private TGBrowserConnection connection;
 
13
        private TGBrowserElementImpl element;
 
14
        
 
15
        public TGBrowserImpl(TGBrowserDataImpl data){
 
16
                this.element = null;
 
17
                this.connection = new TGBrowserConnection();
 
18
        }
 
19
        
 
20
        public void open() throws TGBrowserException {
 
21
                // TODO Auto-generated method stub
 
22
        }
 
23
        
 
24
        public void close() throws TGBrowserException {
 
25
                // TODO Auto-generated method stub
 
26
        }
 
27
        
 
28
        public void cdRoot() throws TGBrowserException {
 
29
                this.element = null;
 
30
        }
 
31
        
 
32
        public void cdUp() throws TGBrowserException {
 
33
                if( this.element != null ){
 
34
                        this.element = this.element.getParent();
 
35
                }
 
36
        }
 
37
        
 
38
        public void cdElement(TGBrowserElement element) throws TGBrowserException {
 
39
                if( element instanceof TGBrowserElementImpl ){
 
40
                        TGBrowserElementImpl nextElement = (TGBrowserElementImpl)element;
 
41
                        nextElement.setParent( this.element );
 
42
                        this.element = nextElement;
 
43
                }
 
44
        }
 
45
        
 
46
        public List listElements() throws TGBrowserException {
 
47
                List elements = new ArrayList();
 
48
                this.connection.getElements(elements , this.element );
 
49
                return elements;
 
50
        }
 
51
}