MCPcopy Create free account
hub / github.com/bither/bither-desktop-java / runRawURI

Method runRawURI

src/main/java/net/bither/Bither.java:160–189  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

158 }
159
160 private static void runRawURI(String args[]) {
161 for (String str : args) {
162 System.out.println("args:" + str);
163 }
164 String rawURI = null;
165 if (args != null && args.length > 0) {
166 rawURI = args[0];
167 }
168 //todo A single program
169 if (!ApplicationInstanceManager.registerInstance(rawURI)) {
170 // Instance already running.
171 System.out.println("Another instance of MultiBit is already running. Exiting.");
172 System.exit(0);
173 }
174 ApplicationInstanceManager.setApplicationInstanceListener(new ApplicationDataDirectoryLocator.ApplicationInstanceListener() {
175 @Override
176 public void newInstanceCreated(String rawURI) {
177 final String finalRawUri = rawURI;
178 Runnable doProcessCommandLine = new Runnable() {
179 @Override
180 public void run() {
181 processCommandLineURI(finalRawUri);
182 }
183 };
184
185 SwingUtilities.invokeLater(doProcessCommandLine);
186 }
187 });
188
189 }
190
191 private static void runProcessCommandLineURIWithArgs(String args[]) {
192 log.debug("Checking for Bitcoin URI on command line");

Callers 1

initControllerMethod · 0.95

Calls 2

registerInstanceMethod · 0.95

Tested by

no test coverage detected