Skip to content

Commit

Permalink
add customizeに.git以下のファイルを無視する設定を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Khromium committed Sep 17, 2017
1 parent 9b1f0a5 commit d6477d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NitTokyo/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class Controller implements Initializable {
private TextField midasi2;
@FXML
private TextField midasi3;
@FXML
private CheckBox dotGit;

@FXML
private void handleDragOver(DragEvent event) {
Expand Down Expand Up @@ -292,6 +294,8 @@ public void createDocument(List<String> filePath) {
int headCount2 = 1;
//ここからドキュメント作成
for (String path : filePath) {
if (dotGit.isSelected() == true && Arrays.stream(path.split(File.separator)).filter(s -> s.equals(".git")).findAny().isPresent())
continue; //.git無視

if (!prebFolder.equals(getRelativeFilePath(path))) {//前と相対パスが異なったら
paragraph = document.createParagraph();//タイトルづくり
Expand Down
6 changes: 6 additions & 0 deletions src/NitTokyo/layout/main.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
Expand Down Expand Up @@ -222,6 +223,11 @@
</HBox>
</children>
</VBox>
<CheckBox fx:id="dotGit" mnemonicParsing="false" text="作成時に.git以下は無視する" selected="true">
<VBox.margin>
<Insets top="5.0" />
</VBox.margin>
</CheckBox>
</children>
<opaqueInsets>
<Insets />
Expand Down

0 comments on commit d6477d3

Please sign in to comment.