Eclipse 自定义控制台按钮位置
Eclipse custom console button position
我已经创建了一个实现自定义控制台的 eclipse 插件,并且在这个控制台视图中我制作了一个按钮,当它被按下时终止进程。
现在我希望这个按钮位于所有控制台按钮之前。
我知道我必须修改我的 location URI
,但我找不到要用于 ?before=
的值。
你能帮忙告诉我那个值是多少吗?
这就是按钮现在的位置,我希望它位于所有按钮之前。是红色的X
ConsoleView
视图工具栏是这样创建的:
protected void configureToolBar(IToolBarManager mgr) {
mgr.add(new Separator(IConsoleConstants.LAUNCH_GROUP));
mgr.add(new Separator(IConsoleConstants.OUTPUT_GROUP));
mgr.add(new Separator("fixedGroup"));
...
所以你之前的值应该是 IConsoleConstants.LAUNCH_GROUP
的值,即 launchGroup
:
/**
* Menu group identifier for the console view context menu and toolbar, for actions pertaining to
* launching (value <code>"launchGroup"</code>).
*/
public static final String LAUNCH_GROUP = "launchGroup";
/**
* Menu group identifier for the console view context menu and toolbar, for actions pertaining to
* console output. (value<code>"outputGroup"</code>).
*/
public static final String OUTPUT_GROUP = "outputGroup";
我已经创建了一个实现自定义控制台的 eclipse 插件,并且在这个控制台视图中我制作了一个按钮,当它被按下时终止进程。
现在我希望这个按钮位于所有控制台按钮之前。
我知道我必须修改我的 location URI
,但我找不到要用于 ?before=
的值。
你能帮忙告诉我那个值是多少吗?
这就是按钮现在的位置,我希望它位于所有按钮之前。是红色的X
ConsoleView
视图工具栏是这样创建的:
protected void configureToolBar(IToolBarManager mgr) {
mgr.add(new Separator(IConsoleConstants.LAUNCH_GROUP));
mgr.add(new Separator(IConsoleConstants.OUTPUT_GROUP));
mgr.add(new Separator("fixedGroup"));
...
所以你之前的值应该是 IConsoleConstants.LAUNCH_GROUP
的值,即 launchGroup
:
/**
* Menu group identifier for the console view context menu and toolbar, for actions pertaining to
* launching (value <code>"launchGroup"</code>).
*/
public static final String LAUNCH_GROUP = "launchGroup";
/**
* Menu group identifier for the console view context menu and toolbar, for actions pertaining to
* console output. (value<code>"outputGroup"</code>).
*/
public static final String OUTPUT_GROUP = "outputGroup";