Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Action Definitions

This extension point is deprecated

Identifier:
org.eclipse.ui.actionDefinitions

Since:
2.0

Description:

WARNING: This extension point is DEPRECATED.
Do not use this extension point, it will be removed in future versions of this product. Instead, use the extension point org.eclipse.ui.commands

This extension point is used to register action definitions. Accelerators (see the Accelerator Sets extension point) use action definitions to reference actions. An action associates itself with a given accelerator by registering with that accelerator's associated action definition. An action registers itself with an action definition by calling the setActionDefinitionId(String id) method and supplying the action definition's id as an argument.

Configuration Markup:

<!ELEMENT extension ( actionDefinition*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>

  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

The actionDefinition element is deprecated

<!ELEMENT actionDefinition EMPTY>

<!ATTLIST actionDefinition

id          CDATA #REQUIRED

name        CDATA #IMPLIED

description CDATA #IMPLIED

>

  • id - a unique name that can be used to identify this action.
  • name - the name of the action as displayed to the user.
  • description - a short description of the action to display to the user.

Examples:
Following is an example of an action definition extension:


   <extension point=
"org.eclipse.ui.actionDefinitions"
> 
      <actionDefinition 
        id=
"org.eclipse.ui.file.save"
> 
      </actionDefinition> 
      <actionDefinition 
        id=
"org.eclipse.ui.file.saveAll"
> 
      </actionDefinition> 
      <actionDefinition 
        id=
"org.eclipse.ui.file.close"
> 
      </actionDefinition> 
      <actionDefinition 
        id=
"org.eclipse.ui.file.closeAll"
> 
      </actionDefinition> 
      <actionDefinition 
        id=
"org.eclipse.ui.file.print"
> 
      </actionDefinition> 
   </extension> 

Supplied Implementation:
The workbench provides many action definitions.


Copyright (c) 2002, 2007 IBM 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 https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire