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
7416ae2
commit f60340f
Showing
7 changed files
with
124 additions
and
21 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
71 changes: 71 additions & 0 deletions
71
...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,71 @@ | ||
/******************************************************************************* | ||
* 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 Prefer DEFAULT_PREFER_PUBLIC = Prefer.PUBLIC; | ||
|
||
public static boolean DEFAULT_USE_PREFER_PUBLIC = true; | ||
|
||
public static boolean DEFAULT_USE_LITERAL_SYSTEM_ID = true; | ||
|
||
public static final XMLCatalogSettings DEFAULT_CATALOG = new XMLCatalogSettings(); | ||
|
||
public enum Prefer { | ||
PUBLIC, SYSTEM; | ||
} | ||
|
||
private Prefer prefer; | ||
|
||
private String[] files = null; | ||
|
||
private boolean useLiteralSystemId; | ||
|
||
public XMLCatalogSettings() { | ||
setPrefer(DEFAULT_PREFER_PUBLIC); | ||
setUseLiteralSystemId(DEFAULT_USE_LITERAL_SYSTEM_ID); | ||
} | ||
|
||
public Prefer getPrefer() { | ||
return prefer; | ||
} | ||
|
||
public void setPrefer(Prefer prefer) { | ||
this.prefer = prefer; | ||
} | ||
|
||
public boolean isPreferPublic() { | ||
return getPrefer() == Prefer.PUBLIC; | ||
} | ||
|
||
public String[] getFiles() { | ||
return files; | ||
} | ||
|
||
public void setFiles(String[] files) { | ||
this.files = files; | ||
} | ||
|
||
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