static VSLI.IntellisenseKeyboardCommand? TryGetIntellisenseKeyboardCommand(HexEditorIds cmdId) {
				switch (cmdId) {
				case HexEditorIds.UP:				return VSLI.IntellisenseKeyboardCommand.Up;
				case HexEditorIds.DOWN:				return VSLI.IntellisenseKeyboardCommand.Down;
				case HexEditorIds.PAGEUP:			return VSLI.IntellisenseKeyboardCommand.PageUp;
				case HexEditorIds.PAGEDN:			return VSLI.IntellisenseKeyboardCommand.PageDown;
				case HexEditorIds.BOL:				return VSLI.IntellisenseKeyboardCommand.Home;
				case HexEditorIds.EOL:				return VSLI.IntellisenseKeyboardCommand.End;
				case HexEditorIds.TOPLINE:			return VSLI.IntellisenseKeyboardCommand.TopLine;
				case HexEditorIds.BOTTOMLINE:		return VSLI.IntellisenseKeyboardCommand.BottomLine;
				case HexEditorIds.CANCEL:			return VSLI.IntellisenseKeyboardCommand.Escape;
				case HexEditorIds.RETURN:			return VSLI.IntellisenseKeyboardCommand.Enter;
				case HexEditorIds.DECREASEFILTER:	return VSLI.IntellisenseKeyboardCommand.DecreaseFilterLevel;
				case HexEditorIds.INCREASEFILTER:	return VSLI.IntellisenseKeyboardCommand.IncreaseFilterLevel;
				default: return null;
				}
			}
示例#2
0
            static VSLI.IntellisenseKeyboardCommand?TryGetIntellisenseKeyboardCommand(HexEditorIds cmdId)
            {
                switch (cmdId)
                {
                case HexEditorIds.UP:                           return(VSLI.IntellisenseKeyboardCommand.Up);

                case HexEditorIds.DOWN:                         return(VSLI.IntellisenseKeyboardCommand.Down);

                case HexEditorIds.PAGEUP:                       return(VSLI.IntellisenseKeyboardCommand.PageUp);

                case HexEditorIds.PAGEDN:                       return(VSLI.IntellisenseKeyboardCommand.PageDown);

                case HexEditorIds.BOL:                          return(VSLI.IntellisenseKeyboardCommand.Home);

                case HexEditorIds.EOL:                          return(VSLI.IntellisenseKeyboardCommand.End);

                case HexEditorIds.TOPLINE:                      return(VSLI.IntellisenseKeyboardCommand.TopLine);

                case HexEditorIds.BOTTOMLINE:           return(VSLI.IntellisenseKeyboardCommand.BottomLine);

                case HexEditorIds.CANCEL:                       return(VSLI.IntellisenseKeyboardCommand.Escape);

                case HexEditorIds.RETURN:                       return(VSLI.IntellisenseKeyboardCommand.Enter);

                case HexEditorIds.DECREASEFILTER:       return(VSLI.IntellisenseKeyboardCommand.DecreaseFilterLevel);

                case HexEditorIds.INCREASEFILTER:       return(VSLI.IntellisenseKeyboardCommand.IncreaseFilterLevel);

                default: return(null);
                }
            }
示例#3
0
 protected HexViewCommandTargetMenuItemBase(HexEditorIds cmdId)
     : base(CommandConstants.HexEditorGroup, (int)cmdId)
 {
 }
示例#4
0
 protected PasteHexViewCommandTargetMenuItemBase(HexEditorIds cmdId)
     : base(cmdId)
 {
 }
 /// <summary>
 /// Converts <paramref name="id"/> to a <see cref="CommandInfo"/>
 /// </summary>
 /// <param name="id">ID</param>
 /// <param name="arguments">Arguments or null</param>
 /// <returns></returns>
 public static CommandInfo ToCommandInfo(this HexEditorIds id, object arguments) => new CommandInfo(CommandConstants.HexEditorGroup, (int)id, arguments);
 /// <summary>
 /// Converts <paramref name="id"/> to a <see cref="CommandInfo"/>
 /// </summary>
 /// <param name="id">ID</param>
 /// <returns></returns>
 public static CommandInfo ToCommandInfo(this HexEditorIds id) => new CommandInfo(CommandConstants.HexEditorGroup, (int)id);