-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separates model reference model types into their own class files
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
plugin/src/software/aws/toolkits/eclipse/amazonq/lsp/model/InlineCompletionReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
package software.aws.toolkits.eclipse.amazonq.lsp.model; | ||
|
||
public class InlineCompletionReference { | ||
private String referenceName; | ||
private String referenceUrl; | ||
private String licenseName; | ||
private InlineCompletionReferencePosition position; | ||
|
||
public final void setReferenceName(final String referenceName) { | ||
this.referenceName = referenceName; | ||
} | ||
|
||
public final void setReferenceUrl(final String referenceUrl) { | ||
this.referenceUrl = referenceUrl; | ||
} | ||
|
||
public final void setLicenseName(final String licenseName) { | ||
this.licenseName = licenseName; | ||
} | ||
|
||
public final void setPosition(final InlineCompletionReferencePosition position) { | ||
this.position = position; | ||
} | ||
|
||
public final String getReferenceName() { | ||
return referenceName; | ||
} | ||
|
||
public final String getReferenceUrl() { | ||
return referenceUrl; | ||
} | ||
|
||
public final String getLicenseName() { | ||
return licenseName; | ||
} | ||
|
||
public final InlineCompletionReferencePosition getPosition() { | ||
return position; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...rc/software/aws/toolkits/eclipse/amazonq/lsp/model/InlineCompletionReferencePosition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
package software.aws.toolkits.eclipse.amazonq.lsp.model; | ||
|
||
public class InlineCompletionReferencePosition { | ||
private int startCharacter; | ||
private int endCharacter; | ||
|
||
public final void setStartCharacter(final int startCharacter) { | ||
this.startCharacter = startCharacter; | ||
} | ||
|
||
public final void setEndCharacter(final int endCharacter) { | ||
this.endCharacter = endCharacter; | ||
} | ||
|
||
public final int getStartCharacter() { | ||
return startCharacter; | ||
} | ||
|
||
public final int getEndCharacter() { | ||
return endCharacter; | ||
} | ||
} |