~ubuntu-branches/debian/jessie/389-admin-console/jessie

« back to all changes in this revision

Viewing changes to src/com/netscape/management/admserv/task/Logging.java

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2011-10-12 11:05:09 UTC
  • Revision ID: package-import@ubuntu.com-20111012110509-ybd1jr5xeat2ug1i
Tags: upstream-1.1.8
ImportĀ upstreamĀ versionĀ 1.1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** BEGIN COPYRIGHT BLOCK
 
2
 * Copyright (C) 2001 Sun Microsystems, Inc.  Used by permission.
 
3
 * Copyright (C) 2005 Red Hat, Inc.
 
4
 * All rights reserved.
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; version 2
 
9
 * of the License.
 
10
 * 
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 * 
 
20
 * END COPYRIGHT BLOCK **/
 
21
package com.netscape.management.admserv.task;
 
22
 
 
23
import java.awt.*;
 
24
import java.util.*;
 
25
import java.awt.event.*;
 
26
import javax.swing.*;
 
27
import com.netscape.management.admserv.*;
 
28
import com.netscape.management.admserv.panel.*;
 
29
import com.netscape.management.client.*;
 
30
import com.netscape.management.admserv.config.*;
 
31
import com.netscape.management.client.console.*;
 
32
import com.netscape.management.client.util.*;
 
33
 
 
34
/**
 
35
  *
 
36
  * @version 0.1 11/01/97
 
37
  * @author ahakim@netscape.com
 
38
  * @see AdminTaskObject
 
39
  */
 
40
public class Logging extends AdminTaskObject {
 
41
    public Logging() {
 
42
        setName(AdminServer._resource.getString("taskName","logging"));
 
43
        setDescription(
 
44
                AdminServer._resource.getString("taskDescription","logging"));
 
45
    }
 
46
 
 
47
    public boolean run(IPage viewInstance) {
 
48
        IFramework framework = viewInstance.getFramework();
 
49
        JFrame frame = framework.getJFrame();
 
50
 
 
51
        JDialog dialog = getConfigDialog(frame);
 
52
        dialog.setSize(515, 425);
 
53
        dialog.setVisible(true);
 
54
        dialog.dispose();
 
55
        ModalDialogUtil.sleep();
 
56
        return true;
 
57
    }
 
58
 
 
59
    public JDialog getConfigDialog(Component parent) {
 
60
 
 
61
        DialogFrame configDialog = null;
 
62
        configDialog = new DialogFrame(parent, getName(),
 
63
                new BaseConfigPanel(
 
64
                new LoggingConfigPanel("", _consoleInfo),
 
65
                /*inDialog=*/true));
 
66
        return configDialog;
 
67
    }
 
68
}