Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
d07d5c28
Commit
d07d5c28
authored
Dec 03, 2014
by
Luc Deschenaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix exception running Eyesis_Correction plugin from eclipse
parent
1dfca84a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Eyesis_Correction.java
src/main/java/Eyesis_Correction.java
+6
-2
No files found.
src/main/java/Eyesis_Correction.java
View file @
d07d5c28
...
...
@@ -317,7 +317,11 @@ private Panel panel1,panel2,panel3,panel4,panel5,panel5a, panel6,panel7,panelPos
public
void
run
(
String
arg
)
{
String
options
=
Macro
.
getOptions
();
prefsPath
=
Macro
.
getValue
(
options
,
"prefs"
,
Prefs
.
getPrefsDir
()+
Prefs
.
getFileSeparator
()+
"Eyesis_Correction.xml"
);
try
{
prefsPath
=
Macro
.
getValue
(
options
,
"prefs"
,
Prefs
.
getPrefsDir
()+
Prefs
.
getFileSeparator
()+
"Eyesis_Correction.xml"
);
}
catch
(
Exception
e
)
{
prefsPath
=
Prefs
.
getPrefsDir
()+
Prefs
.
getFileSeparator
()+
"Eyesis_Correction.xml"
;
}
if
(
IJ
.
versionLessThan
(
"1.43q"
))
return
;
if
(
instance
!=
null
)
{
instance
.
toFront
();
...
...
@@ -5689,7 +5693,7 @@ G= Y +Pr*(- 2*Kr*(1-Kr))/Kg + Pb*(-2*Kb*(1-Kb))/Kg
*/
public
static
void
main
(
String
[]
args
)
{
// set the plugins.dir property to make the plugin appear in the Plugins menu
Class
<?>
clazz
=
Aberration_Calibra
tion
.
class
;
Class
<?>
clazz
=
Eyesis_Correc
tion
.
class
;
String
url
=
clazz
.
getResource
(
"/"
+
clazz
.
getName
().
replace
(
'.'
,
'/'
)
+
".class"
).
toString
();
String
pluginsDir
=
url
.
substring
(
5
,
url
.
length
()
-
clazz
.
getName
().
length
()
-
6
);
System
.
setProperty
(
"plugins.dir"
,
pluginsDir
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment