X Tutup
Skip to content

Commit 2ebbfa2

Browse files
author
jossonsmith
committed
Commit original org.eclipse.core.runtime sources for JFace
1 parent 9fb0838 commit 2ebbfa2

File tree

198 files changed

+41079
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+41079
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry combineaccessrules="false" kind="src" path="/net.sf.j2s.java.org.eclipse.osgi"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Java2Script Configuration
2+
#Sat Jan 20 01:43:44 CST 2007
3+
j2s.resources.list=../../plugins/net.sf.j2s.lib_1.0.0/j2slib/java.runtime.j2x,/net.sf.j2s.java.org.eclipse.osgi/.j2s,bin/org/osgi/service/prefs/PreferencesService.js,bin/org/osgi/service/prefs/Preferences.js,bin/org/osgi/service/prefs/BackingStoreException.js,bin/org/eclipse/core/runtime/preferences/PreferenceModifyListener.js,bin/org/eclipse/core/runtime/preferences/PreferenceFilterEntry.js,bin/org/eclipse/core/runtime/preferences/InstanceScope.js,bin/org/eclipse/core/runtime/preferences/IScopeContext.js,bin/org/eclipse/core/runtime/preferences/IScope.js,bin/org/eclipse/core/runtime/preferences/IPreferencesService.js,bin/org/eclipse/core/runtime/preferences/IPreferenceNodeVisitor.js,bin/org/eclipse/core/runtime/preferences/IPreferenceFilter.js,bin/org/eclipse/core/runtime/preferences/IExportedPreferences.js,bin/org/eclipse/core/runtime/preferences/IEclipsePreferences.js,bin/org/eclipse/core/runtime/preferences/DefaultScope.js,bin/org/eclipse/core/runtime/preferences/ConfigurationScope.js,bin/org/eclipse/core/runtime/preferences/AbstractPreferenceInitializer.js,bin/org/eclipse/core/runtime/jobs/ProgressProvider.js,bin/org/eclipse/core/runtime/jobs/MultiRule.js,bin/org/eclipse/core/runtime/jobs/LockListener.js,bin/org/eclipse/core/runtime/jobs/JobChangeAdapter.js,bin/org/eclipse/core/runtime/jobs/Job.js,bin/org/eclipse/core/runtime/jobs/ISchedulingRule.js,bin/org/eclipse/core/runtime/jobs/ILock.js,bin/org/eclipse/core/runtime/jobs/IJobStatus.js,bin/org/eclipse/core/runtime/jobs/IJobManager.js,bin/org/eclipse/core/runtime/jobs/IJobChangeListener.js,bin/org/eclipse/core/runtime/jobs/IJobChangeEvent.js,bin/org/eclipse/core/runtime/dynamichelpers/IFilter.js,bin/org/eclipse/core/runtime/dynamichelpers/IExtensionTracker.js,bin/org/eclipse/core/runtime/dynamichelpers/IExtensionChangeHandler.js,bin/org/eclipse/core/runtime/dynamichelpers/ExtensionTracker.js,bin/org/eclipse/core/runtime/content/XMLRootElementContentDescriber.js,bin/org/eclipse/core/runtime/content/ITextContentDescriber.js,bin/org/eclipse/core/runtime/content/IContentTypeSettings.js,bin/org/eclipse/core/runtime/content/IContentTypeMatcher.js,bin/org/eclipse/core/runtime/content/IContentTypeManager.js,bin/org/eclipse/core/runtime/content/IContentType.js,bin/org/eclipse/core/runtime/content/IContentDescription.js,bin/org/eclipse/core/runtime/content/IContentDescriber.js,bin/org/eclipse/core/runtime/content/BinarySignatureDescriber.js,bin/org/eclipse/core/runtime/SubProgressMonitor.js,bin/org/eclipse/core/runtime/Status.js,bin/org/eclipse/core/runtime/QualifiedName.js,bin/org/eclipse/core/runtime/ProgressMonitorWrapper.js,bin/org/eclipse/core/runtime/Preferences.js,bin/org/eclipse/core/runtime/PluginVersionIdentifier.js,bin/org/eclipse/core/runtime/Plugin.js,bin/org/eclipse/core/runtime/PlatformObject.js,bin/org/eclipse/core/runtime/Platform.js,bin/org/eclipse/core/runtime/PerformanceStats.js,bin/org/eclipse/core/runtime/Path.js,bin/org/eclipse/core/runtime/OperationCanceledException.js,bin/org/eclipse/core/runtime/NullProgressMonitor.js,bin/org/eclipse/core/runtime/MultiStatus.js,bin/org/eclipse/core/runtime/InvalidRegistryObjectException.js,bin/org/eclipse/core/runtime/IStatus.js,bin/org/eclipse/core/runtime/ISafeRunnable.js,bin/org/eclipse/core/runtime/IRegistryChangeListener.js,bin/org/eclipse/core/runtime/IRegistryChangeEvent.js,bin/org/eclipse/core/runtime/IProgressMonitorWithBlocking.js,bin/org/eclipse/core/runtime/IProgressMonitor.js,bin/org/eclipse/core/runtime/IProductProvider.js,bin/org/eclipse/core/runtime/IProduct.js,bin/org/eclipse/core/runtime/IPluginRegistry.js,bin/org/eclipse/core/runtime/IPluginPrerequisite.js,bin/org/eclipse/core/runtime/IPluginDescriptor.js,bin/org/eclipse/core/runtime/IPlatformRunnable.js,bin/org/eclipse/core/runtime/IPath.js,bin/org/eclipse/core/runtime/ILogListener.js,bin/org/eclipse/core/runtime/ILog.js,bin/org/eclipse/core/runtime/ILibrary.js,bin/org/eclipse/core/runtime/IExtensionRegistry.js,bin/org/eclipse/core/runtime/IExtensionPoint.js,bin/org/eclipse/core/runtime/IExtensionDelta.js,bin/org/eclipse/core/runtime/IExtension.js,bin/org/eclipse/core/runtime/IExecutableExtensionFactory.js,bin/org/eclipse/core/runtime/IExecutableExtension.js,bin/org/eclipse/core/runtime/IConfigurationElement.js,bin/org/eclipse/core/runtime/IBundleGroupProvider.js,bin/org/eclipse/core/runtime/IBundleGroup.js,bin/org/eclipse/core/runtime/IAdapterManager.js,bin/org/eclipse/core/runtime/IAdapterFactory.js,bin/org/eclipse/core/runtime/IAdaptable.js,bin/org/eclipse/core/runtime/CoreException.js,bin/org/eclipse/core/internal/runtime/URLTool.js,bin/org/eclipse/core/internal/runtime/ResourceTranslator.js,bin/org/eclipse/core/internal/runtime/Product.js,bin/org/eclipse/core/internal/runtime/Policy.js,bin/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.js,bin/org/eclipse/core/internal/runtime/PlatformURLMetaConnection.js,bin/org/eclipse/core/internal/runtime/PlatformURLFragmentConnection.js,bin/org/eclipse/core/internal/runtime/PlatformURLConfigConnection.js,bin/org/eclipse/core/internal/runtime/PlatformLogWriter.js,bin/org/eclipse/core/internal/runtime/PlatformActivator.js,bin/org/eclipse/core/internal/runtime/PerformanceStatsProcessor.js,bin/org/eclipse/core/internal/runtime/ObjectMap.js,bin/org/eclipse/core/internal/runtime/Messages.js,bin/org/eclipse/core/internal/runtime/Log.js,bin/org/eclipse/core/internal/runtime/ListenerList.js,bin/org/eclipse/core/internal/runtime/InternalPlatform.js,bin/org/eclipse/core/internal/runtime/HashMapOfString.js,bin/org/eclipse/core/internal/runtime/FindSupport.js,bin/org/eclipse/core/internal/runtime/DevClassPathHelper.js,bin/org/eclipse/core/internal/runtime/DataArea.js,bin/org/eclipse/core/internal/runtime/CompatibilityHelper.js,bin/org/eclipse/core/internal/runtime/CipherOutputStream.js,bin/org/eclipse/core/internal/runtime/CipherInputStream.js,bin/org/eclipse/core/internal/runtime/Cipher.js,bin/org/eclipse/core/internal/runtime/AuthorizationHandler.js,bin/org/eclipse/core/internal/runtime/AuthorizationDatabase.js,bin/org/eclipse/core/internal/runtime/AssertionFailedException.js,bin/org/eclipse/core/internal/runtime/Assert.js,bin/org/eclipse/core/internal/runtime/AdapterManager.js,bin/org/eclipse/core/internal/runtime/AdapterFactoryProxy.js,bin/org/eclipse/core/internal/registry/ThirdLevelConfigurationElementHandle.js,bin/org/eclipse/core/internal/registry/TemporaryObjectManager.js,bin/org/eclipse/core/internal/registry/TableWriter.js,bin/org/eclipse/core/internal/registry/TableReader.js,bin/org/eclipse/core/internal/registry/RegistryObjectManager.js,bin/org/eclipse/core/internal/registry/RegistryObject.js,bin/org/eclipse/core/internal/registry/RegistryDelta.js,bin/org/eclipse/core/internal/registry/RegistryChangeEvent.js,bin/org/eclipse/core/internal/registry/ReferenceMap.js,bin/org/eclipse/core/internal/registry/ReferenceHashSet.js,bin/org/eclipse/core/internal/registry/ReadWriteMonitor.js,bin/org/eclipse/core/internal/registry/KeyedHashSet.js,bin/org/eclipse/core/internal/registry/KeyedElement.js,bin/org/eclipse/core/internal/registry/IObjectManager.js,bin/org/eclipse/core/internal/registry/HashtableOfStringAndInt.js,bin/org/eclipse/core/internal/registry/HashtableOfInt.js,bin/org/eclipse/core/internal/registry/Handle.js,bin/org/eclipse/core/internal/registry/ExtensionsParser.js,bin/org/eclipse/core/internal/registry/ExtensionRegistry.js,bin/org/eclipse/core/internal/registry/ExtensionPointHandle.js,bin/org/eclipse/core/internal/registry/ExtensionPoint.js,bin/org/eclipse/core/internal/registry/ExtensionHandle.js,bin/org/eclipse/core/internal/registry/ExtensionDelta.js,bin/org/eclipse/core/internal/registry/Extension.js,bin/org/eclipse/core/internal/registry/EclipseBundleListener.js,bin/org/eclipse/core/internal/registry/Contribution.js,bin/org/eclipse/core/internal/registry/ConfigurationElementHandle.js,bin/org/eclipse/core/internal/registry/ConfigurationElement.js,bin/org/eclipse/core/internal/preferences/StringPool.js,bin/org/eclipse/core/internal/preferences/RootPreferences.js,bin/org/eclipse/core/internal/preferences/PreferencesService.js,bin/org/eclipse/core/internal/preferences/PreferenceForwarder.js,bin/org/eclipse/core/internal/preferences/LookupOrder.js,bin/org/eclipse/core/internal/preferences/ListenerRegistry.js,bin/org/eclipse/core/internal/preferences/InstancePreferences.js,bin/org/eclipse/core/internal/preferences/ExportedPreferences.js,bin/org/eclipse/core/internal/preferences/EclipsePreferences.js,bin/org/eclipse/core/internal/preferences/DefaultPreferences.js,bin/org/eclipse/core/internal/preferences/ConfigurationPreferences.js,bin/org/eclipse/core/internal/preferences/Base64.js,bin/org/eclipse/core/internal/preferences/AbstractScope.js,bin/org/eclipse/core/internal/jobs/WorkerPool.js,bin/org/eclipse/core/internal/jobs/Worker.js,bin/org/eclipse/core/internal/jobs/ThreadJob.js,bin/org/eclipse/core/internal/jobs/Semaphore.js,bin/org/eclipse/core/internal/jobs/Queue.js,bin/org/eclipse/core/internal/jobs/OrderedLock.js,bin/org/eclipse/core/internal/jobs/LockManager.js,bin/org/eclipse/core/internal/jobs/JobStatus.js,bin/org/eclipse/core/internal/jobs/JobQueue.js,bin/org/eclipse/core/internal/jobs/JobManager.js,bin/org/eclipse/core/internal/jobs/JobListeners.js,bin/org/eclipse/core/internal/jobs/JobChangeEvent.js,bin/org/eclipse/core/internal/jobs/InternalJob.js,bin/org/eclipse/core/internal/jobs/ImplicitJobs.js,bin/org/eclipse/core/internal/jobs/DeadlockDetector.js,bin/org/eclipse/core/internal/jobs/Deadlock.js,bin/org/eclipse/core/internal/content/XMLRootHandler.js,bin/org/eclipse/core/internal/content/XMLContentDescriber.js,bin/org/eclipse/core/internal/content/Util.js,bin/org/eclipse/core/internal/content/TextContentDescriber.js,bin/org/eclipse/core/internal/content/LowLevelIOException.js,bin/org/eclipse/core/internal/content/LazyReader.js,bin/org/eclipse/core/internal/content/LazyInputStream.js,bin/org/eclipse/core/internal/content/ILazySource.js,bin/org/eclipse/core/internal/content/IContentTypeInfo.js,bin/org/eclipse/core/internal/content/FileSpec.js,bin/org/eclipse/core/internal/content/DefaultDescription.js,bin/org/eclipse/core/internal/content/ContentTypeVisitor.js,bin/org/eclipse/core/internal/content/ContentTypeSettings.js,bin/org/eclipse/core/internal/content/ContentTypeMatcher.js,bin/org/eclipse/core/internal/content/ContentTypeManager.js,bin/org/eclipse/core/internal/content/ContentTypeHandler.js,bin/org/eclipse/core/internal/content/ContentTypeCatalog.js,bin/org/eclipse/core/internal/content/ContentTypeBuilder.js,bin/org/eclipse/core/internal/content/ContentType.js,bin/org/eclipse/core/internal/content/ContentDescription.js,bin/org/eclipse/core/internal/content/BasicDescription.js,bin/org/eclipse/core/internal/boot/PlatformURLHandler.js,bin/org/eclipse/core/internal/boot/PlatformURLConnection.js,bin/org/eclipse/core/internal/boot/PlatformURLBaseConnection.js
4+
j2s.output.path=bin
5+
j2s.abandoned.resources.list=
6+
j2s.compiler.status=enable
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>net.sf.j2s.java.org.eclipse.core.runtime</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>net.sf.j2s.core.java2scriptbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
</natures>
22+
</projectDescription>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2000, 2005 IBM Corporation and others.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* IBM Corporation - initial API and implementation
10+
*******************************************************************************/
11+
package org.eclipse.core.internal.boot;
12+
13+
import java.io.IOException;
14+
import java.net.URL;
15+
import org.eclipse.core.internal.runtime.Messages;
16+
import org.eclipse.osgi.util.NLS;
17+
18+
/**
19+
* Platform URL support
20+
* platform:/base/ maps to platform installation location
21+
*/
22+
public class PlatformURLBaseConnection extends PlatformURLConnection {
23+
24+
// platform/ protocol
25+
public static final String PLATFORM = "base"; //$NON-NLS-1$
26+
public static final String PLATFORM_URL_STRING = PlatformURLHandler.PROTOCOL + PlatformURLHandler.PROTOCOL_SEPARATOR + "/" + PLATFORM + "/"; //$NON-NLS-1$ //$NON-NLS-2$
27+
28+
private static URL installURL;
29+
30+
public PlatformURLBaseConnection(URL url) {
31+
super(url);
32+
}
33+
34+
protected boolean allowCaching() {
35+
return true;
36+
}
37+
38+
protected URL resolve() throws IOException {
39+
String spec = url.getFile().trim();
40+
if (spec.startsWith("/")) //$NON-NLS-1$
41+
spec = spec.substring(1);
42+
if (!spec.startsWith(PLATFORM + "/")) { //$NON-NLS-1$
43+
String message = NLS.bind(Messages.url_badVariant, url);
44+
throw new IOException(message);
45+
}
46+
return spec.length() == PLATFORM.length() + 1 ? installURL : new URL(installURL, spec.substring(PLATFORM.length() + 1));
47+
}
48+
49+
public static void startup(URL url) {
50+
// register connection type for platform:/base/ handling
51+
if (installURL != null)
52+
return;
53+
installURL = url;
54+
PlatformURLHandler.register(PLATFORM, PlatformURLBaseConnection.class);
55+
}
56+
}

0 commit comments

Comments
 (0)
X Tutup