Codota Logo
MIDletBridge.getMIDletContext
Code IndexAdd Codota to your IDE (free)

How to use
getMIDletContext
method
in
org.microemu.MIDletBridge

Best Java code snippets using org.microemu.MIDletBridge.getMIDletContext (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.microemu/microemu-javase-swing

  public void actionPerformed(ActionEvent e) {
    common.startLauncher(MIDletBridge.getMIDletContext());
  }
};
origin: org.microemu/microemu-javase

private static void register(MIDletThread thread) {
  MIDletContext midletContext = MIDletBridge.getMIDletContext();
  if (midletContext == null) {
    Logger.error("Creating thread with no MIDlet context", new Throwable());
    return;
  }
  thread.callLocation  = ThreadUtils.getCallLocation(MIDletThread.class.getName());
  Map threads = (Map)midlets.get(midletContext);
  if (threads == null) {
    threads = new WeakHashMap();
    midlets.put(midletContext, threads);
  }
  threads.put(thread, midletContext);
}

origin: org.microemu/microemu-javase

private static void register(MIDletTimer timer) {
  if (timer.midletContext == null) {
    timer.midletContext = MIDletBridge.getMIDletContext();
  }
  if (timer.midletContext == null) {
    Logger.error("Creating Timer with no MIDlet context", new Throwable());
    return;
  }
  Map timers = (Map) midlets.get(timer.midletContext);
  if (timers == null) {
    // Can't use WeakHashMap Timers are disposed by JVM
    timers = new HashMap();
    midlets.put(timer.midletContext, timers);
  }
  // Logger.debug("Register timer created from [" + timer.name + "]");
  timers.put(timer, timer.midletContext);
}
origin: org.microemu/microemu-javase

public void destroyMIDletContext(MIDletContext midletContext) {
  if ((midletContext != null) && (MIDletBridge.getMIDletContext() == midletContext) && !midletContext.isLauncher()) {
    Logger.debug("destroyMIDletContext");
  }
  MIDletThread.contextDestroyed(midletContext);
  synchronized (destroyNotify) {
    destroyNotify.notifyAll();
  }
}
origin: org.microemu/microemu-javase-swt

  public void handleEvent(Event e)
  {
    if (selectDeviceDialog.open() == SwtDialog.OK) {
      if (selectDeviceDialog.getSelectedDeviceEntry().equals(getDevice())) {
        return;
      }
      if (MIDletBridge.getCurrentMIDlet() != getLauncher()) {
        if (!SwtMessageDialog.openQuestion(shell,
            "Question?", "Changing device needs MIDlet to be restarted. All MIDlet data will be lost. Are you sure?")) { 
          return;
        }
      }
      setDevice(selectDeviceDialog.getSelectedDeviceEntry());
      if (MIDletBridge.getCurrentMIDlet() != getLauncher()) {
        try {
          startMidlet(MIDletBridge.getCurrentMIDlet().getClass(), MIDletBridge.getMIDletAccess());
        } catch (Exception ex) {
          System.err.println(ex);
        }
      } else {
        startLauncher(MIDletBridge.getMIDletContext());
      }
    }
  }    
};
origin: org.microemu/microemu-javase

MIDletContext context = startMidlet(midletClass, MIDletBridge.getMIDletAccess());
if (MIDletBridge.getMIDletContext() == context) {
  synchronized (destroyNotify) {
    try {
origin: org.microemu/microemu-javase

    Launcher.addMIDletEntry(new MIDletEntry(jadEntry.getName(), midletClass));
  startLauncher(MIDletBridge.getMIDletContext());
  setStatusBar("");
} finally {
origin: org.microemu/microemu-javase

startLauncher(MIDletBridge.getMIDletContext());
org.microemuMIDletBridgegetMIDletContext

Popular methods of MIDletBridge

  • getCurrentMIDlet
  • getMIDletAccess
  • setMicroEmulator
  • clear
  • destroyMIDletContext
  • getMicroEmulator
  • getRecordStoreManager
  • setThreadMIDletContext

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JFrame (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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