-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Outline should display referenced DTD / XSD from the current XML
Fixes #892 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
dbf43f3
commit 7fe05f1
Showing
33 changed files
with
1,330 additions
and
197 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
56 changes: 56 additions & 0 deletions
56
...inx/src/main/java/org/eclipse/lemminx/extensions/contentmodel/model/GrammarCacheInfo.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,56 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 Red Hat Inc. and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.lemminx.extensions.contentmodel.model; | ||
|
||
/** | ||
* Grammar cache information. | ||
*/ | ||
public class GrammarCacheInfo { | ||
|
||
private final String cachedResolvedUri; | ||
private final boolean downloading; | ||
private final Exception cacheError; | ||
|
||
public GrammarCacheInfo(String cachedResolvedUri, boolean downloading, Exception cacheError) { | ||
super(); | ||
this.cachedResolvedUri = cachedResolvedUri; | ||
this.downloading = downloading; | ||
this.cacheError = cacheError; | ||
} | ||
|
||
/** | ||
* Returns the file path cache. | ||
* | ||
* @return the file path cache. | ||
*/ | ||
public String getCachedResolvedUri() { | ||
return cachedResolvedUri; | ||
} | ||
|
||
/** | ||
* Returns true if the grammar is downloading and false otherwise. | ||
* | ||
* @return true if the grammar is downloading and false otherwise. | ||
*/ | ||
public boolean isDownloading() { | ||
return downloading; | ||
} | ||
|
||
/** | ||
* Returns the error while downloading and null otherwise. | ||
* | ||
* @return the error while downloading and null otherwise. | ||
*/ | ||
public Exception getCacheError() { | ||
return cacheError; | ||
} | ||
} |
Oops, something went wrong.