Skip to content

Commit

Permalink
renamed ClassName to SourceName
Browse files Browse the repository at this point in the history
  • Loading branch information
hlkuss committed Aug 24, 2023
1 parent 9bac21b commit af3ad70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Assets/SEE/Controls/Actions/LiveDocumentationAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public override bool Update()
documentationWindow.Title += $" ({selectedFile})";
}

documentationWindow.ClassName = documentationWindow.Title;
documentationWindow.SourceName = documentationWindow.Title;
documentationWindow.NodeOfClass = selectedNode.Value;

// Try initialise the FileParser
Expand Down
12 changes: 6 additions & 6 deletions Assets/SEE/Game/UI/LiveDocumentation/LiveDocumentationWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public class LiveDocumentationWindow : BaseWindow
private LiveDocumentationWindowType DocumentationWindowType { get; set; }

/// <summary>
/// The name of the class
/// The name of the node which should be analysed
/// </summary>
public string ClassName { get; set; }
public string SourceName { get; set; }

/// <summary>
/// A list of all imported namespaces/packages
Expand Down Expand Up @@ -108,7 +108,7 @@ public LiveDocumentationValues(string title, Node node, LiveDocumentationWindowT
/// <returns>Returns true when all fields are set. Otherwise false</returns>
private bool CheckNecessaryFields()
{
return ClassName != null && NodeOfClass != null;
return SourceName != null && NodeOfClass != null;
}

/// <summary>
Expand Down Expand Up @@ -175,7 +175,7 @@ private void OnClickClassMember(ClassMember cm)
newWin.Title += $" ({selectedFile})";
}

newWin.ClassName = newWin.Title;
newWin.SourceName = newWin.Title;
newWin.NodeOfClass = method;
newWin.DocumentationWindowType = LiveDocumentationWindowType.METHOD;
newWin.ImportedNamespaces = ImportedNamespaces;
Expand Down Expand Up @@ -231,7 +231,7 @@ protected override void StartDesktop()


// Setting the classname.
ClassNameField.text = ClassName;
ClassNameField.text = SourceName;

// Try setting the actual documentation
// If the class has no documentation
Expand Down Expand Up @@ -387,7 +387,7 @@ private void OnLinkClicked(string linkPath)
newWin.Title += $" ({selectedFile})";
}

newWin.ClassName = newWin.Title;
newWin.SourceName = newWin.Title;
newWin.NodeOfClass = nodeOfLink;
LiveDocumentationBuffer buffer = new LiveDocumentationBuffer();
FileParser parser = new FileParser(nodeOfLink.AbsolutePlatformPath());
Expand Down

0 comments on commit af3ad70

Please sign in to comment.