📄 masterdetailspage.java
字号:
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.forms.article.rcp;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.article.FormArticlePlugin;
import org.eclipse.ui.forms.editor.*;
import org.eclipse.ui.forms.widgets.*;
/**
* @author dejan
*
* To change the template for this generated type comment go to Window -
* Preferences - Java - Code Generation - Code and Comments
*/
public class MasterDetailsPage extends FormPage {
private ScrolledPropertiesBlock block;
public MasterDetailsPage(FormEditor editor) {
super(editor, "fourth", Messages.getString("MasterDetailsPage.label")); //$NON-NLS-1$ //$NON-NLS-2$
block = new ScrolledPropertiesBlock(this);
}
protected void createFormContent(final IManagedForm managedForm) {
final ScrolledForm form = managedForm.getForm();
//FormToolkit toolkit = managedForm.getToolkit();
form.setText(Messages.getString("MasterDetailsPage.title")); //$NON-NLS-1$
form.setBackgroundImage(FormArticlePlugin.getDefault().getImage(
FormArticlePlugin.IMG_FORM_BG));
block.createContent(managedForm);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -