?? jadoptionalpropertieseditorpage.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 + -