当前位置: 首页>>代码示例>>C#>>正文


C# IManager.GetPlugin方法代码示例

本文整理汇总了C#中IManager.GetPlugin方法的典型用法代码示例。如果您正苦于以下问题:C# IManager.GetPlugin方法的具体用法?C# IManager.GetPlugin怎么用?C# IManager.GetPlugin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IManager的用法示例。


在下文中一共展示了IManager.GetPlugin方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ConsoleWindow

		public ConsoleWindow(IManager manager)
		{
			InitializeComponent();

			m_manager = manager;
			m_plugin = (LuaPlugin)m_manager.GetPlugin(typeof(LuaPlugin));
			m_debugger = m_plugin.Debugger;

			m_manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened);
			m_manager.ProjectClosing += new ProjectClosingEventHandler(Manager_ProjectClosing);

			m_debugger.DebuggerConnected += new DebuggerConnectedEventHandler(Debugger_DebuggerConnected);
			m_debugger.DebuggerDisconnected += new DebuggerDisconnectedEventHandler(Debugger_DebuggerDisconnected);

			m_plugin.Options.OptionsChanged += new OptionsChangedDelegate(Options_OptionsChanged);

			m_autocompletePopup = new AutocompletePopup(m_debugger, this);
			m_autocompletePopup.Selection += new AutocompleteSelectionEventHandler(m_autocompletePopup_Selection);

			SetWaitingForResult(false);

			ConfigureScintillaControl(inputBox);

			ClearBrowser();
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:25,代码来源:ConsoleWindow.cs

示例2: DebugManager

		public DebugManager(IManager manager)
		{
			mManager = manager;
			mPlugin = (LuaPlugin) manager.GetPlugin(typeof(LuaPlugin));
			mTransports = new List<ITransport>();
			mConnectionStatus = ConnectionStatus.NotConnected;
			mTargetStatus = TargetState.Disconnected;
			mConnectedTarget = null;
			mBreakpoints = new List<BreakpointDetails>();
			mWatches = new Dictionary<int, WatchDetails>();
			mValueCache = new ValueCache();

			mMainWindowComponents = new MainWindowComponents(this);

			InitialiseTransports();

			Manager.AddToMenuStrip(mMainWindowComponents.menuStrip.Items);
			Manager.AddToStatusStrip(mMainWindowComponents.statusStrip.Items);
			Manager.AddToolStrip(mMainWindowComponents.toolStrip, DockStyle.Top, 1);

			Manager.ProjectOpened += new ProjectOpenedEventHandler(Manager_ProjectOpened);

			if(Manager.MainWindow != null)
				Manager.MainWindow.FormClosing += new FormClosingEventHandler(MainWindow_FormClosing);
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:25,代码来源:DebugManager.cs

示例3: FindReplaceDialog

		public FindReplaceDialog(IManager manager)
		{
			InitializeComponent();

			mManager = manager;

			DialogMode = Mode.Find;

			TextPlugin plugin = (TextPlugin)mManager.GetPlugin(typeof(TextPlugin));
			plugin.FindReplaceDialog = this;

			LoadFromRegistry(comboBoxFindWhat);
			LoadFromRegistry(comboBoxReplaceWith);
			LoadFromRegistry(comboBoxSearchIn);
			LoadFromRegistry(comboBoxFileTypes);

			if (comboBoxSearchIn.Items.Count == 0)
				comboBoxSearchIn.Items.AddRange(new string[] { "Current Project", "All Open Documents" });

			comboBoxSearchIn.Text = (string) comboBoxSearchIn.Items[0];

			if (comboBoxFileTypes.Items.Count > 0)
				comboBoxFileTypes.Text = (string) comboBoxFileTypes.Items[0];
			else
				FileTypes = "*.*";

			checkBoxIncludeSubFolders.Checked = true;
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:28,代码来源:FindReplaceDialog.cs

示例4: BreakpointsWindow

		public BreakpointsWindow(IManager manager)
		{
			InitializeComponent();

			mDebugger = ((LuaPlugin)manager.GetPlugin(typeof(LuaPlugin))).Debugger;

			mDebugger.DebuggerDisconnecting += new DebuggerDisconnectingEventHandler(Debugger_DebuggerDisconnecting);
			mDebugger.DebuggerConnected += new DebuggerConnectedEventHandler(Debugger_DebuggerConnected);
			mDebugger.BreakpointChanged += new BreakpointChangedEventHandler(Debugger_BreakpointChanged);
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:10,代码来源:BreakpointsWindow.cs

示例5: CallstackWindow

		public CallstackWindow(IManager manager)
		{
			InitializeComponent();

			mDebugger = ((LuaPlugin) manager.GetPlugin(typeof(LuaPlugin))).Debugger;

			mDebugger.DebuggerConnected += new DebuggerConnectedEventHandler(Debugger_DebuggerConnected);
			mDebugger.DebuggerDisconnecting += new DebuggerDisconnectingEventHandler(Debugger_DebuggerDisconnecting);
			mDebugger.CurrentStackFrameChanged += new CurrentStackFrameChangedEventHandler(Debugger_CurrentStackFrameChanged);
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:10,代码来源:CallstackWindow.cs

示例6: PendingDownloadsWindow

		public PendingDownloadsWindow(IManager manager)
		{
			InitializeComponent();

			m_manager = manager;
			m_debugger = ((LuaPlugin)manager.GetPlugin(typeof(LuaPlugin))).Debugger;

			m_debugger.DebuggerConnected += new DebuggerConnectedEventHandler(Debugger_DebuggerConnected);
			m_debugger.DebuggerDisconnected += new DebuggerDisconnectedEventHandler(Debugger_DebuggerDisconnected);

			pendingFileListView.Enabled = false;
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:12,代码来源:PendingDownloadsWindow.cs

示例7: ThreadsWindow

		public ThreadsWindow(IManager manager)
		{
			InitializeComponent();

			m_comparer = new ListViewItemComparer();

			threadListView.ListViewItemSorter = m_comparer;

			mDebugger = ((LuaPlugin)manager.GetPlugin(typeof(LuaPlugin))).Debugger;

			mDebugger.DebuggerConnected += new DebuggerConnectedEventHandler(Debugger_DebuggerConnected);
			mDebugger.DebuggerDisconnecting += new DebuggerDisconnectingEventHandler(Debugger_DebuggerDisconnecting);

			m_boldFont = new Font(threadListView.Font, FontStyle.Bold);
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:15,代码来源:ThreadsWindow.cs

示例8: LuaScriptView

		public LuaScriptView(IManager manager, Document doc)
			: base(manager, doc)
		{
			InitializeComponent();

			scintillaControl.MarginTypeN(0, (int) Scintilla.Enums.MarginType.Number);
			scintillaControl.MarginWidthN(0, scintillaControl.TextWidth((int) Scintilla.Enums.StylesCommon.LineNumber, "_99999"));
			scintillaControl.MarginWidthN(1, 12);			// Breakpoint
			scintillaControl.MarginWidthN(2, 12);			// Fold
			scintillaControl.MarginWidthN(3, 0);			// Execution point
			scintillaControl.MarginSensitiveN(0, true);
			scintillaControl.MarginSensitiveN(1, true);

			scintillaControl.MarginMaskN(1, 1 << ((int)LineMarker.Breakpoint));			// Show marker 0 in margin 1
			scintillaControl.MarginMaskN(3, 1 << ((int)LineMarker.Execution));			// Show marker 1 in margin 3

			scintillaControl.MarkerDefine((int) LineMarker.Breakpoint, Scintilla.Enums.MarkerSymbol.Circle);
			scintillaControl.MarkerSetForegroundColor((int)LineMarker.Breakpoint, 0x0000ff);
			scintillaControl.MarkerSetBackgroundColor((int)LineMarker.Breakpoint, 0x0000ff);

			scintillaControl.MarkerDefine((int)LineMarker.Execution, Scintilla.Enums.MarkerSymbol.Arrow);
			scintillaControl.MarkerSetForegroundColor((int)LineMarker.Execution, 0x00ffff);
			scintillaControl.MarkerSetBackgroundColor((int)LineMarker.Execution, 0x00ffff);

			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.FolderOpen, Scintilla.Enums.MarkerSymbol.CircleMinus);
			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.Folder, Scintilla.Enums.MarkerSymbol.CirclePlus);
			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.FolderSub, Scintilla.Enums.MarkerSymbol.VLine);
			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.FolderTail, Scintilla.Enums.MarkerSymbol.LCornerCurve);
			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.FolderEnd, Scintilla.Enums.MarkerSymbol.CirclePlusConnected);
			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.FolderOpenMid, Scintilla.Enums.MarkerSymbol.CircleMinusConnected);
			scintillaControl.MarkerDefine((int)Scintilla.Enums.MarkerOutline.FolderMidTail, Scintilla.Enums.MarkerSymbol.TCornerCurve);

			scintillaControl.MarginClick += new EventHandler<Scintilla.MarginClickEventArgs>(scintillaControl_MarginClick);
			scintillaControl.StyleNeeded += new EventHandler<Scintilla.StyleNeededEventArgs>(scintillaControl_StyleNeeded);

			mExecutionLine = 0;
			mDebugger = (manager.GetPlugin(typeof(LuaPlugin)) as LuaPlugin).Debugger;

			MergeMenu(this.MainMenuStrip);
		}
开发者ID:zcnet4,项目名称:lua-tilde,代码行数:40,代码来源:LuaScriptView.cs


注:本文中的IManager.GetPlugin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。