forked from imagej/ImageJA
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v1.53m' of https://github.com/imagej/ImageJA
v1.53m
- Loading branch information
Showing
80 changed files
with
1,737 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[![](https://travis-ci.org/imagej/ImageJA.svg?branch=master)](https://travis-ci.org/imagej/ImageJA) | ||
|
||
ImageJA is a project that provides a clean [Git](https://imagej.net/Git) | ||
history of the [ImageJ 1.x](https://imagej.net/ImageJ1) project, with a proper | ||
`pom.xml` file so that it can be used with [Maven](https://imagej.net/Maven) | ||
without hassles. | ||
ImageJA is a project that provides a clean [Git](https://imagej.net/develop/git/) | ||
history of the original [ImageJ](https://imagej.net/software/imagej) project, | ||
with a proper `pom.xml` file so that it can be used with | ||
[Maven](https://imagej.net/develop/maven) without hassles. | ||
|
||
See the [ImageJA page](https://imagej.net/ImageJA) for details. | ||
See the [ImageJA page](https://imagej.net/libs/imageja) for details. | ||
|
||
## Editing this repository | ||
|
||
Because much of the content in this repository is generated automatically, depending on the type of change you want to make your edit should go in one of three places: | ||
|
||
* Source file content changes (e.g. bug fixes) should go to the [ImageJ1 repository](https://github.com/imagej/imagej1). | ||
* Source file *location* changes (e.g. moving a file to the correct package) go in the [IJ1-builds repository](https://github.com/imagej/ij1-builds). | ||
* Source file content changes (e.g. bug fixes) should go to the [imagej1 repository](https://github.com/imagej/imagej1). To submit changes in the ImageJ1 repository, see [Contributing#ImageJ](https://imagej.net/contribute/#imagej) on the Wiki. | ||
* Source file *location* changes (e.g. moving a file to the correct package) go in the [ij1-builds repository](https://github.com/imagej/ij1-builds). | ||
* Changes to the build structure (e.g. `pom.xml` updates) can be done directly in this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package ij.plugin; | ||
import ij.*; | ||
import ij.io.*; | ||
import java.awt.Desktop; | ||
import java.awt.desktop.*; | ||
import java.io.File; | ||
import java.util.Vector; | ||
|
||
/** This Mac-specific plugin is designed to handle the "About ImageJ" | ||
* command in the ImageJ menu, to open files dropped on ImageJ.app | ||
* and to open double-clicked files with creator code "imgJ". | ||
* With Java 9 or newer, we use java.awt.desktop instead of the | ||
* previous com.apple.eawt.* classes. | ||
* @author Alan Brooks | ||
*/ | ||
public class MacAdapter9 implements PlugIn, AboutHandler, OpenFilesHandler, QuitHandler, Runnable { | ||
static Vector<String> paths = new Vector<String>(); | ||
|
||
public void run(String arg) { | ||
Desktop dtop = Desktop.getDesktop(); | ||
dtop.setOpenFileHandler(this); | ||
dtop.setAboutHandler(this); | ||
dtop.setQuitHandler(this); | ||
} | ||
|
||
@Override | ||
public void handleAbout(AboutEvent e) { | ||
IJ.doCommand("About ImageJ..."); | ||
} | ||
|
||
@Override | ||
public void openFiles(OpenFilesEvent e) { | ||
for (File file: e.getFiles()) { | ||
paths.add(file.getPath()); | ||
Thread thread = new Thread(this, "Open"); | ||
thread.setPriority(thread.getPriority()-1); | ||
thread.start(); | ||
} | ||
} | ||
|
||
@Override | ||
public void handleQuitRequestWith(QuitEvent e, QuitResponse response) { | ||
new Executer("Quit", null); // works with the CommandListener | ||
} | ||
|
||
// Not adding preference handling | ||
// because we don't have the equivalent of app.setEnabledPreferencesMenu(true); | ||
// @Override | ||
// public void handlePreferences(PreferencesEvent e) { | ||
// IJ.error("The ImageJ preferences are in the Edit>Options menu."); | ||
// } | ||
|
||
public void run() { | ||
if (paths.size() > 0) { | ||
(new Opener()).openAndAddToRecent(paths.remove(0)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.