From: Marshall C. <mcu...@jb...> - 2006-06-02 16:48:00
|
User: mculpepper Date: 06/06/02 12:47:57 Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core JBossServerCorePlugin.java JBossServerCore.java Log: appended JBoss LGPL header to all source files, included License.txt in distribution, and updated build.properties to generate jbossascore.jar for the plugin's classpath Revision Changes Path 1.2 +2 -46 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java (In the diff below, changes in quantity of whitespace are not shown.) Index: JBossServerCorePlugin.java =================================================================== RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- JBossServerCorePlugin.java 31 May 2006 06:21:29 -0000 1.1 +++ JBossServerCorePlugin.java 2 Jun 2006 16:47:57 -0000 1.2 @@ -1,44 +1,6 @@ /* * JBoss, Home of Professional Open Source - * Copyright 2005, JBoss Inc., 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:/* - * JBoss, Home of Professional Open Source - * Copyright 2005, JBoss Inc., 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:/* - * JBoss, Home of Professional Open Source - * Copyright 2005, JBoss Inc., and individual contributors as indicated + * Copyright 2006, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * @@ -58,13 +20,7 @@ * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jboss.ide.eclipse.as.core; -/* - * The JBoss Webtools contribution - * - * Copyright (c) 2004 JBoss, Inc. - * Distributable under Common Public License v1.0 - * See terms of license at http://www.eclipse.org/legal/cpl-v10.html - */ + import java.util.MissingResourceException; import java.util.ResourceBundle; 1.2 +21 -0 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java (In the diff below, changes in quantity of whitespace are not shown.) Index: JBossServerCore.java =================================================================== RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- JBossServerCore.java 31 May 2006 06:21:29 -0000 1.1 +++ JBossServerCore.java 2 Jun 2006 16:47:57 -0000 1.2 @@ -1,3 +1,24 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2006, JBoss Inc., 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.core; import java.util.ArrayList; |
From: Robert S. <ra...@gm...> - 2006-06-09 20:02:05
|
User: rawb Date: 06/06/09 16:01:59 Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core JBossServerCore.java Log: Changed AntLauncher due to huge ant memory leak in AntRunner. Added event log items so that view could present events. Revision Changes Path 1.3 +0 -2 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java (In the diff below, changes in quantity of whitespace are not shown.) Index: JBossServerCore.java =================================================================== RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- JBossServerCore.java 2 Jun 2006 16:47:57 -0000 1.2 +++ JBossServerCore.java 9 Jun 2006 20:01:59 -0000 1.3 @@ -22,10 +22,8 @@ package org.jboss.ide.eclipse.as.core; import java.util.ArrayList; -import java.util.Iterator; import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.debug.core.model.IProcess; import org.eclipse.wst.server.core.IRuntime; import org.eclipse.wst.server.core.IRuntimeLifecycleListener; import org.eclipse.wst.server.core.IServer; |
From: Robert S. <ra...@gm...> - 2006-06-27 07:07:33
|
User: rawb Date: 06/06/27 03:07:31 Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core JBossServerCore.java Log: Pulled out the properties section to work in the property's view instead. Added some default property sheet pages for implementers to use. Ensured view extensions' icons worked in the label provider. Ensured proper calls of dispose() are made. Lots of other small things. Revision Changes Path 1.4 +13 -0 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java (In the diff below, changes in quantity of whitespace are not shown.) Index: JBossServerCore.java =================================================================== RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- JBossServerCore.java 9 Jun 2006 20:01:59 -0000 1.3 +++ JBossServerCore.java 27 Jun 2006 07:07:31 -0000 1.4 @@ -86,6 +86,19 @@ return ret; } + public static IServer[] getIServerJBossServers() { + ArrayList servers = new ArrayList(); + IServer[] iservers = ServerCore.getServers(); + for( int i = 0; i < iservers.length; i++ ) { + if( getServer(iservers[i]) != null ) { + servers.add(iservers[i]); + } + } + IServer[] ret = new IServer[servers.size()]; + servers.toArray(ret); + return ret; + } + public JBossServerCore() { ServerCore.addRuntimeLifecycleListener(this); ServerCore.addServerLifecycleListener(this); |
From: Robert S. <ra...@gm...> - 2006-07-10 15:41:35
|
User: rawb Date: 06/07/10 11:41:31 Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core JBossServerCore.java Log: Removed outdated variable (consoleListeners). Revision Changes Path 1.5 +0 -2 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java (In the diff below, changes in quantity of whitespace are not shown.) Index: JBossServerCore.java =================================================================== RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCore.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- JBossServerCore.java 27 Jun 2006 07:07:31 -0000 1.4 +++ JBossServerCore.java 10 Jul 2006 15:41:31 -0000 1.5 @@ -52,7 +52,6 @@ private ModuleModel moduleModel; private ServerProcessModel processModel; private String[] jbossFactories; - private ArrayList consoleListeners; public static JBossServerCore getDefault() { if( instance == null ) { @@ -105,7 +104,6 @@ moduleModel = ModuleModel.getDefault(); processModel = ServerProcessModel.getDefault(); - consoleListeners = new ArrayList(); } |
From: Robert S. <ra...@gm...> - 2006-07-10 15:42:12
|
User: rawb Date: 06/07/10 11:42:03 Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core JBossServerCorePlugin.java Added: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core JBossServerCorePreferences.java Log: Added a preference helper class and reference to it in the core plugin. Revision Changes Path 1.3 +4 -0 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java (In the diff below, changes in quantity of whitespace are not shown.) Index: JBossServerCorePlugin.java =================================================================== RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -b -r1.2 -r1.3 --- JBossServerCorePlugin.java 2 Jun 2006 16:47:57 -0000 1.2 +++ JBossServerCorePlugin.java 10 Jul 2006 15:42:03 -0000 1.3 @@ -107,4 +107,8 @@ public ResourceBundle getResourceBundle() { return resourceBundle; } + + public JBossServerCorePreferences getPreferenceHelper() { + return JBossServerCorePreferences.getDefault(); + } } 1.1 date: 2006/07/10 15:42:03; author: rawb; state: Exp;jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePreferences.java Index: JBossServerCorePreferences.java =================================================================== package org.jboss.ide.eclipse.as.core; import org.eclipse.core.runtime.Preferences; import org.eclipse.wst.server.core.IModule; import org.jboss.ide.eclipse.as.core.server.JBossServer; public class JBossServerCorePreferences { private static JBossServerCorePreferences prefs; public static JBossServerCorePreferences getDefault() { if( prefs == null ) { prefs = new JBossServerCorePreferences(); } return prefs; } public JBossServerCorePreferences() { } public static final int NO_CLIENT_ACTION = 0; public static final int VERIFY_CLIENT_ACTION = 1; public int getModuleClientAction(IModule module[]) { return NO_CLIENT_ACTION; } /** * Get the preferences for that plugin from preferneces. * If not set, use the max. */ public static final int MAX_TIMEOUT = 180000; public static final String START_TIMEOUT = "_START_TIMEOUT_"; public static final String STOP_TIMEOUT = "_STOP_TIMEOUT_"; public int getStartTimeout(JBossServer server) { if( getPreferences().getInt(server.getServer().getId() + START_TIMEOUT) != 0 ) { return getPreferences().getInt(server.getServer().getId() + START_TIMEOUT); } return MAX_TIMEOUT; } public int getStopTimeout(JBossServer server) { if( getPreferences().getInt(server.getServer().getId() + STOP_TIMEOUT) != 0 ) { return getPreferences().getInt(server.getServer().getId() + STOP_TIMEOUT); } return MAX_TIMEOUT; } public Preferences getPreferences() { return JBossServerCorePlugin.getDefault().getPluginPreferences(); } } |