Codota Logo
Config.getDeviceEntries
Code IndexAdd Codota to your IDE (free)

How to use
getDeviceEntries
method
in
org.microemu.app.Config

Best Java code snippets using org.microemu.app.Config.getDeviceEntries (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.microemu/microemu-javase-swt

public SwtSelectDeviceDialog(Shell parent, EmulatorContext emulatorContext)
{
  super(parent);
  this.emulatorContext = emulatorContext;  
   
  Vector devs = Config.getDeviceEntries();
  for (int i = 0; i < devs.size(); i++) {
    DeviceEntry entry = (DeviceEntry) devs.elementAt(i);
    if (entry.isDefaultDevice()) {
      selectedEntry = entry;
    }
  }
}
origin: org.microemu/microemu-javase-swing

public SwingSelectDevicePanel(EmulatorContext emulatorContext) {
  this.emulatorContext = emulatorContext;
  setLayout(new BorderLayout());
  setBorder(new TitledBorder(new EtchedBorder(), "Installed devices"));
  lsDevicesModel = new DefaultListModel();
  lsDevices = new JList(lsDevicesModel);
  lsDevices.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  lsDevices.addListSelectionListener(listSelectionListener);
  spDevices = new JScrollPane(lsDevices);
  add(spDevices, BorderLayout.CENTER);
  JPanel panel = new JPanel();
  btAdd = new JButton("Add...");
  btAdd.addActionListener(btAddListener);
  btRemove = new JButton("Remove");
  btRemove.addActionListener(btRemoveListener);
  btDefault = new JButton("Set as default");
  btDefault.addActionListener(btDefaultListener);
  panel.add(btAdd);
  panel.add(btRemove);
  panel.add(btDefault);
  add(panel, BorderLayout.SOUTH);
  for (Enumeration e = Config.getDeviceEntries().elements(); e.hasMoreElements();) {
    DeviceEntry entry = (DeviceEntry) e.nextElement();
    lsDevicesModel.addElement(entry);
    if (entry.isDefaultDevice()) {
      lsDevices.setSelectedValue(entry, true);
    }
  }
}
origin: org.microemu/microemu-javase-swt

btDefault.addListener(SWT.Selection, btDefaultListener);
Vector devs = Config.getDeviceEntries();
deviceModel = new Vector();
for (int i = 0; i < devs.size(); i++) {
origin: org.microemu/microemu-javase

public static void addDeviceEntry(DeviceEntry entry) {
  for (Enumeration en = getDeviceEntries().elements(); en.hasMoreElements();) {
    DeviceEntry test = (DeviceEntry) en.nextElement();
    if (test.getDescriptorLocation().equals(entry.getDescriptorLocation())) {
      return;
    }
  }
  XMLElement devicesXml = configXml.getChildOrNew("devices");
  XMLElement deviceXml = devicesXml.addChild("device");
  if (entry.isDefaultDevice()) {
    deviceXml.setAttribute("default", "true");
  }
  deviceXml.addChild("name", entry.getName());
  deviceXml.addChild("filename", entry.getFileName());
  deviceXml.addChild("descriptor", entry.getDescriptorLocation());
  saveConfig();
}
origin: org.microemu/microemu-javase

for (Enumeration e = getDeviceEntries().elements(); e.hasMoreElements();) {
  DeviceEntry entry = (DeviceEntry) e.nextElement();
  if (!entry.canRemove()) {
org.microemu.appConfiggetDeviceEntries

Popular methods of Config

  • addDeviceEntry
  • getConfigPath
  • removeDeviceEntry
  • changeDeviceEntry
  • getRecentDirectory
  • getUrlsMRU
  • getWindow
  • loadConfig
  • setRecentDirectory
  • setWindow
  • createDefaultConfigXml
  • getDeviceEntryDisplaySize
  • createDefaultConfigXml,
  • getDeviceEntryDisplaySize,
  • getEmulatorID,
  • getExtensions,
  • getRecordStoreManagerClassName,
  • initMEHomePath,
  • initSystemProperties,
  • isLogConsoleLocationEnabled,
  • isWindowOnStart

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now