LiveEdit — checkbox description according to platform standard

This commit is contained in:
Vladimir Krivosheev
2014-07-23 18:31:15 +02:00
parent f9f8c96d19
commit 209d66a92d
3 changed files with 1 additions and 95 deletions
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.jetbrains.plugins.groovy.debugger.GroovyDebuggerSettingsConfigurable">
<grid id="27dc6" binding="myPanel" layout-manager="GridLayoutManager" row-count="3" column-count="1" 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="661" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<vspacer id="30909">
<constraints>
<grid row="2" 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="908a2" class="com.intellij.ui.components.JBLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="3" use-parent-layout="false"/>
</constraints>
<properties>
<componentStyle value="SMALL"/>
<text value="May cause serialization issues in the debugged application"/>
</properties>
</component>
<grid id="bd4f0" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="2" left="0" bottom="0" right="0"/>
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="ac312" class="javax.swing.JCheckBox" binding="myEnableHotSwap">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Enable &amp;hot-swap agent for Groovy code"/>
</properties>
</component>
</children>
</grid>
</children>
</grid>
</form>
@@ -1,50 +0,0 @@
/*
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.plugins.groovy.debugger;
import com.intellij.openapi.options.ConfigurableUi;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
/**
* @author ilyas
*/
class GroovyDebuggerSettingsConfigurable implements ConfigurableUi<GroovyDebuggerSettings> {
private JPanel myPanel;
private JCheckBox myEnableHotSwap;
@NotNull
@Override
public JComponent getComponent() {
return myPanel;
}
@Override
public boolean isModified(@NotNull GroovyDebuggerSettings settings) {
return settings.ENABLE_GROOVY_HOTSWAP != myEnableHotSwap.isSelected();
}
@Override
public void apply(@NotNull GroovyDebuggerSettings settings) {
settings.ENABLE_GROOVY_HOTSWAP = myEnableHotSwap.isSelected();
}
@Override
public void reset(@NotNull GroovyDebuggerSettings settings) {
myEnableHotSwap.setSelected(settings.ENABLE_GROOVY_HOTSWAP);
}
}
@@ -19,6 +19,7 @@
</constraints>
<properties>
<componentStyle value="SMALL"/>
<fontColor value="BRIGHTER"/>
<text value="May cause serialization issues in the debugged application"/>
</properties>
</component>