public override void Initialize ()
		{
			CurrentPath = new PathEntry[] { new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = null } };
			isPathSet = false;
			UpdatePath (null, null);
			caret = Document.Editor.Caret;
			caret.PositionChanged += UpdatePath;
			ext = Document.GetContent<CSharpCompletionTextEditorExtension> ();
			ext.TypeSegmentTreeUpdated += HandleTypeSegmentTreeUpdated;
		}
		public override void Initialize ()
		{
			CurrentPath = new PathEntry[] { new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = null } };
			isPathSet = false;
			UpdateOwnerProjects ();
			UpdatePath (null, null);
			caret = Document.Editor.Caret;
			caret.PositionChanged += UpdatePath;
			ext = Document.GetContent<CSharpCompletionTextEditorExtension> ();
			ext.TypeSegmentTreeUpdated += HandleTypeSegmentTreeUpdated;
			IdeApp.Workspace.FileAddedToProject += HandleProjectChanged;
			IdeApp.Workspace.FileRemovedFromProject += HandleProjectChanged;
		}
 public override void Initialize()
 {
     CurrentPath = new PathEntry[] { new PathEntry(GettextCatalog.GetString("No selection"))
                                     {
                                         Tag = null
                                     } };
     isPathSet = false;
     UpdatePath(null, null);
     caret = Document.Editor.Caret;
     caret.PositionChanged += UpdatePath;
     ext = Document.GetContent <CSharpCompletionTextEditorExtension> ();
     ext.TypeSegmentTreeUpdated += HandleTypeSegmentTreeUpdated;
 }
Beispiel #4
0
 public override void Initialize()
 {
     CurrentPath = new PathEntry[] { new PathEntry(GettextCatalog.GetString("No selection"))
                                     {
                                         Tag = null
                                     } };
     isPathSet = false;
     UpdateOwnerProjects();
     UpdatePath(null, null);
     caret = Document.Editor.Caret;
     caret.PositionChanged += UpdatePath;
     ext = Document.GetContent <CSharpCompletionTextEditorExtension> ();
     ext.TypeSegmentTreeUpdated              += HandleTypeSegmentTreeUpdated;
     IdeApp.Workspace.FileAddedToProject     += HandleProjectChanged;
     IdeApp.Workspace.FileRemovedFromProject += HandleProjectChanged;
 }
		public override void Initialize ()
		{
			CurrentPath = new PathEntry[] { new PathEntry (GettextCatalog.GetString ("No selection")) { Tag = null } };
			isPathSet = false;
			// Delay the execution of UpdateOwnerProjects since it may end calling Document.AttachToProject,
			// which shouldn't be called while the extension chain is being initialized.
			Gtk.Application.Invoke (delegate {
				UpdateOwnerProjects ();
				UpdatePath (null, null);
			});
			caret = Document.Editor.Caret;
			caret.PositionChanged += UpdatePath;
			ext = Document.GetContent<CSharpCompletionTextEditorExtension> ();
			ext.TypeSegmentTreeUpdated += HandleTypeSegmentTreeUpdated;
			IdeApp.Workspace.FileAddedToProject += HandleProjectChanged;
			IdeApp.Workspace.FileRemovedFromProject += HandleProjectChanged;
			IdeApp.Workspace.WorkspaceItemUnloaded += HandleWorkspaceItemUnloaded;
			IdeApp.Workspace.WorkspaceItemLoaded += HandleWorkspaceItemLoaded;;
		}
 public override void Initialize()
 {
     CurrentPath = new PathEntry[] { new PathEntry(GettextCatalog.GetString("No selection"))
                                     {
                                         Tag = null
                                     } };
     isPathSet = false;
     // Delay the execution of UpdateOwnerProjects since it may end calling Document.AttachToProject,
     // which shouldn't be called while the extension chain is being initialized.
     Gtk.Application.Invoke(delegate {
         UpdateOwnerProjects();
         UpdatePath(null, null);
     });
     caret = Document.Editor.Caret;
     caret.PositionChanged += UpdatePath;
     ext = Document.GetContent <CSharpCompletionTextEditorExtension> ();
     ext.TypeSegmentTreeUpdated              += HandleTypeSegmentTreeUpdated;
     IdeApp.Workspace.FileAddedToProject     += HandleProjectChanged;
     IdeApp.Workspace.FileRemovedFromProject += HandleProjectChanged;
     IdeApp.Workspace.WorkspaceItemUnloaded  += HandleWorkspaceItemUnloaded;
     IdeApp.Workspace.WorkspaceItemLoaded    += HandleWorkspaceItemLoaded;;
 }