Skip to content

Commit 1a29af6

Browse files
author
synapticloop
committed
added in solrj connector defaults
1 parent 504f910 commit 1a29af6

File tree

5 files changed

+58
-9
lines changed

5 files changed

+58
-9
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ application {
9292

9393
distributions {
9494
main {
95-
distributionBaseName = 'solr-panl-9'
95+
distributionBaseName = 'solr-panl-' + findProperty("panl.solr.version")
9696
}
9797

9898
configurations.all {

gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
panl.version=1.2.0
1+
panl.version=1.2.0
2+
panl.solr.version=9

src/main/java/com/synapticloop/panl/editor/PanlEditor.java

+14-6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
import java.io.File;
3636

3737
public class PanlEditor {
38+
private static final ImageIcon ICON_APP =
39+
new ImageIcon(PanlEditor.class.getResource("/webapp/static/favicon.png"));
40+
41+
42+
43+
private static final ImageIcon ICON_MOON =
44+
new ImageIcon(PanlEditor.class.getResource("/images/moon.png"));
45+
private static final ImageIcon ICON_SUN =
46+
new ImageIcon(PanlEditor.class.getResource("/images/sun.png"));
47+
48+
49+
3850
private static final ImageIcon ICON_FILE =
3951
new ImageIcon(PanlEditor.class.getResource("/images/file.png"));
4052
private static final ImageIcon ICON_FILE_WHITE =
@@ -55,11 +67,6 @@ public class PanlEditor {
5567
private static final ImageIcon ICON_RECENT_WHITE =
5668
new ImageIcon(PanlEditor.class.getResource("/images/clock-white.png"));
5769

58-
private static final ImageIcon ICON_MOON =
59-
new ImageIcon(PanlEditor.class.getResource("/images/moon.png"));
60-
private static final ImageIcon ICON_SUN =
61-
new ImageIcon(PanlEditor.class.getResource("/images/sun.png"));
62-
6370
private boolean isDarkUI = false;
6471

6572
public void show() {
@@ -72,14 +79,15 @@ public void show() {
7279
}
7380

7481
JFrame mainWindowFrame = new JFrame("Panl Configuration Editor");
82+
mainWindowFrame.setIconImage(ICON_APP.getImage());
83+
7584
mainWindowFrame.setPreferredSize(new Dimension(800, 600));
7685
mainWindowFrame.setMinimumSize(new Dimension(800, 600));
7786
mainWindowFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
7887

7988
mainWindowFrame.setJMenuBar(createJMenuBar(mainWindowFrame));
8089

8190
JTabbedPane jTabbedPane = new JTabbedPane();
82-
// jTabbedPane.add("panl", PanlPropertiesNewTab.createSelectPanlProperties(mainWindowFrame));
8391
jTabbedPane.add("panl", PanlPropertiesEditTab.getJPanel(null));
8492
Component newCollection = NewCollectionTab.createNewCollection();
8593
jTabbedPane.add("[ + ]", newCollection);

src/main/java/com/synapticloop/panl/editor/tab/PanlPropertiesEditTab.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public static JPanel getJPanel(File panlPropertiesFile) {
4545
"Include comments?",
4646
"Select this to include comments in the generated panl.properties file");
4747

48-
addLabel(jPanel, gbc, "Server properties");
48+
addLabel(jPanel, gbc, "Connection properties");
49+
50+
addLabel(jPanel, gbc, "Server options");
4951

5052
addBooleanProperty(
5153
jPanel,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2008-2024 synapticloop.
3+
*
4+
* https://github.com/synapticloop/panl
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to
8+
* deal in the Software without restriction, including without limitation the
9+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10+
* sell copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22+
* IN THE SOFTWARE.
23+
*/
24+
25+
package com.synapticloop.panl.editor.tab.solrj;
26+
27+
import java.util.ArrayList;
28+
import java.util.List;
29+
30+
public class SolrJConnector {
31+
public static final List<String> AVAILABLE_SOLR_J_CONNECTORS = new ArrayList<>();
32+
static {
33+
AVAILABLE_SOLR_J_CONNECTORS.add("Http2SolrClient");
34+
AVAILABLE_SOLR_J_CONNECTORS.add("HttpJdkSolrClient");
35+
AVAILABLE_SOLR_J_CONNECTORS.add("LBHttp2SolrClient");
36+
AVAILABLE_SOLR_J_CONNECTORS.add("CloudSolrClient");
37+
}
38+
}

0 commit comments

Comments
 (0)