Java 类java.awt.peer.DesktopPeer 实例源码

项目:javify    文件:ClasspathDesktopPeer.java   
/**
 * @return
 */
public static DesktopPeer getDesktop()
{
  //  check if we are under Gnome or KDE or anything else
  String desktopSession = System.getenv("GNOME_DESKTOP_SESSION_ID");
  if (desktopSession == null)
    {
      desktopSession = System.getenv("KDE_FULL_SESSION");
      if (desktopSession != null)
        return kde;
    }
  else
    {
      return gnome;
    }

  // revert to this class for default values
  return classpath;
}
项目:jvm-stm    文件:ClasspathDesktopPeer.java   
/**
 * @return
 */
public static DesktopPeer getDesktop()
{
  //  check if we are under Gnome or KDE or anything else
  String desktopSession = System.getenv("GNOME_DESKTOP_SESSION_ID");
  if (desktopSession == null)
    { 
      desktopSession = System.getenv("KDE_FULL_SESSION");
      if (desktopSession != null)
        return kde;
    }
  else
    {
      return gnome;
    }

  // revert to this class for default values
  return classpath;
}
项目:JamVM-PH    文件:ClasspathDesktopPeer.java   
/**
 * @return
 */
public static DesktopPeer getDesktop()
{
  //  check if we are under Gnome or KDE or anything else
  String desktopSession = System.getenv("GNOME_DESKTOP_SESSION_ID");
  if (desktopSession == null)
    { 
      desktopSession = System.getenv("KDE_FULL_SESSION");
      if (desktopSession != null)
        return kde;
    }
  else
    {
      return gnome;
    }

  // revert to this class for default values
  return classpath;
}
项目:classpath    文件:ClasspathDesktopPeer.java   
/**
 * @return
 */
public static DesktopPeer getDesktop()
{
  //  check if we are under Gnome or KDE or anything else
  String desktopSession = System.getenv("GNOME_DESKTOP_SESSION_ID");
  if (desktopSession == null)
    {
      desktopSession = System.getenv("KDE_FULL_SESSION");
      if (desktopSession != null)
        return kde;
    }
  else
    {
      return gnome;
    }

  // revert to this class for default values
  return classpath;
}
项目:javify    文件:ClasspathToolkit.java   
protected DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException
{
  if (GraphicsEnvironment.isHeadless())
    throw new HeadlessException();

  return ClasspathDesktopPeer.getDesktop();
}
项目:jvm-stm    文件:ClasspathToolkit.java   
protected DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException
{
  if (GraphicsEnvironment.isHeadless())
    throw new HeadlessException();

  return ClasspathDesktopPeer.getDesktop();
}
项目:JamVM-PH    文件:ClasspathToolkit.java   
protected DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException
{
  if (GraphicsEnvironment.isHeadless())
    throw new HeadlessException();

  return ClasspathDesktopPeer.getDesktop();
}
项目:classpath    文件:ClasspathToolkit.java   
protected DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException
{
  if (GraphicsEnvironment.isHeadless())
    throw new HeadlessException();

  return ClasspathDesktopPeer.getDesktop();
}
项目:incubator-netbeans    文件:UtilitiesTest.java   
@Override
protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException {
    throw new UnsupportedOperationException("Not supported yet.");
}
项目:GhostAWT    文件:GhostToolkit.java   
@Override
protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException {
    return new GDesktopPeer();
}
项目:javify    文件:Toolkit.java   
/**
 *
 * @param target
 * @return
 * @throws HeadlessException
 */
protected abstract DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException;
项目:jvm-stm    文件:Toolkit.java   
/**
 * 
 * @param target
 * @return
 * @throws HeadlessException
 */
protected abstract DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException;
项目:JamVM-PH    文件:Toolkit.java   
/**
 * 
 * @param target
 * @return
 * @throws HeadlessException
 */
protected abstract DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException;
项目:classpath    文件:Toolkit.java   
/**
 *
 * @param target
 * @return
 * @throws HeadlessException
 */
protected abstract DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException;