forked from eclipse-lemminx/lemminx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
How to set catalog prefer as public in vscode setting?
See redhat-developer/vscode-xml#295 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
f45459e
commit 918d125
Showing
6 changed files
with
90 additions
and
16 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
51 changes: 51 additions & 0 deletions
51
...rc/main/java/org/eclipse/lemminx/extensions/contentmodel/settings/XMLCatalogSettings.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,51 @@ | ||
/******************************************************************************* | ||
* 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.settings; | ||
|
||
/** | ||
* XML catalog settings. | ||
* | ||
*/ | ||
public class XMLCatalogSettings { | ||
|
||
public static boolean DEFAULT_PREFER_PUBLIC = true; | ||
|
||
public static boolean DEFAULT_USE_LITERAL_SYSTEM_ID = true; | ||
|
||
public static final XMLCatalogSettings DEFAULT_CATALOG = new XMLCatalogSettings(); | ||
|
||
private boolean preferPublic; | ||
|
||
private boolean useLiteralSystemId; | ||
|
||
public XMLCatalogSettings() { | ||
setPreferPublic(DEFAULT_PREFER_PUBLIC); | ||
setUseLiteralSystemId(DEFAULT_USE_LITERAL_SYSTEM_ID); | ||
} | ||
|
||
public boolean isPreferPublic() { | ||
return preferPublic; | ||
} | ||
|
||
public void setPreferPublic(boolean preferPublic) { | ||
this.preferPublic = preferPublic; | ||
} | ||
|
||
public boolean isUseLiteralSystemId() { | ||
return useLiteralSystemId; | ||
} | ||
|
||
public void setUseLiteralSystemId(boolean useLiteralSystemId) { | ||
this.useLiteralSystemId = useLiteralSystemId; | ||
} | ||
|
||
} |
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