本文整理汇总了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();
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}