Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1913 - in development/laboratory/ide/eclipse/TransitPlugin: . META-INF bin src/net/dpml/transit src/transit

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: pneubauer AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1913 - in development/laboratory/ide/eclipse/TransitPlugin: . META-INF bin src/net/dpml/transit src/transit
  • Date: Mon, 28 Feb 2005 22:11:22 +0100

Author: pneubauer
Date: Mon Feb 28 22:11:20 2005
New Revision: 1913

Added:

development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitClasspathInitializer.java

development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitContainer.java
Removed:
development/laboratory/ide/eclipse/TransitPlugin/bin/

development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitProviderImpl.java
development/laboratory/ide/eclipse/TransitPlugin/src/transit/
Modified:
development/laboratory/ide/eclipse/TransitPlugin/META-INF/MANIFEST.MF
development/laboratory/ide/eclipse/TransitPlugin/plugin.xml
Log:
some more additions, it seems the URL problem can be worked around by making
every dep a ClasspathContainer that has the artifact URL encoded, and serves
the resolved local file as a classpath entry.


Modified:
development/laboratory/ide/eclipse/TransitPlugin/META-INF/MANIFEST.MF
==============================================================================
--- development/laboratory/ide/eclipse/TransitPlugin/META-INF/MANIFEST.MF
(original)
+++ development/laboratory/ide/eclipse/TransitPlugin/META-INF/MANIFEST.MF
Mon Feb 28 22:11:20 2005
@@ -12,5 +12,6 @@
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.jdt.launching,
- org.eclipse.debug.core
+ org.eclipse.debug.core,
+ org.eclipse.jdt.core
Eclipse-AutoStart: true

Modified: development/laboratory/ide/eclipse/TransitPlugin/plugin.xml
==============================================================================
--- development/laboratory/ide/eclipse/TransitPlugin/plugin.xml (original)
+++ development/laboratory/ide/eclipse/TransitPlugin/plugin.xml Mon Feb 28
22:11:20 2005
@@ -30,15 +30,15 @@
point="org.eclipse.core.runtime.preferences">
<initializer class="transitPlugin.preferences.PreferenceInitializer"/>
</extension>
+
+<extension point="org.eclipse.jdt.core.classpathContainerInitializer">

+ <classpathContainerInitializer
+ id="TRANSIT"
+ class="net.dpml.transit.TransitClasspathInitializer"/>

+ </extension>
+


- <extension
- point="org.eclipse.jdt.launching.classpathProviders">
- <classpathProvider
- class="net.dpml.transit.TransitProviderImpl"
- id="net.dpml.transit.ProviderId">
- </classpathProvider>
- </extension>




Added:
development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitClasspathInitializer.java
==============================================================================
--- (empty file)
+++
development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitClasspathInitializer.java
Mon Feb 28 22:11:20 2005
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package net.dpml.transit;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.ClasspathContainerInitializer;
+import org.eclipse.jdt.core.IClasspathContainer;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.internal.launching.JREContainer;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.JavaRuntime;
+
+public class TransitClasspathInitializer extends
ClasspathContainerInitializer
+{
+
+ private static final String TRANSIT = "TRANSIT";
+
+ public void initialize( IPath containerPath, IJavaProject project )
+ throws CoreException
+ {
+ System.out.println("containerPath: " + containerPath );
+ System.out.println("project: " + project );
+ int size = containerPath.segmentCount();
+ if (size > 0) {
+ if (containerPath.segment(0).equals(TRANSIT)) {
+ TransitContainer container = null;
+ container = new TransitContainer(containerPath);
+ JavaCore.setClasspathContainer(containerPath, new
IJavaProject[] {project}, new IClasspathContainer[] {container}, null);
+ }
+ }
+
+ }
+
+}

Added:
development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitContainer.java
==============================================================================
--- (empty file)
+++
development/laboratory/ide/eclipse/TransitPlugin/src/net/dpml/transit/TransitContainer.java
Mon Feb 28 22:11:20 2005
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package net.dpml.transit;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.IClasspathContainer;
+import org.eclipse.jdt.core.IClasspathEntry;
+
+public class TransitContainer implements IClasspathContainer
+{
+
+ private IPath path;
+
+ public TransitContainer( IPath containerPath )
+ {
+ this.path = containerPath;
+ }
+
+ public IClasspathEntry[] getClasspathEntries()
+ {
+ return null;
+ }
+
+ public String getDescription()
+ {
+ return "Myfirst container";
+ }
+
+ public int getKind()
+ {
+ return 0;
+ }
+
+ public IPath getPath()
+ {
+ return path;
+ }
+
+}



  • svn commit: r1913 - in development/laboratory/ide/eclipse/TransitPlugin: . META-INF bin src/net/dpml/transit src/transit, pneubauer, 02/28/2005

Archive powered by MHonArc 2.6.24.

Top of Page