KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > apacheds > configuration > editor > ExtendedOperationsPage


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  *
19  */

20 package org.apache.directory.ldapstudio.apacheds.configuration.editor;
21
22
23 import org.eclipse.ui.forms.IManagedForm;
24 import org.eclipse.ui.forms.editor.FormEditor;
25 import org.eclipse.ui.forms.editor.FormPage;
26 import org.eclipse.ui.forms.widgets.ScrolledForm;
27
28
29 /**
30  * This class represents the Extended Operations Page of the Server Configuration Editor.
31  *
32  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
33  * @version $Rev$, $Date$
34  */

35 public class ExtendedOperationsPage extends FormPage
36 {
37     /** The Page ID*/
38     public static final String JavaDoc ID = ServerConfigurationEditor.ID + ".ExtendedOperationsPage";
39
40     /** The Page Title */
41     private static final String JavaDoc TITLE = "Extended Operations";
42
43     /** The Master/Details Block */
44     private ExtendedOperationsMasterDetailsBlock masterDetailsBlock;
45
46
47     /**
48      * Creates a new instance of ExtendedOperationsPage.
49      *
50      * @param editor
51      * the associated editor
52      */

53     public ExtendedOperationsPage( FormEditor editor )
54     {
55         super( editor, ID, TITLE );
56     }
57
58
59     /* (non-Javadoc)
60      * @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
61      */

62     protected void createFormContent( IManagedForm managedForm )
63     {
64         final ScrolledForm form = managedForm.getForm();
65         form.setText( "Extended Operations" );
66         masterDetailsBlock = new ExtendedOperationsMasterDetailsBlock( this );
67         masterDetailsBlock.createContent( managedForm );
68     }
69
70
71     /**
72      * Saves the necessary elements to the input model.
73      */

74     public void save()
75     {
76         if ( masterDetailsBlock != null )
77         {
78             masterDetailsBlock.save();
79         }
80     }
81 }
82
Popular Tags