Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1b201600f86da428db85d5bbc412845eec1ec931 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2001, 2007 Oracle Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Oracle Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsf.facesconfig.ui.page;

import org.eclipse.jst.jsf.facesconfig.ui.EditorMessages;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.ScrolledForm;

/**
 * A page the exists only be used before the editor's model is fully loaded
 * as a status placeholder while the user waits.
 * 
 * @author cbateman
 *
 */
public class WaitForLoadPage extends FormPage 
{

    /**
     * @param editor the parent
     * @param id  the id of the editor within its parent
     * @param title the title displayed to the user on the editor's tab
     */
    public WaitForLoadPage(FormEditor editor, String id, String title) {
        super(editor, id, title);
    }

    @Override
    protected void createFormContent(IManagedForm managedForm) {
        // get the form
        ScrolledForm form = managedForm.getForm();
        //FormToolkit toolkit = getEditor().getToolkit();
        form.setText(EditorMessages.FacesConfigEditor_WaitForLoadPage_Title);
    }

}

Back to the top