Beispiel #1
0
 private void Close(EditorKey key)
 {
     if (!this.editors.ContainsKey(key))
     {
         return;
     }
     this.editors[key].Close();
 }
Beispiel #2
0
 public void Open(System.Type editorType, EditorKey editorKey)
 {
     if (!typeof(EditorWindow).IsAssignableFrom(editorType))
     {
         throw new ArgumentException(string.Format("{0} is not subclass of EditorWindow", (object)editorType));
     }
     Global.DockManager.Open(editorType, (object)editorKey);
 }
Beispiel #3
0
		public void MoveTo(System.Type editorType, EditorKey editorKey, string methodName, string[] methodDefinition)
		{
			this.Open(editorType, editorKey);
			EditorWindow editorWindow = this.editors[editorKey];
			if (editorWindow.MoveTo(methodName))
				return;
			editorWindow.InsertMethod(methodDefinition, 2, 2);
		}
Beispiel #4
0
        public void MoveTo(System.Type editorType, EditorKey editorKey, string methodName, string[] methodDefinition)
        {
            this.Open(editorType, editorKey);
            EditorWindow editorWindow = this.editors[editorKey];

            if (editorWindow.MoveTo(methodName))
            {
                return;
            }
            editorWindow.InsertMethod(methodDefinition, 2, 2);
        }
Beispiel #5
0
 public void MoveTo(System.Type editorType, EditorKey editorKey, int line, int column)
 {
     this.Open(editorType, editorKey);
     this.editors[editorKey].MoveTo(line - 1, column);
 }
Beispiel #6
0
		public void MoveTo(System.Type editorType, EditorKey editorKey, int line, int column)
		{
			this.Open(editorType, editorKey);
			this.editors[editorKey].MoveTo(line - 1, column);
		}
Beispiel #7
0
		private void Close(EditorKey key)
		{
			if (!this.editors.ContainsKey(key))
				return;
			this.editors[key].Close();
		}
Beispiel #8
0
		public void Open(System.Type editorType, EditorKey editorKey)
		{
			if (!typeof(EditorWindow).IsAssignableFrom(editorType))
				throw new ArgumentException(string.Format("{0} is not subclass of EditorWindow", (object)editorType));
			Global.DockManager.Open(editorType, (object)editorKey);
		}