niclas 2003/12/17 03:01:59
Modified: ide/org.apache.avalon.ide.eclipse.repository .classpath
.project plugin.xml
ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/preferences
AddRepositoryDialog.java
ide/org.apache.avalon.ide.repository.testrepo .classpath
Log:
Probably back to square one now.
Revision Changes Path
1.5 +1 -1
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.classpath
Index: .classpath
===================================================================
RCS file:
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.classpath,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .classpath 17 Dec 2003 10:34:11 -0000 1.4
+++ .classpath 17 Dec 2003 11:01:59 -0000 1.5
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java"/>
+ <classpathentry exported="true" kind="lib" path="repository-tools.jar"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="src" path="/org.apache.avalon.ide.repository"/>
<classpathentry kind="output" path="build"/>
</classpath>
1.4 +0 -1
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.project
Index: .project
===================================================================
RCS file:
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.project,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .project 17 Dec 2003 10:13:53 -0000 1.3
+++ .project 17 Dec 2003 11:01:59 -0000 1.4
@@ -3,7 +3,6 @@
<name>org.apache.avalon.ide.eclipse.repository</name>
<comment></comment>
<projects>
- <project>org.apache.avalon.ide.repository</project>
</projects>
<buildSpec>
<buildCommand>
1.4 +3 -1
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/plugin.xml
Index: plugin.xml
===================================================================
RCS file:
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/plugin.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- plugin.xml 1 Dec 2003 21:14:38 -0000 1.3
+++ plugin.xml 17 Dec 2003 11:01:59 -0000 1.4
@@ -7,7 +7,9 @@
class="org.apache.avalon.ide.eclipse.repository.RepositoryPlugin">
<runtime>
- <library name="repository-plugin.jar"/>
+ <library name="repository-tools.jar">
+ <export name="*"/>
+ </library>
</runtime>
<requires>
<import plugin="org.eclipse.core.resources"/>
1.3 +17 -14
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/preferences/AddRepositoryDialog.java
Index: AddRepositoryDialog.java
===================================================================
RCS file:
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/preferences/AddRepositoryDialog.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AddRepositoryDialog.java 2 Dec 2003 10:15:17 -0000 1.2
+++ AddRepositoryDialog.java 17 Dec 2003 11:01:59 -0000 1.3
@@ -123,20 +123,23 @@
RepositoryTypeRegistry reg =
RepositoryPlugin.getDefault().getRepositoryTypeRegistry();
RepositorySchemeDescriptor[] urns = reg.getRegisteredURNs();
- m_Selected = urns[0];
- for (int i = 0; i < urns.length; i++)
- {
- Button b1 = new Button(group, SWT.RADIO);
- GridData gd = new GridData();
- gd.grabExcessHorizontalSpace = true;
- gd.grabExcessVerticalSpace = true;
- b1.setLayoutData(gd);
- b1.setText(urns[i].getName());
- b1.setData(urns[i]);
- b1.setToolTipText(urns[i].getDescription());
- b1.addSelectionListener( this );
- if (i == 0)
- b1.setSelection(true);
+ if( urns.length > 0 )
+ {
+ m_Selected = urns[0];
+ for (int i = 0; i < urns.length; i++)
+ {
+ Button b1 = new Button(group, SWT.RADIO);
+ GridData gd = new GridData();
+ gd.grabExcessHorizontalSpace = true;
+ gd.grabExcessVerticalSpace = true;
+ b1.setLayoutData(gd);
+ b1.setText(urns[i].getName());
+ b1.setData(urns[i]);
+ b1.setToolTipText(urns[i].getDescription());
+ b1.addSelectionListener( this );
+ if (i == 0)
+ b1.setSelection(true);
+ }
}
return panel;
}
1.3 +1 -1
avalon-sandbox/ide/org.apache.avalon.ide.repository.testrepo/.classpath
Index: .classpath
===================================================================
RCS file:
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.repository.testrepo/.classpath,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .classpath 17 Dec 2003 10:34:12 -0000 1.2
+++ .classpath 17 Dec 2003 11:01:59 -0000 1.3
@@ -32,5 +32,5 @@
<classpathentry exported="true" kind="src"
path="/org.apache.avalon.ide.repository"/>
<classpathentry kind="src" path="src/java"/>
<classpathentry exported="true" kind="src"
path="/org.apache.avalon.ide.eclipse.repository"/>
- <classpathentry exported="true" kind="output" path="build"/>
+ <classpathentry kind="output" path="build"/>
</classpath>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]