Author: rob.stryker(a)jboss.com
Date: 2007-08-17 17:40:15 -0400 (Fri, 17 Aug 2007)
New Revision: 3230
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE13ClasspathContainerPage.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE14ClasspathContainerPage.java
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml
Log:
Initial re-implementation / cleanup of old j2ee libraries.
Preparation for fixing JBIDE-419
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml 2007-08-17 21:40:11
UTC (rev 3229)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml 2007-08-17 21:40:15
UTC (rev 3230)
@@ -7,5 +7,20 @@
class="org.jboss.ide.eclipse.as.classpath.ui.ejb3.JBossEJB3LibrariesPage"
id="org.jboss.ide.eclipse.as.classpath.ui.ejb3.containerPage"
name="JBoss EJB3 Libraries"/>
- </extension>
+ </extension>
+
+ <extension
+ point="org.eclipse.jdt.ui.classpathContainerPage">
+ <classpathContainerPage
+ name="1.3 libs"
+
class="org.jboss.ide.eclipse.as.classpath.ui.jee.J2EE13ClasspathContainerPage"
+ id="org.jboss.ide.eclipse.as.classpath.core.j2ee-1.3">
+ </classpathContainerPage>
+ <classpathContainerPage
+ name="1.4 libs"
+
class="org.jboss.ide.eclipse.as.classpath.ui.jee.J2EE14ClasspathContainerPage"
+ id="org.jboss.ide.eclipse.as.classpath.core.j2ee-1.4">
+ </classpathContainerPage>
+ </extension>
+
</plugin>
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/ClasspathContainerPage.java 2007-08-17
21:40:15 UTC (rev 3230)
@@ -0,0 +1,123 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.as.classpath.ui.jee;
+
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.internal.ui.JavaPluginImages;
+import org.eclipse.jdt.ui.wizards.IClasspathContainerPage;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+
+/**
+ * Description of the Class
+ *
+ * @author Laurent Etiemble
+ * @version $Revision: 1420 $
+ */
+public abstract class ClasspathContainerPage extends WizardPage implements
+ IClasspathContainerPage {
+ private final static String PAGE_NAME = ClasspathContainerPage.class
+ .getName();
+
+ protected String containerId;
+ protected String description;
+ public ClasspathContainerPage(String id, String description) {
+ super(PAGE_NAME);
+ this.containerId = id;
+ this.description = description;
+ this.setTitle("Title");//$NON-NLS-1$
+ this.setDescription(description);//$NON-NLS-1$
+ this.setImageDescriptor(JavaPluginImages.DESC_WIZBAN_ADD_LIBRARY);
+ }
+
+ /**
+ * Description of the Method
+ *
+ * @param parent
+ * Description of the Parameter
+ */
+ public void createControl(Composite parent) {
+ Composite top = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout(1, true);
+ top.setLayout(layout);
+
+ Label lbl = new Label(top, SWT.NONE);
+ lbl
+ .setText("ClasspathContainerPage.text.start" +
this.getClasspathEntryDescription()
+ + ("ClasspathContainerPage.text.end"));//$NON-NLS-1$ //$NON-NLS-2$
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ lbl.setLayoutData(gd);
+
+ this.setControl(top);
+ }
+
+ /**
+ * Description of the Method
+ *
+ * @return Description of the Return Value
+ */
+ public boolean finish() {
+ return true;
+ }
+
+ /**
+ * Gets the selection attribute of the ClasspathContainerPage object
+ *
+ * @return The selection value
+ */
+ public IClasspathEntry getSelection() {
+ return null;
+ }
+
+ /**
+ * Sets the selection attribute of the ClasspathContainerPage object
+ *
+ * @param containerEntry
+ * The new selection value
+ */
+ public void setSelection(IClasspathEntry containerEntry) {
+ }
+
+ /**
+ * Gets the classpathContainerId attribute of the ClasspathContainerPage
+ * object
+ *
+ * @return The classpathContainerId value
+ */
+ protected String getClasspathContainerId() {
+ return containerId;
+ }
+
+ /**
+ * Gets the classpathEntryDescription attribute of the
+ * ClasspathContainerPage object
+ *
+ * @return The classpathEntryDescription value
+ */
+ protected String getClasspathEntryDescription() {
+ return description;
+ }
+}
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE13ClasspathContainerPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE13ClasspathContainerPage.java
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE13ClasspathContainerPage.java 2007-08-17
21:40:15 UTC (rev 3230)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.as.classpath.ui.jee;
+
+import
org.jboss.ide.eclipse.as.classpath.core.jee.J2EE13ClasspathContainerInitializer.J2EE13ClasspathContainer;
+
+public class J2EE13ClasspathContainerPage extends ClasspathContainerPage {
+ public J2EE13ClasspathContainerPage() {
+ super(J2EE13ClasspathContainer.CLASSPATH_CONTAINER,
J2EE13ClasspathContainer.DESCRIPTION);
+ }
+}
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE14ClasspathContainerPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE14ClasspathContainerPage.java
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/jee/J2EE14ClasspathContainerPage.java 2007-08-17
21:40:15 UTC (rev 3230)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.as.classpath.ui.jee;
+
+import
org.jboss.ide.eclipse.as.classpath.core.jee.J2EE14ClasspathContainerInitializer.J2EE14ClasspathContainer;
+
+public class J2EE14ClasspathContainerPage extends ClasspathContainerPage {
+ public J2EE14ClasspathContainerPage() {
+ super(J2EE14ClasspathContainer.CLASSPATH_CONTAINER,
J2EE14ClasspathContainer.DESCRIPTION);
+ }
+}