module RPicSim::Mplab
@api private
Constants
- DocumentLocator
The com.microchip.mplab.libs.MPLABDocumentLocator.MPLABDocumentLocator class from MPLAB X.
- Lookup
- Mdbcore
Public Class Methods
mute_exceptions() { || ... }
click to toggle source
Mutes a particular type of exception printed by NetBeans, calls the given block, then unmutes it.
# File lib/rpicsim/mplab.rb, line 34 def self.mute_exceptions log = java.util.logging.Logger.getLogger('org.openide.util.Exceptions') level = log.getLevel begin log.setLevel(java.util.logging.Level::OFF) yield ensure log.setLevel(level) end end
mute_stdout() { || ... }
click to toggle source
Mutes the standard output, calls the given block, and then unmutes it.
# File lib/rpicsim/mplab.rb, line 24 def self.mute_stdout orig = java.lang.System.out java.lang.System.setOut(java.io.PrintStream.new(NullOutputStream.new)) yield ensure java.lang.System.setOut(orig) end
version()
click to toggle source
# File lib/rpicsim/mplab.rb, line 7 def self.version MplabLoader.instance.mplab_version end