Skip to content

Commit

Permalink
UI - deleted help button
Browse files Browse the repository at this point in the history
  • Loading branch information
krasa committed Jul 20, 2023
1 parent 2fc9140 commit 96d8c38
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 62 deletions.
24 changes: 24 additions & 0 deletions .run/EclipseCodeFormatter [buildPlugin].run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="EclipseCodeFormatter [buildPlugin]" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="buildPlugin" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<ForceTestExec>false</ForceTestExec>
<method v="2" />
</configuration>
</component>
84 changes: 36 additions & 48 deletions src/main/java/krasa/formatter/plugin/ProjectSettingsForm.form
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<grid id="be3ce" binding="rootComponent" layout-manager="GridLayoutManager" row-count="37" column-count="2" 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="1125" height="1101"/>
<xy x="20" y="20" width="842" height="1101"/>
</constraints>
<properties/>
<border type="none"/>
Expand Down Expand Up @@ -221,7 +221,7 @@
<text value="Eclipse formatter config"/>
</properties>
</component>
<grid id="9bbe1" layout-manager="GridLayoutManager" row-count="2" column-count="7" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="9bbe1" layout-manager="GridLayoutManager" row-count="2" column-count="6" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="2" column="1" row-span="2" col-span="1" vsize-policy="3" hsize-policy="3" anchor="9" fill="0" indent="0" use-parent-layout="true"/>
Expand All @@ -231,103 +231,91 @@
<children>
<component id="64315" class="javax.swing.JComboBox" binding="profiles">
<constraints>
<grid row="0" column="0" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<grid row="0" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="60" height="23"/>
</grid>
</constraints>
<properties>
<model/>
</properties>
</component>
<component id="bdccd" class="javax.swing.JButton" binding="newProfile">
<component id="9fe18" class="javax.swing.JButton" binding="rename">
<constraints>
<grid row="0" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="95" height="30"/>
</grid>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="New profile"/>
<hideActionText value="false"/>
<text value="Rename"/>
</properties>
</component>
<component id="e7a7e" class="javax.swing.JButton" binding="copyProfile">
<component id="59b14" class="javax.swing.JButton" binding="homepage">
<constraints>
<grid row="0" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<grid row="0" column="5" row-span="1" col-span="1" vsize-policy="1" hsize-policy="1" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Copy profile"/>
<font style="1"/>
<text value="Home Page"/>
</properties>
</component>
<component id="2b470" class="javax.swing.JButton" binding="profileHelp">
<component id="c901a" class="javax.swing.JButton" binding="helpButton">
<constraints>
<grid row="1" column="4" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="95" height="30"/>
</grid>
<grid row="1" column="5" row-span="1" col-span="1" vsize-policy="1" hsize-policy="1" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<icon value="krasa/formatter/help.png"/>
<text value=""/>
<toolTipText value="Profiles and persistence explanation"/>
<font style="1"/>
<text value="Help"/>
</properties>
</component>
<component id="535c9" class="javax.swing.JButton" binding="delete">
<component id="e0f96" class="javax.swing.JSeparator">
<constraints>
<grid row="1" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<grid row="0" column="4" row-span="2" col-span="1" vsize-policy="6" hsize-policy="0" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<hideActionText value="false"/>
<text value="Delete"/>
<orientation value="1"/>
</properties>
</component>
<component id="9411a" class="javax.swing.JButton" binding="exportToProjectProfile">
<component id="e8eac" class="javax.swing.JCheckBox" binding="backupToProjectCheckBox" default-binding="true">
<constraints>
<grid row="1" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<grid row="1" 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="Export to Project profile"/>
<text value="Backup to a project config file"/>
<toolTipText value="A copy of the global profile will be saved to a project config file, otherwise only an id+name to prevent unwanted VCS change"/>
</properties>
</component>
<component id="9fe18" class="javax.swing.JButton" binding="rename">
<component id="535c9" class="javax.swing.JButton" binding="delete">
<constraints>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<grid row="1" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<hideActionText value="false"/>
<text value="Rename"/>
</properties>
</component>
<component id="59b14" class="javax.swing.JButton" binding="homepage">
<constraints>
<grid row="0" column="6" row-span="1" col-span="1" vsize-policy="1" hsize-policy="1" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font style="1"/>
<text value="Home Page"/>
<text value="Delete"/>
</properties>
</component>
<component id="c901a" class="javax.swing.JButton" binding="helpButton">
<component id="9411a" class="javax.swing.JButton" binding="exportToProjectProfile">
<constraints>
<grid row="1" column="6" row-span="1" col-span="1" vsize-policy="1" hsize-policy="1" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<grid row="1" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font style="1"/>
<text value="Help"/>
<text value="Export to Project profile"/>
</properties>
</component>
<component id="e0f96" class="javax.swing.JSeparator">
<component id="bdccd" class="javax.swing.JButton" binding="newProfile">
<constraints>
<grid row="0" column="5" row-span="2" col-span="1" vsize-policy="6" hsize-policy="0" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="95" height="30"/>
</grid>
</constraints>
<properties>
<orientation value="1"/>
<text value="New profile"/>
</properties>
</component>
<component id="e8eac" class="javax.swing.JCheckBox" binding="backupToProjectCheckBox" default-binding="true">
<component id="e7a7e" class="javax.swing.JButton" binding="copyProfile">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<grid row="0" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Backup to a project config file"/>
<toolTipText value="A copy of the global profile will be saved to a project config file, otherwise only an id+name to prevent unwanted VCS change"/>
<text value="Copy profile"/>
</properties>
</component>
</children>
Expand Down
14 changes: 0 additions & 14 deletions src/main/java/krasa/formatter/plugin/ProjectSettingsForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public class ProjectSettingsForm {
private JLabel javaFormatterVersionLabel;
private JRadioButton importOrdering451;
private JRadioButton importOrdering452;
private JButton profileHelp;
private JLabel importStyleLabel;
private JRadioButton schemeEclipseJC;
private JRadioButton schemeEclipse;
Expand Down Expand Up @@ -467,19 +466,6 @@ public void actionPerformed(ActionEvent e) {
importOrdering452.setSelected(true);
}
});
profileHelp.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Messages.showInfoMessage(project,
"Close all projects to configure default settings.\n\n"
+ "<Project Specific> profile is not shared between projects. Other profiles are global - shared, synchronized and stored in the IDE."
+ "\nChange of a global profile will result in a change in all opened or closed projects using such profile."
+ "\nThe selected global profile is also fully persisted within a project, but most of the data is used only as a backup for syncing between different computers."
+ "\n\nPaths macros are automatically managed by the IDE. That can result in '$PROJECT_DIR$' being used for a global profile within a project config file,"
+ "\nbut an absolute path is actually stored and used in the IDE config file.",
"Profiles and persistence explanation");
}
});
}

private void apply() throws ConfigurationException {
Expand Down

0 comments on commit 96d8c38

Please sign in to comment.