no message

This commit is contained in:
2024-10-14 11:48:44 +03:00
parent 69173eb2b8
commit 334a8de3bf
6 changed files with 6 additions and 11 deletions

View File

@@ -10,4 +10,5 @@ public class AbortDVMPackage extends AbortTestingPackage {
public int getAbortType() {
return 0;
}
}

View File

@@ -6,7 +6,7 @@ import Common.Visual.Windows.Dialog.Dialog;
import _VisualDVM.Utils;
import Visual_DVM_2021.Passes.CurrentProjectPass;
import Visual_DVM_2021.Passes.PassCode;
import Visual_DVM_2021.Passes.UI.CopyProjectFields;
import _VisualDVM.Visual.Windows.CopyProjectFields;
import org.apache.commons.io.FileUtils;
import java.io.File;

View File

@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Visual_DVM_2021.Passes.UI.CopyProjectFields">
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="4" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="8ded0" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="папка назначения"/>
</properties>
</component>
<vspacer id="a00a6">
<constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
<component id="c0f1d" class="javax.swing.JTextField" binding="tfParent" custom-create="true">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties>
<editable value="false"/>
</properties>
</component>
<component id="8d37e" class="javax.swing.JButton" binding="bBrowse">
<constraints>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<enabled value="true"/>
<icon value="icons/LastOpened.png"/>
<text value=""/>
<toolTipText value="Обзор..."/>
</properties>
</component>
<component id="93a33" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="перенос данных"/>
</properties>
</component>
<component id="25874" class="javax.swing.JCheckBox" binding="MigrateData">
<constraints>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<horizontalAlignment value="10"/>
<icon value="icons/NotPick.png"/>
<selectedIcon value="icons/Pick.png"/>
<text value=""/>
<verticalTextPosition value="0"/>
</properties>
</component>
<component id="8369d" class="javax.swing.JLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="имя копии"/>
</properties>
</component>
<component id="fd8d0" class="javax.swing.JTextField" binding="tfName" custom-create="true">
<constraints>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
</children>
</grid>
</form>

View File

@@ -1,40 +0,0 @@
package Visual_DVM_2021.Passes.UI;
import _VisualDVM.Current;
import Common.Visual.TextField.StyledTextField;
import Common.Visual.Windows.Dialog.DialogFields;
import Common.Visual.Windows.Dialog.VDirectoryChooser;
import _VisualDVM.Global;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
public class CopyProjectFields implements DialogFields {
public JTextField tfParent;
public JTextField tfName;
public JCheckBox MigrateData;
VDirectoryChooser directoryChooser = new VDirectoryChooser("Выбор целевой папки для копии проекта");
private JPanel content;
private JButton bBrowse;
public CopyProjectFields() {
tfName.setText(Global.mainModule.getProject().name + "_copy");
bBrowse.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
File file = directoryChooser.ShowDialog();
if (file != null)
tfParent.setText(file.getAbsolutePath());
}
});
}
@Override
public Component getContent() {
return content;
}
private void createUIComponents() {
// TODO: place custom component creation code here
tfParent = new StyledTextField();
tfName = new StyledTextField();
}
}