|
|
@ -7,7 +7,6 @@ import com.fine.theme.utils.FineUIStyle; |
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
import com.formdev.flatlaf.ui.FlatUIUtils; |
|
|
|
import com.formdev.flatlaf.ui.FlatUIUtils; |
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
import com.fr.design.components.tooltip.ModernToolTip; |
|
|
|
|
|
|
|
import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.itextfield.FRGraphics2D; |
|
|
|
import com.fr.design.gui.itextfield.FRGraphics2D; |
|
|
@ -22,7 +21,6 @@ import javax.swing.Icon; |
|
|
|
import javax.swing.JComponent; |
|
|
|
import javax.swing.JComponent; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JScrollBar; |
|
|
|
import javax.swing.JScrollBar; |
|
|
|
import javax.swing.JToolTip; |
|
|
|
|
|
|
|
import javax.swing.JViewport; |
|
|
|
import javax.swing.JViewport; |
|
|
|
import javax.swing.ScrollPaneConstants; |
|
|
|
import javax.swing.ScrollPaneConstants; |
|
|
|
import java.awt.BasicStroke; |
|
|
|
import java.awt.BasicStroke; |
|
|
@ -140,6 +138,7 @@ public class StartupPageWorkspacePanel extends JPanel { |
|
|
|
this.contentPanel.setOpaque(false); |
|
|
|
this.contentPanel.setOpaque(false); |
|
|
|
this.add(contentPanel, BorderLayout.NORTH); |
|
|
|
this.add(contentPanel, BorderLayout.NORTH); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JComponent generateUnLimitContentPanel(List<List<StartupWorkspaceBean>> partitions) { |
|
|
|
private JComponent generateUnLimitContentPanel(List<List<StartupWorkspaceBean>> partitions) { |
|
|
|
|
|
|
|
|
|
|
|
JComponent panel = generateUnLimitContentPanel0(partitions); |
|
|
|
JComponent panel = generateUnLimitContentPanel0(partitions); |
|
|
@ -287,10 +286,6 @@ public class StartupPageWorkspacePanel extends JPanel { |
|
|
|
AtomicReference<Color> borderColorRef = new AtomicReference<>(null); |
|
|
|
AtomicReference<Color> borderColorRef = new AtomicReference<>(null); |
|
|
|
|
|
|
|
|
|
|
|
JPanel selectWorkspacePanel = new JPanel() { |
|
|
|
JPanel selectWorkspacePanel = new JPanel() { |
|
|
|
@Override |
|
|
|
|
|
|
|
public JToolTip createToolTip() { |
|
|
|
|
|
|
|
return new ModernToolTip(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void paintComponent(Graphics g) { |
|
|
|
protected void paintComponent(Graphics g) { |
|
|
@ -325,7 +320,7 @@ public class StartupPageWorkspacePanel extends JPanel { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
selectWorkspacePanel.setLayout(new BorderLayout()); |
|
|
|
selectWorkspacePanel.setLayout(new BorderLayout()); |
|
|
|
selectWorkspacePanel.setToolTipText(Toolkit.i18nText("Fine-Design_Startup_Page_Double_Click_Enter_Workspace")); |
|
|
|
selectWorkspacePanel.setToolTipText(workspaceInfo.getPath()); |
|
|
|
selectWorkspacePanel.setBorder(new ScaledEmptyBorder(10, 10, 10, 10)); |
|
|
|
selectWorkspacePanel.setBorder(new ScaledEmptyBorder(10, 10, 10, 10)); |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
@ -394,12 +389,7 @@ public class StartupPageWorkspacePanel extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
UILabel arrowLabel = new UILabel(new LazyIcon("more_arrow", 20)) { |
|
|
|
UILabel arrowLabel = new UILabel(new LazyIcon("more_arrow", 20)); |
|
|
|
@Override |
|
|
|
|
|
|
|
public JToolTip createToolTip() { |
|
|
|
|
|
|
|
return new ModernToolTip(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
arrowLabel.setToolTipText(Toolkit.i18nText("Fine-Design_Startup_Page_Enter_Workspace")); |
|
|
|
arrowLabel.setToolTipText(Toolkit.i18nText("Fine-Design_Startup_Page_Enter_Workspace")); |
|
|
|
arrowLabel.addMouseListener(new MouseAdapter() { |
|
|
|
arrowLabel.addMouseListener(new MouseAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -433,10 +423,6 @@ public class StartupPageWorkspacePanel extends JPanel { |
|
|
|
// 选择并新建
|
|
|
|
// 选择并新建
|
|
|
|
AtomicReference<Color> borderColorRef = new AtomicReference<>(null); |
|
|
|
AtomicReference<Color> borderColorRef = new AtomicReference<>(null); |
|
|
|
JPanel selectAndCreatePanel = new JPanel() { |
|
|
|
JPanel selectAndCreatePanel = new JPanel() { |
|
|
|
@Override |
|
|
|
|
|
|
|
public JToolTip createToolTip() { |
|
|
|
|
|
|
|
return new ModernToolTip(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void paintComponent(Graphics g) { |
|
|
|
protected void paintComponent(Graphics g) { |
|
|
@ -481,6 +467,7 @@ public class StartupPageWorkspacePanel extends JPanel { |
|
|
|
label.setIcon(new LazyIcon("add", 20)); |
|
|
|
label.setIcon(new LazyIcon("add", 20)); |
|
|
|
repaintAll(); |
|
|
|
repaintAll(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
pageModel.setSelectWorkspaceInfo(workspaceInfo); |
|
|
|
pageModel.setSelectWorkspaceInfo(workspaceInfo); |
|
|
|