⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jadoptionalpropertieseditorpage.java

📁 eclipseme的最新版本的source,欢迎j2me程序员使用
💻 JAVA
字号:
/**
 * Copyright (c) 2003-2005 Craig Setera
 * All Rights Reserved.
 * Licensed under the Eclipse Public License - v 1.0
 * For more information see http://www.eclipse.org/legal/epl-v10.html
 */
package eclipseme.ui.internal.editor.jad;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.PlatformUI;

import eclipseme.core.model.DescriptorPropertyDescription;
import eclipseme.core.model.IJADConstants;

/**
 * JAD editor page for handling the optional properties.
 * <p />
 * Copyright (c) 2003-2005 Craig Setera<br>
 * All Rights Reserved.<br>
 * Licensed under the Eclipse Public License - v 1.0<p/>
 * <br>
 * $Revision: 1.8 $
 * <br>
 * $Date: 2005/10/08 23:21:40 $
 * <br>
 * @author Craig Setera
 */
public class JADOptionalPropertiesEditorPage extends JADPropertiesEditorPage {
	public static final String ID = "optional";
	
	/**
	 * Optional property descriptors.
	 */
	private static final DescriptorPropertyDescription[] 
		OPTIONAL_DESCRIPTORS = new DescriptorPropertyDescription[] {
			new DescriptorPropertyDescription(
				IJADConstants.JAD_MIDLET_PERMISSIONS,
				getResourceString("property.jad.midlet_permissions"),
				DescriptorPropertyDescription.DATATYPE_STRING),
			new DescriptorPropertyDescription(
				IJADConstants.JAD_MIDLET_PERMISSIONS_OPTIONAL,
				getResourceString("property.jad.midlet_permissions_opt"),
				DescriptorPropertyDescription.DATATYPE_STRING),
			new DescriptorPropertyDescription(
				IJADConstants.JAD_MIDLET_DATA_SIZE,
				getResourceString("property.jad.midlet_data_size"),
				DescriptorPropertyDescription.DATATYPE_INT),
			new DescriptorPropertyDescription(
				IJADConstants.JAD_MIDLET_DESCRIPTION,
				getResourceString("property.jad.midlet_description"),
				DescriptorPropertyDescription.DATATYPE_STRING),
			new DescriptorPropertyDescription(
				IJADConstants.JAD_MIDLET_ICON,
				getResourceString("property.jad.midlet_icon"),
				DescriptorPropertyDescription.DATATYPE_STRING),
			new DescriptorPropertyDescription(
				IJADConstants.JAD_MIDLET_INFO_URL,
				getResourceString("property.jad.midlet_info_url"),
				DescriptorPropertyDescription.DATATYPE_URL),
		};

	/**
	 * Constract a new required properties editor.
	 * 
	 * @param editor
	 */
	public JADOptionalPropertiesEditorPage(JADEditor editor) {
		super(editor, ID, "Optional", OPTIONAL_DESCRIPTORS);
	}

	/**
	 * @see eclipseme.ui.internal.editor.jad.AbstractJADEditorPage#getSectionTitle()
	 */
	protected String getSectionTitle() {
		return "Optional Properties";
	}

	/**
	 * @see eclipseme.ui.internal.editor.jad.AbstractJADEditorPage#getSectionDescription()
	 */
	protected String getSectionDescription() {
		return "Optional midlet suite properties may be specified on this page";
	}
	
	protected void addContextHelp(Composite c)
	{
		PlatformUI.getWorkbench().getHelpSystem().setHelp(c, "eclipseme.ui.help_JADOptionalPropertiesEditorPage");
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -