add spacing for name component

This commit is contained in:
Konstantin Bulenkov
2014-07-25 14:11:47 +02:00
parent f8ebf2087e
commit e0e324c968
@@ -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() {