Deprecated stuff dropped

This commit is contained in:
Roman Shevchenko
2011-09-08 12:50:24 +02:00
parent e931270474
commit 984d7fcdaa
3 changed files with 3 additions and 29 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2011 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.
@@ -33,16 +33,6 @@ public abstract class LafManager {
public abstract UIManager.LookAndFeelInfo getCurrentLookAndFeel();
/**
* @deprecated use {@link com.intellij.util.ui.UIUtil#isUnderAquaLookAndFeel()}
*/
public abstract boolean isUnderAquaLookAndFeel();
/**
* @deprecated use {@link com.intellij.util.ui.UIUtil#isUnderQuaquaLookAndFeel()}
*/
public abstract boolean isUnderQuaquaLookAndFeel();
public abstract boolean checkLookAndFeel(UIManager.LookAndFeelInfo lookAndFeelInfo);
public abstract void setCurrentLookAndFeel(UIManager.LookAndFeelInfo lookAndFeelInfo);
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2011 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.
@@ -35,14 +35,6 @@ public class HeadlessLafManagerImpl extends LafManager implements ApplicationCom
return null;
}
public boolean isUnderAquaLookAndFeel() {
return false;
}
public boolean isUnderQuaquaLookAndFeel() {
return false;
}
public boolean checkLookAndFeel(UIManager.LookAndFeelInfo lookAndFeelInfo) {
return true;
}
@@ -236,14 +236,6 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
return myCurrentLaf;
}
public boolean isUnderAquaLookAndFeel() {
return UIUtil.isUnderAquaLookAndFeel();
}
public boolean isUnderQuaquaLookAndFeel() {
return UIUtil.isUnderQuaquaLookAndFeel();
}
/**
* @return default LookAndFeelInfo for the running OS. For Win32 and
* Linux the method returns Alloy LAF or IDEA LAF if first not found, for Mac OS X it returns Aqua
@@ -844,7 +836,7 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
private static void fixPopupSize(final Popup popup, final Component contents) {
if (!UIUtil.isUnderGTKLookAndFeel() || !(contents instanceof JPopupMenu)) return;
for (Class aClass = popup.getClass(); aClass != null && Popup.class.isAssignableFrom(aClass); aClass = aClass.getSuperclass()) {
for (Class<?> aClass = popup.getClass(); aClass != null && Popup.class.isAssignableFrom(aClass); aClass = aClass.getSuperclass()) {
try {
final Method getComponent = aClass.getDeclaredMethod("getComponent");
getComponent.setAccessible(true);