menu

RCP菜单栏,工具栏实现的两种方法及RCP记事本例子

六眼飞鱼酱① 提交于 2020-03-12 12:16:09
RCP菜单栏,工具栏实现方法及RCP记事本例子 一、创建工程 file->new->other->plug-ins project,创建一个名为org.test.menuAndToolbar的工程: 选择创建RCP hello world 模板的项目,点击finish完成创建项目: 二、 添加菜单栏 点击plugin.xml文件,打开extensions页: 可以看到, Extentions 本来已经有两个扩展包含在里面了,现在我们要添加一个 actionSets扩展,点击“add”按钮,添加org.eclipse.ui.actionSets: 添加进org.eclipse.ui.actionSets后会默认有一个actionSet,要把它的visible设置为true,一定要设置为true,否则看不到菜单栏: 在actionSet上右键添加一个menu, 给 menu新建一个separator,命名为separator1: 在label(actionSet)上右键新建一个action: 这个action的Label设置为“打开”,menubarPath设置为:org.test.menuAndToolbar.menu1/separator1。Class设置为: actions.OpenFileAction 。 设置好以后点击 class超链接,会提示新建一个类,选择默认设置

采用ActionSets创建插件菜单与工具栏

拈花ヽ惹草 提交于 2020-03-12 11:55:40
第一步、定义工作台窗口菜单 1)打开插件清单编辑器,选择Extensions选项卡,并点击【adding...】按钮。 2)在扩展点列表中选择"org.eclipse.ui.actionSets",并点击【确定】按钮。 3)右键点击新添加的actionSets扩展,并选择New-ActionSet,添加一个操作集。 AsctionSet属性描述如下: id 用于引用操作集的唯一标示符。 label 出现在对话框的文本 visible 决定操作集是否在初始时可见。用户可以通过Window>Customize Perspective... 在对话框中展开Other节点,来显示或隐藏操作集。 4)右键点击刚添加的ActionSet,并选择New>menu添加一个出现在工作台菜单栏的菜单。 menu属性描述如下: id 用于引用该菜单的唯一标示符。 label 在工作台菜单栏出现的名称,例如“Fa&vorites”,其中&表示快捷键。 path 填入“additions”,表示菜单将要放置于菜单栏的位置的插入点。 第二步、定义菜单栏中的组 1)右键点击刚刚添加的menu菜单,并选择New>groupMarker,并将其name属性修改, 以唯一标示菜单中的组。 2)右键点击menu菜单,选择New>separator,并将其命名为“additions”。 第三步、定义菜单项和工具栏按钮 1

User login/logout button in menu Angular 8 not updating

为君一笑 提交于 2020-03-05 06:07:33
问题 I have a mat-toolbar with a login/logout button where the user of the website can login or out at all times. I have an authentication service which creates an Observable with user data and using *ngIf="!(authService.user$ | async) for the login button. This isn't working though, unless I manually refresh the whole page. Why is this and what does one do about it? I thought the Observable would be a way that would actually work in these situations, but obviously I am missing something. I have

User login/logout button in menu Angular 8 not updating

删除回忆录丶 提交于 2020-03-05 06:06:12
问题 I have a mat-toolbar with a login/logout button where the user of the website can login or out at all times. I have an authentication service which creates an Observable with user data and using *ngIf="!(authService.user$ | async) for the login button. This isn't working though, unless I manually refresh the whole page. Why is this and what does one do about it? I thought the Observable would be a way that would actually work in these situations, but obviously I am missing something. I have

Making coreui menu dynamic

十年热恋 提交于 2020-03-04 21:35:14
问题 We are using coreui VueJS. The problem we are facing is making the menu dynamic for each route. The menu is loaded from _nav.js file and it only loads once and therefore the changes made to _nav.js are not shown until the page is reloaded. Is there a way to make the menu dynamic? Can we reload the page for each router in VueJS? 来源: https://stackoverflow.com/questions/60369426/making-coreui-menu-dynamic

MeiTuanRefreshListView高仿美团下拉刷新《IT蓝豹》

回眸只為那壹抹淺笑 提交于 2020-03-01 11:53:17
MeiTuanRefreshListView高仿美团下拉刷新 MeiTuanRefreshListView高仿美团下拉刷新, 本项目来自:https://github.com/nugongshou110/MeiTuanRefreshListView 项目主要构成部分:自定义MeiTuanRefreshFirstStepView,MeiTuanRefreshSecondStepView, MeiTuanRefreshThirdStepView,其中自定义MeiTuan ListView 继承了ListView实现的, 部分代码如下: public class MeiTuanListView extends ListView implements AbsListView.OnScrollListener{ private static final int DONE = 0; private static final int PULL_TO_REFRESH = 1; private static final int RELEASE_TO_REFRESH = 2; private static final int REFRESHING = 3; private static final int RATIO = 3; private LinearLayout headerView;

一个优质的新闻客户端app

别等时光非礼了梦想. 提交于 2020-02-28 21:24:22
一个优质的新闻客户端app,本项目有几大亮点 (1):一个不错的欢迎页面效果,上下滑动滑动到底部效果 (2):加载网络弹窗loading效果,也很不错 (3):本项目大体框架也是一个非常棒的,强烈推荐使用当做app框架参考 (4):切换每一个fragment的时候处理的加载模式 (5):通过webview调用h5效果的商城,也很不错 运行效果: 效果源码: http://www.itlanbao.com/code/20151126/10000/100663.html 来源: oschina 链接: https://my.oschina.net/u/2461971/blog/536257

How to make different menu options in different Fragment?

流过昼夜 提交于 2020-02-27 06:36:39
问题 I want to have completely different menu options in different fragment .I followed this post.But my fragment menu is adding with the activity menu.But i don't want to have activity menus in some of my fragments. In SlidingDrawerActivity : @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; } In my fragment: public Friends_Status_Comment_Fragment(){ setHasOptionsMenu(true); } @Override public void onCreateOptionsMenu(Menu

How can I nest Tool menu buttons for a VS extension?

笑着哭i 提交于 2020-02-24 10:18:37
问题 I am building my first VS extension, so my current skills in this area amount to following tutorials and asking questions. The extension is for encrypting/decryption a section of the web.config file of a web app project. I have 2 commands, and currently the buttons are set up in the .vsct file as follows: <Buttons> <Button guid="guidEncryptConfigCommandPackageCmdSet" id="EncryptConfigCommandId" priority="0x0100" type="Button"> <Parent guid="guidEncryptConfigCommandPackageCmdSet" id=

WPF MenuItem.Icon dimensions

浪尽此生 提交于 2020-02-06 03:58:12
问题 So I have a MenuItem (within a ContextMenu, if it really makes a difference, don't think it does). I want to display an icon within the MenuItem using the MenuItem.Icon property. Here is XAML code that does this: <MenuItem Header="MenuItem1"> <MenuItem.Icon> <Image Source="[pathtoimage]"/> </MenuItem.Icon> </MenuItem> This works. But what if I want to specify the size of the icon with Height and Width ? Search on the web reveals that it should be 32, some say it should be 20. 20 works the