`
zhaozhongwei
  • 浏览: 52807 次
  • 性别: 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.

分享到:
评论

相关推荐

    外文翻译 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 ...

    Qt扫雷代码

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

    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 ...

    Natural Language Processing in Action

    Natural Language Processing in Action is your guide to creating machines that understand human language using the power of Python with its ecosystem of packages dedicated to NLP and AI. Purchase of ...

    .NET Core in Action

    .NET Core in Action shows .NET developers how to build professional software applications with .NET Core. Learn how to convert existing .NET code to work on multiple platforms or how to start new ...

    Spring Microservices in Action.pdf

    Spring Microservices in Action teaches you how to build microservice-based applications using Java and the Spring platform. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub ...

    Go in Action(Manning,2015)

    Go in Action introduces the Go language, guiding you from inquisitive developer to Go guru. The book begins by introducing the unique features and concepts of Go. Then, you'll get hands-on experience ...

    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. ...

    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, ...

    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...

    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 ...

    OpenStack in Action

    OpenStack in Action offers the real world use cases and step-by-step instructions you can take to develop your own cloud platform from from inception to deployment. This book guides you through the ...

    Mule in Action, 2nd Edition

    Mule in Action, Second Edition is a totally-revised guide covering Mule 3 fundamentals and best practices. It starts with a quick ESB overview and then dives into rich examples covering core concepts ...

    Spring In Action5

    Spring in Action5最新英文版 After nearly 15 years of working ...with something exciting and new to say about Spring when writing the preface for this book. But nothing could be further from the truth!

    JUnit in Action

    JUnit in Action is about solving tough real-world problems such as unit-testing legacy applications, writing real tests for real objects, employing test metrics, automating tests, testing in ...

    Amazon Web Services in Action(Manning,2015)

    Amazon Web Services in Action introduces you to computing, storing, and networking in the AWS cloud. You'll start with a broad overview of AWS and learn how to spin-up servers manually and from the ...

    Electron in Action

    Electron in Action guides you, step-by-step, as you learn to build cross-platform desktop applications that run on Windows, OSX, and Linux. By the end of the book, you'll be ready to build simple, ...

Global site tag (gtag.js) - Google Analytics