`
zhaozhongwei
  • 浏览: 54337 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论

about action

阅读更多

   <extension
         point="org.eclipse.ui.actionSets">
         <action
               definitionId="org.eclipse.dltk.ui.edit.text.script.open.type.hierarchy"
               label="%OpenTypeHierarchyAction.label"
               retarget="true"
               menubarPath="navigate/open.ext"
               id="org.eclipse.dltk.ui.actions.OpenTypeHierarchy">
         </action>
      </actionSet>
   </extension>

    <extension
           point="org.eclipse.ui.views">

        <view
              name="%ScriptExplorerView.name"
              icon="$nl$/icons/full/eview16/package.gif"
              category="org.eclipse.dltk.ui.main"
              class="org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart"
              id="org.eclipse.dltk.ui.ScriptExplorer">
        </view>

   </extension>
  
   <extension
         point="org.eclipse.ui.actionSetPartAssociations">
      <actionSetPartAssociation
            targetID="org.eclipse.dltk.ui.A_OpenActionSet">
         <part id="org.eclipse.dltk.ui.ScriptExplorer"/>
      </actionSetPartAssociation>
 </extension>

 

 

ScriptExplorerPart#createPartControl(then call fillActionBars()),NavigateActionGroup,OpenViewActionGroup#createSiteActions

 

        fOpenTypeHierarchy= new OpenTypeHierarchyAction(site);
        fOpenTypeHierarchy.setActionDefinitionId(IScriptEditorActionDefinitionIds.OPEN_TYPE_HIERARCHY);

 

 

IScriptEditorActionDefinitionIds.OPEN_TYPE_HIERARCHY equals to "org.eclipse.dltk.ui.edit.text.script.open.type.hierarchy"

 

 

 

if the retarget property of the action tag is true,view and editor parts may supply a handler for
 this action using the standard mechanism for setting a global action handler on their site using this
 action's identifier. If this attribute is true, the class attribute should not be supplied.

 

we can see the retargeted actionset is associated with class ScriptExplorerPart,so we can find the actual action OpenTypeHierarchyAction step by step.

分享到:
评论

相关推荐

    为系统菜单添加菜单项

    connect(aboutAction, &QAction::triggered, this, &MainWindow::showAboutDialog); fileMenu-&gt;addAction(aboutAction); ``` 这里,`QMenu`对象代表了菜单,`QAction`对象代表了菜单项。`tr`函数用于进行字符串的...

    外文翻译 stus MVC

    Another way of thinking about Action class is as the Adapter design pattern. The purpose of the Action is to "Convert the interface of a class into another interface the clients expect. Adapter lets ...

    RCP工程转成RAP,并在浏览器中运行

    开发者可能需要自己创建Action的实现,例如创建一个自定义的aboutAction。 7. **主题和UI样式** - RAP允许自定义主题,可以通过"themeID"指定。开发者可以创建和应用自己的主题,以达到与原RCP工程相似的视觉效果...

    Qt扫雷代码

    connect(aboutAction,SIGNAL(triggered()),this,SLOT(about())); commButton=new QPushButton(this); // commButton-&gt;setText(tr("新游戏")); commButton-&gt;setIconSize(QSize(30,30)); commButton-&gt;...

    浅谈vuex之mutation和action的基本使用

    接下来, lets talk about action。action是一个函数,它的主要作用是commit mutation。action需要指定要commit哪个mutation,同时还需要一个处理函数,该函数将会在action被dispatch时执行。 在上面的代码中,我们...

    Action Recognition – Step-by-step.pdf

    This book is about Action Recognition The codes are implemented step by step with Pythonin Jupyter Notebook and they can be run on both CPUs and GPUs . The dataset is the UCF101 that was developed by ...

    android 关于(About)程序信息——Menu功能菜单程序设计

    android:id="@+id/action_about" android:icon="@drawable/ic_about" android:title="关于"/&gt; android:id="@+id/action_privacy_policy" android:icon="@drawable/ic_policy" android:title="隐私政策"/&gt; `...

    Docker-in-Action.pdf

    Docker-in-Action.pdf In 2011, I started working at Amazon.com. In that first week my life was changed as I learned how to use their internal build, dependency modeling, and deployment tool- ing. This ...

    Spring Boot in Action(Manning,2015)

    Spring Boot in Action is a developer-focused guide to writing applications using Spring Boot. In it, you'll learn how to bypass configuration steps so you can focus on your application's behavior. ...

    Activiti-in-Action.pdf

    After I wrote Open Source ESBs in Action for Manning a few years ago, I focused on my daily job for some time, working with open source enterprise integration frameworks like Mule, Camel, ServiceMix,...

    Entity Framework Core in Action

    Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. Following the crystal-clear explanations, real-world examples, and around 100 diagrams, you...

    Web Components in Action

    In Web Components in Action you'll learn to design, build, and deploy reusable Web Components from scratch. Foreword by Gray Norton. Purchase of the print book includes a free eBook in PDF, Kindle,...

    HTML5 in Action

    About the Technology HTML5 is not a few new tags and features added to an old standard—it’s the foundation of the modern web, enabling its interactive services, single-page UI, interactive games, ...

    A Fuzzy Reasoning Model for Action and Change in Timed Domains

    文章主要介绍了在人工智能领域,特别是在动作与变化推理(Reasoning about Action and Change, RAC)的研究中,如何利用模糊逻辑来处理动作和世界状态的近似时间发生和变化的问题。 模糊推理模型主要的研究内容可以...

    Linux in Action

    Linux in Action is a task-based tutorial that will give you the skills and deep understanding you need to administer a Linux-based system. This hands-on book guides you through 12 real-world projects ...

Global site tag (gtag.js) - Google Analytics