Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5545a49

Browse files
author
zhourenjian
committed
Adding J2S_STORE library
1 parent460fa31 commit5545a49

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

‎sources/net.sf.j2s.ajax/src/net/sf/j2s/ajax/AJAXVariableInitializer.java‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
importorg.eclipse.core.resources.IWorkspaceDescription;
1919
importorg.eclipse.core.resources.ResourcesPlugin;
2020
importorg.eclipse.core.runtime.CoreException;
21+
importorg.eclipse.core.runtime.FileLocator;
2122
importorg.eclipse.core.runtime.IPath;
2223
importorg.eclipse.core.runtime.IProgressMonitor;
24+
importorg.eclipse.core.runtime.IStatus;
2325
importorg.eclipse.core.runtime.NullProgressMonitor;
2426
importorg.eclipse.core.runtime.Path;
25-
importorg.eclipse.core.runtime.Platform;
27+
importorg.eclipse.core.runtime.Status;
2628
importorg.eclipse.jdt.core.ClasspathVariableInitializer;
2729
importorg.eclipse.jdt.core.JavaCore;
28-
importorg.eclipse.jdt.internal.launching.LaunchingPlugin;
2930

3031
/**
3132
* @author zhou renjian
@@ -49,7 +50,7 @@ public void initialize(String variable) {
4950
URLstarterURL =AjaxPlugin.getDefault().getBundle().getEntry(File.separator);
5051
Stringroot =".";//$NON-NLS-1$
5152
try {
52-
root =Platform.asLocalURL(starterURL).getFile();
53+
root =FileLocator.toFileURL(starterURL).getFile();
5354
}catch (IOExceptione1) {
5455
e1.printStackTrace();
5556
}
@@ -61,6 +62,8 @@ public void initialize(String variable) {
6162
newPath =Path.fromPortableString(root +"/ajaxrpc.jar");
6263
}elseif ("AJAX_PIPE".equals(variable)) {
6364
newPath =Path.fromPortableString(root +"/ajaxpipe.jar");
65+
}elseif ("AJAX_STORE".equals(variable)) {
66+
newPath =Path.fromPortableString(root +"/ajaxstore.jar");
6467
}elseif ("J2S_ANNOTATION".equals(variable)) {
6568
newPath =Path.fromPortableString(root +"/j2stag.jar");
6669
}elseif ("AJAX_CORE_SRC".equals(variable)) {
@@ -71,6 +74,8 @@ public void initialize(String variable) {
7174
newPath =Path.fromPortableString(root +"/ajaxrpcsrc.zip");
7275
}elseif ("AJAX_PIPE_SRC".equals(variable)) {
7376
newPath =Path.fromPortableString(root +"/ajaxpipesrc.zip");
77+
}elseif ("AJAX_STORE_SRC".equals(variable)) {
78+
newPath =Path.fromPortableString(root +"/ajaxstoresrc.zip");
7479
}elseif ("J2S_ANNOTATION_SRC".equals(variable)) {
7580
newPath =Path.fromPortableString(root +"/j2stagsrc.zip");
7681
}
@@ -87,13 +92,15 @@ public void initialize(String variable) {
8792
setAutobuild(workspace,false);
8893
setJREVariable(newPath,variable);
8994
}catch (CoreExceptionce) {
90-
LaunchingPlugin.log(ce);
95+
AjaxPlugin.getDefault().getLog().log(newStatus(IStatus.ERROR,
96+
"net.sf.j2s.ajax",IStatus.ERROR,ce.getMessage(),ce));
9197
return;
9298
}finally {
9399
try {
94100
setAutobuild(workspace,wasAutobuild);
95101
}catch (CoreExceptionce) {
96-
LaunchingPlugin.log(ce);
102+
AjaxPlugin.getDefault().getLog().log(newStatus(IStatus.ERROR,
103+
"net.sf.j2s.ajax",IStatus.ERROR,ce.getMessage(),ce));
97104
}
98105
}
99106
//}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp