geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r686783 - in /geronimo/devtools/eclipse-plugin/trunk/plugins: org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/descriptor/ org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/
Date Mon, 18 Aug 2008 15:16:20 GMT
Author: mcconne
Date: Mon Aug 18 08:16:20 2008
New Revision: 686783

URL: http://svn.apache.org/viewvc?rev=686783&view=rev
Log:
GERONIMODEVTOOLS-484 Add missing licenses

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/descriptor/WebJ2EEDeploymentDescriptor.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/descriptor/WebJ2EEDeploymentDescriptor.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/descriptor/WebJ2EEDeploymentDescriptor.java?rev=686783&r1=686782&r2=686783&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/descriptor/WebJ2EEDeploymentDescriptor.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/descriptor/WebJ2EEDeploymentDescriptor.java
Mon Aug 18 08:16:20 2008
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.geronimo.st.core.descriptor;
 
 import java.util.HashMap;
@@ -5,6 +21,11 @@
 
 import org.eclipse.jst.j2ee.webapplication.WebApp;
 
+/**
+ * WebJ2EEDeploymentDescriptor
+ * 
+ * @version $Rev$ $Date$
+ */
 public class WebJ2EEDeploymentDescriptor extends AbstractDeploymentDescriptor implements
         WebDeploymentDescriptor {
 

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java?rev=686783&r1=686782&r2=686783&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
Mon Aug 18 08:16:20 2008
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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 org.apache.geronimo.st.ui.actions;
 
 import java.net.MalformedURLException;
@@ -19,64 +35,64 @@
  */
 public class LaunchGeronimoSupportAction implements IActionDelegate {
 
-	public static final String GERONIMO_SERVER_PREFIX = "org.apache.geronimo";
+    public static final String GERONIMO_SERVER_PREFIX = "org.apache.geronimo";
+    
+    private IServer server;
+    
+    public LaunchGeronimoSupportAction() {
+        super();
+    }
+
+    public URL getConsoleUrl() throws MalformedURLException {
+        if (server != null) {
+            return new URL(Messages.supportWebPageURL);
+        }
+        return null;
+    }
 
-	private IServer server;
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+     */
+    public void run(IAction action) {
+
+        try {
+            int style = IWorkbenchBrowserSupport.AS_EXTERNAL
+                    | IWorkbenchBrowserSupport.STATUS;
+            IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
+                    .createBrowser(
+                            style,
+                            "supportWebPage",
+                            Messages.bind(Messages.supportWebPage, server.getName()),
+                            Messages.bind(Messages.supportWebPageTooltip, server
+                                    .getName()));
+            URL url = getConsoleUrl();
+            if (url != null)
+                browser.openURL(url);
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        } catch (PartInitException e) {
+            e.printStackTrace();
+        }
 
-	public LaunchGeronimoSupportAction() {
-		super();
-	}
-
-	public URL getConsoleUrl() throws MalformedURLException {
-		if (server != null) {
-			return new URL(Messages.supportWebPageURL);
-		}
-		return null;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
-	 */
-	public void run(IAction action) {
-
-		try {
-			int style = IWorkbenchBrowserSupport.AS_EXTERNAL
-					| IWorkbenchBrowserSupport.STATUS;
-			IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
-					.createBrowser(
-							style,
-							"supportWebPage",
-							Messages.bind(Messages.supportWebPage, server.getName()),
-							Messages.bind(Messages.supportWebPageTooltip, server
-									.getName()));
-			URL url = getConsoleUrl();
-			if (url != null)
-				browser.openURL(url);
-		} catch (MalformedURLException e) {
-			e.printStackTrace();
-		} catch (PartInitException e) {
-			e.printStackTrace();
-		}
-
-	}
-
-	/*
-         * (non-Javadoc)
-         * 
-         * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
-         *      org.eclipse.jface.viewers.ISelection)
-         */
-        public void selectionChanged(IAction action, ISelection selection) {
+    }
+    
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+     *      org.eclipse.jface.viewers.ISelection)
+     */
+    public void selectionChanged(IAction action, ISelection selection) {
 
-                server = (IServer) ((StructuredSelection) selection).getFirstElement();
+        server = (IServer) ((StructuredSelection) selection).getFirstElement();
 
-                boolean enable = server != null
-                                && server.getServerType().getId().startsWith(GERONIMO_SERVER_PREFIX);
+        boolean enable = server != null
+                         && server.getServerType().getId().startsWith(GERONIMO_SERVER_PREFIX);
 
-                action.setEnabled(enable);
+        action.setEnabled(enable);
 
-        }
+    }
 
 }



Mime
View raw message