コード例 #1
0
        private void OpeningContextMenu(object sender, CancelEventArgs args)
        {
            GotoAction ga = new GotoAction();
            TextArea   ta = CurrentCodeFileDocument.TextEditor.ActiveTextAreaControl.TextArea;

            this.cmGotoDefinition.Enabled      = CodeCompletionActionsManager.CanGoTo(ta);
            this.cmGotoRealization.Enabled     = CodeCompletionActionsManager.CanGoToRealization(ta);
            this.cmFindAllReferences.Enabled   = CodeCompletionActionsManager.CanFindReferences(ta);
            this.cmGenerateRealization.Enabled = CodeCompletionActionsManager.CanGenerateRealization(ta);
            this.cmRename.Enabled = CodeCompletionActionsManager.CanGoTo(ta);
        }
コード例 #2
0
  private void OpeningContextMenu(object sender, CancelEventArgs args)
  {
  	GotoAction ga = new GotoAction();
      TextArea ta = CurrentCodeFileDocument.TextEditor.ActiveTextAreaControl.TextArea;
  	this.cmGotoDefinition.Enabled = CodeCompletionActionsManager.CanGoTo(ta);
  	this.cmGotoRealization.Enabled = CodeCompletionActionsManager.CanGoToRealization(ta);
  	this.cmFindAllReferences.Enabled = CodeCompletionActionsManager.CanFindReferences(ta);
  	this.cmGenerateRealization.Enabled = CodeCompletionActionsManager.CanGenerateRealization(ta);
  	this.cmRename.Enabled = CodeCompletionActionsManager.CanGoTo(ta);
 }