mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DoNotSaveDefaults.kt — exlude dimensions.xml (non-roamable sizes of window, dialogs, etc.)
This commit is contained in:
@@ -63,6 +63,7 @@ class DoNotSaveDefaultsTest {
|
||||
"feature.usage.statistics.xml" /* non-roamable usage counters */,
|
||||
"tomee.extensions.xml", "jboss.extensions.xml", "glassfish.extensions.xml" /* javaee non-roamable stuff, it will be better to fix it */,
|
||||
"diff.xml" /* IDEA-166058 */,
|
||||
"dimensions.xml" /* non-roamable sizes of window, dialogs, etc. */,
|
||||
"debugger.renderers.xml", "debugger.xml" /* todo */
|
||||
))
|
||||
println(directoryTree)
|
||||
|
||||
@@ -280,7 +280,7 @@ public class DimensionService implements PersistentStateComponent<Element> {
|
||||
private static Pair<String, Float> keyPair(String key, @Nullable Project project) {
|
||||
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
|
||||
if (env.isHeadlessInstance()) {
|
||||
return new Pair(key + ".headless", 1f);
|
||||
return new Pair<>(key + ".headless", 1f);
|
||||
}
|
||||
JFrame frame = null;
|
||||
final Component owner = IdeFocusManager.findInstance().getFocusOwner();
|
||||
@@ -323,6 +323,6 @@ public class DimensionService implements PersistentStateComponent<Element> {
|
||||
int dpi = ((int)(96 * JBUI.pixScale(gd)));
|
||||
realKey += "@" + dpi + "dpi";
|
||||
}
|
||||
return new Pair(realKey, scale);
|
||||
return new Pair<>(realKey, scale);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user