mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add spacing for name component
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,10 +18,12 @@ package com.intellij.openapi.ui;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.options.Configurable;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.ui.DocumentAdapter;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
import java.awt.*;
|
||||
|
||||
@@ -55,6 +57,11 @@ public abstract class NamedConfigurable<T> implements Configurable {
|
||||
}
|
||||
});
|
||||
}
|
||||
if (Registry.is("ide.new.project.settings")) {
|
||||
myNamePanel.setBorder(new EmptyBorder(10, 10, 6, 10));
|
||||
} else {
|
||||
myNamePanel.setBorder(new EmptyBorder(0,0,0,0));
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isNameEditable() {
|
||||
|
||||
Reference in New Issue
Block a user