~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to java/src/IceGridGUI/MainPane.java

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
7
7
//
8
8
// **********************************************************************
 
9
 
9
10
package IceGridGUI;
10
11
 
11
12
import java.awt.Component;
20
21
    public void addApplication(ApplicationPane application)
21
22
    {
22
23
        IceGridGUI.Application.Root root = application.getRoot();
23
 
        super.addTab(computeTitle(root.getId()), 
24
 
                     getIcon(root), application);
 
24
        super.addTab(computeTitle(root.getId()), getIcon(root), application);
25
25
    }
26
26
 
27
27
    public void setTitleAt(int index, String title)
93
93
 
94
94
        addChangeListener(new ChangeListener()
95
95
            {
96
 
                public void stateChanged(ChangeEvent evt) 
 
96
                public void stateChanged(ChangeEvent evt)
97
97
                {
98
98
                    Tab tab = (Tab)getSelectedComponent();
99
99
                    tab.selected();
102
102
 
103
103
        _registryIcon = Utils.getIcon("/icons/16x16/registry_bound_application.png");
104
104
        _fileIcon = Utils.getIcon("/icons/16x16/file_bound_application.png");
105
 
            
106
 
        addTab("Live Deployment", 
 
105
 
 
106
        addTab("Live Deployment",
107
107
               Utils.getIcon("/icons/16x16/live_deployment.png"),
108
108
               _coordinator.getLiveDeploymentPane());
109
109
    }
110
110
 
111
 
   
112
111
    private String computeTitle(String name)
113
112
    {
114
113
        String title = name;
149
148
        }
150
149
    }
151
150
 
152
 
 
153
151
    private Coordinator _coordinator;
154
152
    private ImageIcon _registryIcon;
155
153
    private ImageIcon _fileIcon;