Remove ChooseCompilerSourcePanel
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.jetbrains.jet.plugin.framework.ui.ChooseCompilerSourcePanel">
|
||||
<grid id="27dc6" binding="contentPane" layout-manager="GridLayoutManager" row-count="2" 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="416" height="156"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children>
|
||||
<vspacer id="150a1">
|
||||
<constraints>
|
||||
<grid row="1" 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="920d" class="javax.swing.JLabel" binding="bundledPluginVersion">
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<text value="Using compiler bundled into plugin"/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
<buttonGroups>
|
||||
<group name="sourceGroup">
|
||||
<member id="e6e7d"/>
|
||||
<member id="4b0f"/>
|
||||
</group>
|
||||
</buttonGroups>
|
||||
</form>
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2013 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.jet.plugin.framework.ui;
|
||||
|
||||
import org.jetbrains.jet.plugin.JetPluginUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class ChooseCompilerSourcePanel {
|
||||
private JPanel contentPane;
|
||||
private JLabel bundledPluginVersion;
|
||||
|
||||
public ChooseCompilerSourcePanel() {
|
||||
bundledPluginVersion.setText(bundledPluginVersion.getText() + " - " + JetPluginUtil.getPluginVersion());
|
||||
}
|
||||
|
||||
public JPanel getContentPane() {
|
||||
return contentPane;
|
||||
}
|
||||
}
|
||||
@@ -40,14 +40,14 @@
|
||||
</grid>
|
||||
</children>
|
||||
</grid>
|
||||
<grid id="fcae8" binding="compilerSourcePanelPlace" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||
<component id="b2a7" class="javax.swing.JLabel" binding="compilerTextLabel">
|
||||
<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"/>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children/>
|
||||
</grid>
|
||||
<properties>
|
||||
<text value="Using compiler bundled into plugin"/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
<buttonGroups>
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jet.plugin.JetPluginUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -33,7 +34,7 @@ public class CreateJavaLibraryDialog extends DialogWrapper {
|
||||
private JPanel contentPane;
|
||||
private JCheckBox copyLibraryCheckbox;
|
||||
private JPanel copyIntoPanelPlace;
|
||||
private JPanel compilerSourcePanelPlace;
|
||||
private JLabel compilerTextLabel;
|
||||
|
||||
public CreateJavaLibraryDialog(@Nullable Project project, @NotNull String title, VirtualFile contextDirectory) {
|
||||
super(project);
|
||||
@@ -42,8 +43,7 @@ public class CreateJavaLibraryDialog extends DialogWrapper {
|
||||
|
||||
init();
|
||||
|
||||
ChooseCompilerSourcePanel compilerSourcePanel = new ChooseCompilerSourcePanel();
|
||||
compilerSourcePanelPlace.add(compilerSourcePanel.getContentPane(), BorderLayout.CENTER, 0);
|
||||
compilerTextLabel.setText(compilerTextLabel.getText() + " - " + JetPluginUtil.getPluginVersion());
|
||||
|
||||
copyIntoPanel = new CopyIntoPanel(project, FileUIUtils.createRelativePath(project, contextDirectory, "lib"));
|
||||
copyIntoPanel.addValidityListener(new ValidityListener() {
|
||||
|
||||
@@ -57,14 +57,14 @@
|
||||
</grid>
|
||||
</children>
|
||||
</grid>
|
||||
<grid id="d209b" binding="compilerSourcePanelPlace" layout-manager="BorderLayout" hgap="0" vgap="0">
|
||||
<component id="982e8" class="javax.swing.JLabel" binding="compilerTextLabel">
|
||||
<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"/>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
<children/>
|
||||
</grid>
|
||||
<properties>
|
||||
<text value="Using compiler bundled into plugin"/>
|
||||
</properties>
|
||||
</component>
|
||||
</children>
|
||||
</grid>
|
||||
<buttonGroups>
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jet.plugin.JetPluginUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -18,9 +19,9 @@ public class CreateJavaScriptLibraryDialog extends DialogWrapper {
|
||||
private JPanel contentPane;
|
||||
private JCheckBox copyLibraryCheckbox;
|
||||
private JCheckBox copyJSRuntimeCheckbox;
|
||||
private JPanel compilerSourcePanelPlace;
|
||||
private JPanel copyJSIntoPanelPlace;
|
||||
private JPanel copyHeadersIntoPanelPlace;
|
||||
private JLabel compilerTextLabel;
|
||||
|
||||
public CreateJavaScriptLibraryDialog(@Nullable Project project, @NotNull String title, VirtualFile contextDirectory) {
|
||||
super(project);
|
||||
@@ -29,8 +30,7 @@ public class CreateJavaScriptLibraryDialog extends DialogWrapper {
|
||||
|
||||
init();
|
||||
|
||||
ChooseCompilerSourcePanel compilerSourcePanel = new ChooseCompilerSourcePanel();
|
||||
compilerSourcePanelPlace.add(compilerSourcePanel.getContentPane(), BorderLayout.CENTER);
|
||||
compilerTextLabel.setText(compilerTextLabel.getText() + " - " + JetPluginUtil.getPluginVersion());
|
||||
|
||||
copyJSIntoPanel = new CopyIntoPanel(project, FileUIUtils.createRelativePath(project, contextDirectory, "script"), "&Script directory:");
|
||||
copyJSIntoPanel.addValidityListener(new ValidityListener() {
|
||||
|
||||
Reference in New Issue
Block a user