JBoss Tools SVN: r39488 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-03-14 03:39:28 -0400 (Wed, 14 Mar 2012)
New Revision: 39488
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java
Log:
JBIDE-11304 - bad adaptations
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java 2012-03-14 07:19:52 UTC (rev 39487)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java 2012-03-14 07:39:28 UTC (rev 39488)
@@ -24,7 +24,7 @@
public class ExtendedServerPropertiesAdapterFactory implements IAdapterFactory, IJBossToolingConstants {
public static JBossExtendedProperties getJBossExtendedProperties(IServer server) {
- Object ret = new ExtendedServerPropertiesAdapterFactory().getAdapter(server, JBossExtendedProperties.class);
+ Object ret = new ExtendedServerPropertiesAdapterFactory().getAdapter(server, ServerExtendedProperties.class);
return ret instanceof JBossExtendedProperties ? (JBossExtendedProperties)ret : null;
}
12 years, 8 months
JBoss Tools SVN: r39487 - in trunk/as/plugins: org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-03-14 03:19:52 -0400 (Wed, 14 Mar 2012)
New Revision: 39487
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBossServerConnectionProvider.java
Log:
JBIDE-11304 - npe due to bad adaptations
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java 2012-03-14 05:54:45 UTC (rev 39486)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ExtendedServerPropertiesAdapterFactory.java 2012-03-14 07:19:52 UTC (rev 39487)
@@ -23,8 +23,9 @@
public class ExtendedServerPropertiesAdapterFactory implements IAdapterFactory, IJBossToolingConstants {
- public static JBossExtendedProperties getExtendedProperties(IServer server) {
- return (JBossExtendedProperties) new ExtendedServerPropertiesAdapterFactory().getAdapter(server, JBossExtendedProperties.class);
+ public static JBossExtendedProperties getJBossExtendedProperties(IServer server) {
+ Object ret = new ExtendedServerPropertiesAdapterFactory().getAdapter(server, JBossExtendedProperties.class);
+ return ret instanceof JBossExtendedProperties ? (JBossExtendedProperties)ret : null;
}
@Override
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2012-03-14 05:54:45 UTC (rev 39486)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2012-03-14 07:19:52 UTC (rev 39487)
@@ -43,6 +43,8 @@
import org.eclipse.jst.server.core.IWebModule;
import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.core.ServerCore;
import org.eclipse.wst.server.core.model.IURLProvider;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathModel;
@@ -51,6 +53,7 @@
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.JBossExtendedProperties;
+import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.ServerExtendedProperties;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader;
import org.jboss.ide.eclipse.as.core.util.ExpressionResolverUtil;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
@@ -147,7 +150,7 @@
}
public JBossExtendedProperties getExtendedProperties() {
- return (JBossExtendedProperties)getServer().loadAdapter(JBossExtendedProperties.class, null);
+ return (JBossExtendedProperties)getServer().loadAdapter(ServerExtendedProperties.class, null);
}
public String getTempDeployFolder() {
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml 2012-03-14 05:54:45 UTC (rev 39486)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml 2012-03-14 07:19:52 UTC (rev 39487)
@@ -1198,6 +1198,9 @@
<adapter
type="org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.ServerExtendedProperties">
</adapter>
+ <adapter
+ type="org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.JBossExtendedProperties">
+ </adapter>
</factory>
</extension>
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBossServerConnectionProvider.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBossServerConnectionProvider.java 2012-03-14 05:54:45 UTC (rev 39486)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JBossServerConnectionProvider.java 2012-03-14 07:19:52 UTC (rev 39487)
@@ -80,7 +80,7 @@
}
protected IConnectionWrapper createConnection(IServer server) {
- JBossExtendedProperties props = ExtendedServerPropertiesAdapterFactory.getExtendedProperties(server);
+ JBossExtendedProperties props = ExtendedServerPropertiesAdapterFactory.getJBossExtendedProperties(server);
int type = props == null ? -1 : props.getJMXProviderType();
switch(type) {
case JBossExtendedProperties.JMX_AS_3_TO_6_PROVIDER:
12 years, 8 months
JBoss Tools SVN: r39486 - in trunk/as/plugins: org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-03-14 01:54:45 -0400 (Wed, 14 Mar 2012)
New Revision: 39486
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7DeploymentScannerAdditions.java
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossAS7ExtendedProperties.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossExtendedProperties.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/ServerExtendedProperties.java
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXServerLifecycleListener.java
trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS71Manager.java
trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS7Messages.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java
Log:
JBIDE-11297 - added random deployment folder support for as7
Also, removed an unneded import, and fixed a string externalization file not found error.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/META-INF/MANIFEST.MF 2012-03-14 05:54:45 UTC (rev 39486)
@@ -25,7 +25,8 @@
org.eclipse.pde.core;bundle-version="3.7.0",
org.eclipse.jst.j2ee.web;bundle-version="1.1.500",
org.jboss.ide.eclipse.as.management.core,
- org.eclipse.equinox.security;bundle-version="1.1.1"
+ org.eclipse.equinox.security;bundle-version="1.1.1",
+ org.jboss.ide.eclipse.as.dmr;bundle-version="2.3.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.ide.eclipse.as.core,
org.jboss.ide.eclipse.as.core.extensions.descriptors,
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/JBossServerCorePlugin.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -31,6 +31,7 @@
import org.jboss.ide.eclipse.as.core.server.UnitedServerListenerManager;
import org.jboss.ide.eclipse.as.core.server.internal.BehaviourModel;
import org.jboss.ide.eclipse.as.core.server.internal.ServerListener;
+import org.jboss.ide.eclipse.as.core.server.internal.v7.LocalJBoss7DeploymentScannerAdditions;
import org.jboss.ide.eclipse.as.core.util.ServerUtil;
import org.osgi.framework.BundleContext;
@@ -61,6 +62,7 @@
return extensions;
}
+ private LocalJBoss7DeploymentScannerAdditions jboss7Additions;
/**
* This method is called upon plug-in activation
*/
@@ -74,7 +76,8 @@
UnitedServerListenerManager.getDefault();
UnitedServerListenerManager.getDefault().addListener(XPathModel.getDefault());
UnitedServerListenerManager.getDefault().addListener(ServerListener.getDefault());
-
+ jboss7Additions = new LocalJBoss7DeploymentScannerAdditions();
+ UnitedServerListenerManager.getDefault().addListener(jboss7Additions);
FacetedProjectFramework.addListener(JBoss4xEarFacetInstallListener.getDefault(), IFacetedProjectEvent.Type.POST_INSTALL);
return Status.OK_STATUS;
}
@@ -99,6 +102,7 @@
UnitedServerListenerManager.getDefault().removeListener(ServerListener.getDefault());
UnitedServerListenerManager.getDefault().removeListener(XPathModel.getDefault());
FacetedProjectFramework.removeListener(JBoss4xEarFacetInstallListener.getDefault());
+ UnitedServerListenerManager.getDefault().removeListener(jboss7Additions);
}
/**
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossAS7ExtendedProperties.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossAS7ExtendedProperties.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossAS7ExtendedProperties.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -34,5 +34,8 @@
return false;
return true;
}
+ public int getMultipleDeployFolderSupport() {
+ return DEPLOYMENT_SCANNER_AS7_MANAGEMENT_SUPPORT;
+ }
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossExtendedProperties.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossExtendedProperties.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/JBossExtendedProperties.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -70,4 +70,8 @@
}
}
+ public int getMultipleDeployFolderSupport() {
+ return DEPLOYMENT_SCANNER_JMX_SUPPORT;
+ }
+
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/ServerExtendedProperties.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/ServerExtendedProperties.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/extendedproperties/ServerExtendedProperties.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -35,4 +35,12 @@
public String getWelcomePageUrl() {
return null;
}
+
+ public static final int DEPLOYMENT_SCANNER_NO_SUPPORT = 1;
+ public static final int DEPLOYMENT_SCANNER_JMX_SUPPORT = 2;
+ public static final int DEPLOYMENT_SCANNER_AS7_MANAGEMENT_SUPPORT = 3;
+
+ public int getMultipleDeployFolderSupport() {
+ return DEPLOYMENT_SCANNER_NO_SUPPORT;
+ }
}
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7DeploymentScannerAdditions.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7DeploymentScannerAdditions.java (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/LocalJBoss7DeploymentScannerAdditions.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -0,0 +1,230 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.ide.eclipse.as.core.server.internal.v7;
+
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.Properties;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.ServerEvent;
+import org.jboss.dmr.ModelNode;
+import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
+import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
+import org.jboss.ide.eclipse.as.core.server.UnitedServerListener;
+import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
+import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.ServerExtendedProperties;
+import org.jboss.ide.eclipse.as.core.server.v7.management.AS7ManagementDetails;
+import org.jboss.ide.eclipse.as.core.util.ServerConverter;
+import org.jboss.ide.eclipse.as.management.core.IJBoss7ManagerService;
+import org.jboss.ide.eclipse.as.management.core.JBoss7ManagerUtil;
+
+public class LocalJBoss7DeploymentScannerAdditions extends UnitedServerListener {
+ protected boolean accepts(IServer server) {
+ ServerExtendedProperties props = (ServerExtendedProperties)server.loadAdapter(ServerExtendedProperties.class, null);
+ boolean usesManagement = props != null &&
+ props.getMultipleDeployFolderSupport() == ServerExtendedProperties.DEPLOYMENT_SCANNER_AS7_MANAGEMENT_SUPPORT;
+ if(usesManagement) {
+ return true;
+ }
+ return false;
+ }
+
+ private final static String SCANNER_PROP_FILE = "as7Scanners.properties"; //$NON-NLS-1$
+
+ /**
+ * Ensure the following folders are added to a deployment scanner.
+ * Depending on the impl and server version, you may simply add all of the folders,
+ * or, you may need to discover what's been removed and added separately.
+ *
+ * @param server
+ * @param folders
+ */
+ protected void ensureScannersAdded(final IServer server, final String[] folders) {
+ ArrayList<String> asList = new ArrayList<String>();
+ asList.addAll(Arrays.asList(folders));
+ ArrayList<String> added = new ArrayList<String>(); // list of the paths
+ added.addAll(Arrays.asList(folders));
+ ArrayList<String> removed = new ArrayList<String>(); // list of the scanner names
+
+ IPath p = JBossServerCorePlugin.getServerStateLocation(server).append(SCANNER_PROP_FILE);
+ Properties props = new Properties();
+ if( p.toFile().exists()) {
+ try {
+ props.load(new FileInputStream(p.toFile()));
+ } catch( IOException ioe) {
+ // shouldnt happen. Log this
+ Status failStat = new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
+ "Unable to read deployment scanner property file " + p.toFile().getAbsolutePath(), ioe); //$NON-NLS-1$
+ JBossServerCorePlugin.log(failStat);
+ }
+ }
+
+ Iterator<Object> i2 = props.keySet().iterator();
+ String k = null;
+ String v = null;
+ while(i2.hasNext()) {
+ k = (String)i2.next();
+ v = (String)props.get(k);
+ if( !asList.contains(v))
+ removed.add(k);
+ else {
+ added.remove(v);
+ }
+ }
+
+
+ // Do the removes
+ Iterator<String> i = removed.iterator();
+ String scannerName = null;
+ while(i.hasNext()) {
+ scannerName = i.next();
+ IStatus s = removeOneFolder(server, scannerName);
+ if( s.isOK()) {
+ props.remove(scannerName);
+ }
+ }
+
+ // Do the adds
+ i = added.iterator();
+ String path;
+ String newScannerName;
+ while(i.hasNext()) {
+ path = i.next();
+ newScannerName = findNextScannerName(props);
+ IStatus s = addOneFolder(server, newScannerName, path);
+ if( s.isOK()){
+ props.put(newScannerName, path);
+ }
+ }
+
+ // Write the file out
+ if( added.size() != 0 || removed.size() != 0 ) {
+ try {
+ props.store(new FileOutputStream(p.toFile()), "Deployment scanners for the application server"); //$NON-NLS-1$
+ } catch( IOException ioe) {
+ Status failStat = new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
+ "Unable to save deployment scanner property file " + p.toFile().getAbsolutePath(), ioe); //$NON-NLS-1$
+ JBossServerCorePlugin.log(failStat);
+ }
+ }
+ }
+
+ private static final String SCANNER_PREFIX = "JBossToolsScanner"; //$NON-NLS-1$
+ protected String findNextScannerName(Properties props) {
+ int i = 1;
+ while( props.get(SCANNER_PREFIX + i) != null ) {
+ i++;
+ }
+ return SCANNER_PREFIX + i;
+ }
+
+ protected IStatus addOneFolder(final IServer server, String scannerName, final String folder) {
+ ModelNode op = new ModelNode();
+ op.get("operation").set("add"); //$NON-NLS-1$ //$NON-NLS-2$
+ ModelNode addr = op.get("address"); //$NON-NLS-1$
+ addr.add("subsystem", "deployment-scanner"); //$NON-NLS-1$//$NON-NLS-2$
+ addr.add("scanner", scannerName); //$NON-NLS-1$
+ op.get("path").set(folder); //$NON-NLS-1$
+ final String request = op.toJSONString(true);
+ return execute(server, request);
+ }
+
+ protected IStatus removeOneFolder(final IServer server, String scannerName) {
+ ModelNode op = new ModelNode();
+ op.get("operation").set("remove"); //$NON-NLS-1$ //$NON-NLS-2$
+ ModelNode addr = op.get("address"); //$NON-NLS-1$
+ addr.add("subsystem", "deployment-scanner"); //$NON-NLS-1$//$NON-NLS-2$
+ addr.add("scanner", scannerName); //$NON-NLS-1$
+ final String request = op.toJSONString(true);
+ return execute(server, request);
+ }
+
+ protected IStatus execute(final IServer server, final String request) {
+ try {
+ String resultJSON = JBoss7ManagerUtil.executeWithService(new JBoss7ManagerUtil.IServiceAware<String>() {
+ public String execute(IJBoss7ManagerService service) throws Exception {
+ return service.execute(new AS7ManagementDetails(server), request);
+ }
+ }, server);
+ ModelNode result = ModelNode.fromJSONString(resultJSON);
+ return Status.OK_STATUS;
+ } catch( Exception e ) {
+ // TODO Throw new checked exception
+ return new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, e.getMessage(), e);
+ }
+ }
+
+
+ public void serverChanged(ServerEvent event) {
+ IServer server = event.getServer();
+ if( accepts(server)) {
+ int eventKind = event.getKind();
+ if ((eventKind & ServerEvent.SERVER_CHANGE) != 0) {
+ // server change event
+ if ((eventKind & ServerEvent.STATE_CHANGE) != 0) {
+ if( event.getServer().getServerState() == IServer.STATE_STARTED ) {
+ modifyDeploymentScanners(event);
+ }
+ }
+ }
+ }
+ }
+
+ protected void modifyDeploymentScanners(ServerEvent event){
+ String[] folders = getDeployLocationFolders(event.getServer());
+ ensureScannersAdded(event.getServer(), folders);
+ }
+
+ protected String[] getDeployLocationFolders(IServer server) {
+ JBossServer ds = ServerConverter.getJBossServer(server);
+ ArrayList<String> folders = new ArrayList<String>();
+ // add the server folder deploy loc. first
+ String insideServer = ds.getDeployFolder(JBossServer.DEPLOY_SERVER);
+ String metadata = JBossServer.getDeployFolder(ds, JBossServer.DEPLOY_METADATA);
+ String custom = JBossServer.getDeployFolder(ds, JBossServer.DEPLOY_CUSTOM);
+ String type = ds.getDeployLocationType();
+ String serverHome = null;
+ if (server != null && server.getRuntime()!= null && server.getRuntime().getLocation() != null) {
+ serverHome = server.getRuntime().getLocation().toString();
+ }
+ folders.add(insideServer);
+ if( type.equals(JBossServer.DEPLOY_METADATA) && !folders.contains(metadata))
+ folders.add(metadata);
+ if( type.equals(JBossServer.DEPLOY_CUSTOM) && !folders.contains(custom) && !custom.equals(serverHome))
+ folders.add(custom);
+
+ IModule[] modules2 = org.eclipse.wst.server.core.ServerUtil.getModules(server.getServerType().getRuntimeType().getModuleTypes());
+ if (modules2 != null) {
+ int size = modules2.length;
+ for (int i = 0; i < size; i++) {
+ IModule[] module = new IModule[] { modules2[i] };
+ IStatus status = server.canModifyModules(module, null, null);
+ if (status != null && status.getSeverity() != IStatus.ERROR) {
+ String tempFolder = PublishUtil.getDeployRootFolder(module, ds).toString();
+ if( !folders.contains(tempFolder))
+ folders.add(tempFolder);
+ }
+ }
+ }
+ folders.remove(insideServer); // doesn't need to be added to deployment scanner
+ String[] folders2 = (String[]) folders.toArray(new String[folders.size()]);
+ return folders2;
+ }
+}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -31,6 +31,7 @@
public Activator() {
}
+ private JMXServerLifecycleListener listener = new JMXServerLifecycleListener();
/*
* (non-Javadoc)
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
@@ -38,7 +39,7 @@
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
- UnitedServerListenerManager.getDefault().addListener(JMXServerLifecycleListener.getDefault());
+ UnitedServerListenerManager.getDefault().addListener(listener);
}
/*
@@ -46,7 +47,7 @@
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
- UnitedServerListenerManager.getDefault().removeListener(JMXServerLifecycleListener.getDefault());
+ UnitedServerListenerManager.getDefault().removeListener(listener);
plugin = null;
super.stop(context);
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXServerLifecycleListener.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXServerLifecycleListener.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/JMXServerLifecycleListener.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
+ * Copyright (c) 2012 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
@@ -11,7 +11,6 @@
package org.jboss.ide.eclipse.as.jmx.integration;
import java.net.URI;
-import java.util.ArrayList;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
@@ -19,104 +18,53 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.ServerEvent;
import org.jboss.ide.eclipse.as.core.Messages;
import org.jboss.ide.eclipse.as.core.extensions.events.IEventCodes;
import org.jboss.ide.eclipse.as.core.extensions.events.ServerLogger;
-import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
-import org.jboss.ide.eclipse.as.core.server.UnitedServerListener;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
+import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.ServerExtendedProperties;
+import org.jboss.ide.eclipse.as.core.server.internal.v7.LocalJBoss7DeploymentScannerAdditions;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeConstants;
-import org.jboss.ide.eclipse.as.core.util.ServerConverter;
import org.jboss.tools.jmx.core.IJMXRunnable;
import org.jboss.tools.jmx.core.JMXException;
-public class JMXServerLifecycleListener extends UnitedServerListener {
- private static JMXServerLifecycleListener instance;
- public static JMXServerLifecycleListener getDefault() {
- if( instance == null )
- instance = new JMXServerLifecycleListener();
- return instance;
- }
-
- public void serverChanged(ServerEvent event) {
- IServer server = event.getServer();
+public class JMXServerLifecycleListener extends LocalJBoss7DeploymentScannerAdditions {
+ protected boolean accepts(IServer server) {
+ ServerExtendedProperties props = (ServerExtendedProperties)server.loadAdapter(ServerExtendedProperties.class, null);
JBossServer jbs = (JBossServer)server.loadAdapter(JBossServer.class, new NullProgressMonitor());
- if( jbs != null && jbs.hasJMXProvider()) {
- int eventKind = event.getKind();
- if ((eventKind & ServerEvent.SERVER_CHANGE) != 0) {
- // server change event
- if ((eventKind & ServerEvent.STATE_CHANGE) != 0) {
- if( event.getServer().getServerState() == IServer.STATE_STARTED ) {
- String[] folders = getDeployLocationFolders(server);
- if( folders.length > 0 )
- doDeploymentAddition(event, folders);
- }
- }
- }
+ boolean hasJMXProvider = jbs != null && jbs.hasJMXProvider();
+ boolean jmxDeploymentScanner = props != null && props.getMultipleDeployFolderSupport() == ServerExtendedProperties.DEPLOYMENT_SCANNER_JMX_SUPPORT;
+ if(hasJMXProvider && jmxDeploymentScanner) {
+ return true;
}
+ return false;
}
- protected void doDeploymentAddition(final ServerEvent event, final String[] folders) {
+ protected void modifyDeploymentScanners(ServerEvent event){
+ String[] folders = getDeployLocationFolders(event.getServer());
+ if( folders.length > 0 )
+ ensureScannersAdded(event.getServer(), folders);
+ }
+
+ protected void ensureScannersAdded(final IServer server, final String[] folders) {
IJMXRunnable r = new IJMXRunnable() {
public void run(MBeanServerConnection connection) throws Exception {
- ensureDeployLocationAdded(event.getServer(), connection, folders);
+ ensureDeployLocationAdded(server, connection, folders);
}
};
try {
- JBossServerConnectionProvider.run(event.getServer(), r);
+ JBossServerConnectionProvider.run(server, r);
} catch( JMXException jmxe ) {
IStatus s = jmxe.getStatus();
IStatus newStatus = new Status(s.getSeverity(), s.getPlugin(), IEventCodes.ADD_DEPLOYMENT_FOLDER_FAIL,
Messages.AddingJMXDeploymentFailed, s.getException());
- ServerLogger.getDefault().log(event.getServer(), newStatus);
+ ServerLogger.getDefault().log(server, newStatus);
}
}
- protected String[] getDeployLocationFolders(IServer server) {
- JBossServer ds = ServerConverter.getJBossServer(server);
- ArrayList<String> folders = new ArrayList<String>();
- // add the server folder deploy loc. first
- String insideServer = ds.getDeployFolder(JBossServer.DEPLOY_SERVER);
- String metadata = JBossServer.getDeployFolder(ds, JBossServer.DEPLOY_METADATA);
- String custom = JBossServer.getDeployFolder(ds, JBossServer.DEPLOY_CUSTOM);
- String type = ds.getDeployLocationType();
- String serverHome = null;
- if (server != null && server.getRuntime()!= null && server.getRuntime().getLocation() != null) {
- serverHome = server.getRuntime().getLocation().toString();
- }
- folders.add(insideServer);
- if( type.equals(JBossServer.DEPLOY_METADATA) && !folders.contains(metadata))
- folders.add(metadata);
- if( type.equals(JBossServer.DEPLOY_CUSTOM) && !folders.contains(custom) && !custom.equals(serverHome))
- folders.add(custom);
-
- IModule[] modules2 = org.eclipse.wst.server.core.ServerUtil.getModules(server.getServerType().getRuntimeType().getModuleTypes());
- if (modules2 != null) {
- int size = modules2.length;
- for (int i = 0; i < size; i++) {
- IModule[] module = new IModule[] { modules2[i] };
- IStatus status = server.canModifyModules(module, null, null);
- if (status != null && status.getSeverity() != IStatus.ERROR) {
- String tempFolder = PublishUtil.getDeployRootFolder(module, ds).toString();
- if( !folders.contains(tempFolder))
- folders.add(tempFolder);
- }
- }
- }
- folders.remove(insideServer); // doesn't need to be added to deployment scanner
- String[] folders2 = (String[]) folders.toArray(new String[folders.size()]);
- return folders2;
- }
-
- protected void ensureDeployLocationAdded(IServer server, MBeanServerConnection connection) throws Exception {
- String[] folders2 = getDeployLocationFolders(server);
- ensureDeployLocationAdded(server, connection, folders2);
- }
-
- protected void ensureDeployLocationAdded(IServer server,
+ private void ensureDeployLocationAdded(IServer server,
MBeanServerConnection connection, String[] folders2) throws Exception {
for( int i = 0; i < folders2.length; i++ ) {
String asURL = encode(folders2[i]);
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS71Manager.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS71Manager.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS71Manager.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -31,7 +31,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
-import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import javax.security.auth.callback.Callback;
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS7Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS7Messages.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.management.as71/src/org/jboss/ide/eclipse/as/internal/management/as71/AS7Messages.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -22,7 +22,7 @@
public static String OperationOnUnitRolledBack;
public static String OperationNotExecConfigRequiresRestart;
static {
- NLS.initializeMessages("org.jboss.ide.eclipse.as.management.as7.AS7Messages", //$NON-NLS-1$
+ NLS.initializeMessages("org.jboss.ide.eclipse.as.internal.management.as71.AS7Messages", //$NON-NLS-1$
AS7Messages.class);
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java 2012-03-13 23:23:11 UTC (rev 39485)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploymentModuleOptionCompositeAssistant.java 2012-03-14 05:54:45 UTC (rev 39486)
@@ -55,6 +55,7 @@
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.IServerWorkingCopy;
import org.eclipse.wst.server.ui.ServerUICore;
import org.eclipse.wst.server.ui.internal.command.ServerCommand;
@@ -67,6 +68,7 @@
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
+import org.jboss.ide.eclipse.as.core.server.internal.extendedproperties.ServerExtendedProperties;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader.DeploymentModulePrefs;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader.DeploymentPreferences;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
@@ -214,11 +216,13 @@
public boolean enableMetadataRadio() {
String mode = getHelper().getAttribute(IDeployableServer.SERVER_MODE, LocalPublishMethod.LOCAL_PUBLISH_METHOD);
- if(mode.equals("rse"))
+ if(!LocalPublishMethod.LOCAL_PUBLISH_METHOD.equals(mode))
return false;
- if( ServerUtil.isJBoss7(page.getServer().getServerType()))
- return false;
- return true;
+ IServer s = page.getServer().getOriginal();
+ ServerExtendedProperties props = (ServerExtendedProperties)s.loadAdapter(ServerExtendedProperties.class, null);
+ if( props == null )
+ return true;
+ return props.getMultipleDeployFolderSupport() != ServerExtendedProperties.DEPLOYMENT_SCANNER_NO_SUPPORT;
}
public boolean showTempAndDeployTexts() {
12 years, 8 months
JBoss Tools SVN: r39485 - in trunk/documentation/whatsnew: as and 11 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2012-03-13 19:23:11 -0400 (Tue, 13 Mar 2012)
New Revision: 39485
Added:
trunk/documentation/whatsnew/core/core-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/images/browsersim-skinned.png
trunk/documentation/whatsnew/images/browsersim_icon.png
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/central/central-news-1.0.0.Beta1.html
trunk/documentation/whatsnew/examples/examples-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/forge/forge-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/index.html
trunk/documentation/whatsnew/jst/jst-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/maven/maven-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html
trunk/documentation/whatsnew/usage/usage-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.Beta1.html
trunk/documentation/whatsnew/ws/ws-news-1.2.2.Beta1.html
Log:
JBIDE-11011 various fixes and link cleanup
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -21,7 +21,8 @@
<h1>JBoss AS Tools 3.3.0.Beta1 What's New</h1>
- <p align="right"><a href="../index.html">< Main Index</a> <a href="../jst/jst-news-3.3.0.Beta1.html">JST/JSF Tools></a></p>
+ <p align="right"><a href="../index.html">< Main Index</a> <a
+href="../openshift/openshift-news-2.3.0.Beta1.html">OpenShift Tools></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
@@ -31,8 +32,22 @@
<hr/>
</td>
</tr>
+
<tr>
<td valign="top" align="right">
+ <p><b>Customize application reload behavior</b></p>
+ </td>
+ <td valign="top" width="90%">
+
+ <p>Users can now customize the reload behavior of their application server in a new setting in the server editor. Some users may have aggressive reload strategies during development, while others may prefer more conservative strategies, for example on larger applications that take longer to deploy. Whatever your development workflow strategy is, this new setting can help accomodate you. </p>
+ <p><img src="https://issues.jboss.org/secure/attachment/12351312/JBIDE-10464.png" alt="module restart behavior screenshot"/></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10464">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr><td colspan="2"><hr /></td></tr>
+ <tr>
+ <td valign="top" align="right">
<p><b>Bind to All Ports</b></p>
</td>
<td valign="top" width="90%">
@@ -45,16 +60,16 @@
<tr><td colspan="2"><hr /></td></tr>
<tr>
<td valign="top" align="right">
- <p><b>Customize application reload behavior</b></p>
+ <p><b>Passwords stored in secure storage</b></p>
</td>
<td valign="top" width="90%">
+ <p>For enhanced security, passwords are now stored in secured storage. Once every workspace restart, you will be asked to enter your secure storage username and password to access all securely-stored data, but that's a small price to pay for knowing your data is safe with us! </p>
- <p>Users can now customize the reload behavior of their application server in a new setting in the server editor. Some users may have aggressive reload strategies during development, while others may prefer more conservative strategies, for example on larger applications that take longer to deploy. Whatever your development workflow strategy is, this new setting can help accomodate you. </p>
- <p><img src="https://issues.jboss.org/secure/attachment/12351312/JBIDE-10464.png" alt="module restart behavior screenshot"/></p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-10464">Related Jira</a></small></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10490">Related Jira</a></small></p>
</td>
- </tr>
+ </tr>
<tr><td colspan="2"><hr /></td></tr>
+
<tr>
<td valign="top" align="right">
<p><b>Support for Gate-In Server</b></p>
@@ -76,18 +91,7 @@
<p><small><a href="https://issues.jboss.org/browse/JBIDE-10733">Related Jira</a></small></p>
</td>
</tr>
- <tr><td colspan="2"><hr /></td></tr>
- <tr>
- <td valign="top" align="right">
- <p><b>Passwords stored in secure storage</b></p>
- </td>
- <td valign="top" width="90%">
- <p>For enhanced security, passwords are now stored in secured storage. Once every workspace restart, you will be asked to enter your secure storage username and password to access all securely-stored data, but that's a small price to pay for knowing your data is safe with us! </p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-10490">Related Jira</a></small></p>
- </td>
- </tr>
-
</table>
</body>
Modified: trunk/documentation/whatsnew/central/central-news-1.0.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/central/central-news-1.0.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/central/central-news-1.0.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -24,7 +24,7 @@
<h1>JBoss Central 1.0.0.Beta1 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
-href="../teiid/teiid-news-7.6.html">Teiid Designer ></a>
+href="../usage/usage-news-3.3.0.Beta1.html">Usage ></a>
</p>
Added: trunk/documentation/whatsnew/core/core-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.3.0.Beta1.html (rev 0)
+++ trunk/documentation/whatsnew/core/core-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>Core/Common 3.3.0.M5 What's New</title>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-17645367-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script></head>
+<body>
+<h1>Core/Common 3.3.0.Beta1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a>
+<a href="../as/as-news-3.3.0.Beta1.html">JBoss AS Tools ></a>
+</p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <a name="itemnam1e" id="itemname1"></a><b>Eclipse 3.7 SR2</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>
+ It is recommended and for most plugins required to use Eclipse
+ 3.7 SR2 (3.7.2) with JBoss Tools.
+ </p>
+
+ <p>
+ Thus if you are on Eclipse 3.7.0 or 3.7.1 run <code>Help > Check for
+ Updates</code> to be upgraded to latest Eclipse 3.7.2 before installing
+ JBoss Tools.
+ </p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
Modified: trunk/documentation/whatsnew/examples/examples-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/examples/examples-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/examples/examples-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -21,9 +21,9 @@
</script></head>
<body>
-<h1>Examples 3.3.0.M5 What's New</h1>
+<h1>Examples 3.3.0.Beta1 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
-href="../maven/maven-news-3.3.0.Beta1.html">Maven Tools ></a>
+href="../central/central-news-1.0.0.Beta1.html">Central Tools ></a>
</p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
@@ -39,7 +39,7 @@
<a name="itemnam1e" id="itemname1"></a><b>New Project Example wizard</b>
</td>
<td width="70%" valign="top">
- <p>JBoss Tools now includes a new wizard to download and import project examples.<br/>
+ <p>JBoss Tools now uses a new and streamlined wizard to download and import project examples.<br/>
The wizard starts using Help>Project Examples or by clicking an item in the JBoss Central editor.
</p>
<p>
Modified: trunk/documentation/whatsnew/forge/forge-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/forge/forge-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/forge/forge-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -24,7 +24,7 @@
<h1>Forge Tools 3.3.0.Beta1 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="">Other Tools ></a></p>
+ href="../maven/maven-news-3.3.0.Beta1.html">Maven Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Added: trunk/documentation/whatsnew/images/browsersim-skinned.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/browsersim-skinned.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/browsersim_icon.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/browsersim_icon.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/index.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -39,33 +39,35 @@
<p align="right"><b>3.3.0.Beta1</b>
<td valign="top">
- <!-- <p><a
+ <p><a
href="core/core-news-3.3.0.Beta1.html">Core/General</a></p>
- -->
+
+ <p><a href="as/as-news-3.3.0.Beta1.html">JBoss AS Server
+ Tools</a></p>
+
<p><a href="openshift/openshift-news-2.3.0.Beta1.html">OpenShift
Tools</a></p>
- <p><a href="as/as-news-3.3.0.Beta1.html">JBoss AS Server
- Tools</a></p>
+ <p><a href="cdi/cdi-news-3.3.0.Beta1.html">CDI/Seam 3 Tools</a></p>
+ <p><a href="seam/seam-news-3.3.0.Beta1.html">Seam 2 Tools</a></p>
+
+ <p><a href="forge/forge-news-3.3.0.Beta1.html">Forge Tools</a></p>
+
+ <p><a href="maven/maven-news-3.3.0.Beta1.html">Maven Tools</a></p>
+
+ <p><a href="ws/ws-news-1.2.2.Beta1.html">Webservices Tools</a></p>
+
<p><a href="jst/jst-news-3.3.0.Beta1.html">JST/JSF</a></p>
<p><a href="vpe/vpe-news-3.3.0.Beta1.html">Visual Page Editor</a></p>
- <p><a href="cdi/cdi-news-3.3.0.Beta1.html">CDI/Seam 3 Tools</a></p>
- <p><a href="forge/forge-news-3.3.0.Beta1.html">Forge Tools</a></p>
+
<p><a href="hibernate/hibernate-news-3.5.0.Beta1.html">Hibernate Tools</a></p>
+
<p><a href="examples/examples-news-3.3.0.Beta1.html">Project Examples</a></p>
-
- <p><a href="seam/seam-news-3.3.0.Beta1.html">Seam 2 Tools</a></p>
-
- <p><a href="maven/maven-news-3.3.0.Beta1.html">Maven Tools</a></p>
<p><a href="central/central-news-1.0.0.Beta1.html">JBoss Central</a></p>
<p><a href="usage/usage-news-3.3.0.Beta1.html">Usage</a></p>
- <p><a href="ws/ws-news-1.2.2.Beta1.html">Webservices Tools</a></p>
- <!--
- <p><a href="teiid/teiid-news-7.6.html">Teiid Designer</a></p>
- -->
</td>
</tr>
<tr>
Modified: trunk/documentation/whatsnew/jst/jst-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/jst/jst-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -28,41 +28,47 @@
<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
<tr>
<td colspan="2">
<hr />
- <h3>Hyperlinks (OpenOns)</h3>
+ <h3>Performance</h3>
<hr />
</td>
</tr>
<tr>
<td valign="top" align="left">
- <p><b>faces-config.xml</b></p>
+ <p></p>
</td>
<td valign="top">
<p>
- Resource bundle defined in <base-name>resources</base-name> in faces-config.xml can now be navigated to via OpenOn (Ctrl+Click).
+ We have fixed some important
+ performance issues with importing Web projects. It now
+ takes much less time to import big projects. For
+ example some of the quickstarts is now 4s faster to load.
</p>
- <p><small><a href="https://jira.jboss.org/browse/JBIDE-10404">Related Jira</a></small></p>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-10442">Related Jira</a></small></p>
</td>
</tr>
-
+
<tr>
<td colspan="2">
<hr />
+ <h3>Hyperlinks (OpenOns)</h3>
+ <hr />
</td>
</tr>
<tr>
<td valign="top" align="left">
- <p><b>*.tld navigation</b></p>
+ <p><b>faces-config.xml</b></p>
</td>
<td valign="top">
<p>
- Navigation also now works for tag libs defined in <path> in *.tld files;
+ Resource bundle defined in <base-name>resources</base-name> in faces-config.xml can now be navigated to via OpenOn (Ctrl+Click).
</p>
- <p><small><a href="https://jira.jboss.org/browse/JBIDE-10302">Related Jira</a></small></p>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-10404">Related Jira</a></small></p>
</td>
</tr>
@@ -74,37 +80,36 @@
<tr>
<td valign="top" align="left">
- <p><b>JBoss Tools XML Editor</b></p>
+ <p><b>*.tld navigation</b></p>
</td>
<td valign="top">
<p>
- Drop-down fields available in Tree tab of JBoss Tools XML Editor can now be used as links to navigate to the corresponding element of the XML file.
+ Navigation also now works for tag libs defined in <path> in *.tld files;
</p>
- <img src="images/3.3.0.Beta1/xml.png"/>
- <p><small><a href="https://jira.jboss.org/browse/JBIDE-10576">Related Jira</a></small></p>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-10302">Related Jira</a></small></p>
</td>
</tr>
<tr>
<td colspan="2">
<hr />
- <h3>Performance</h3>
- <hr />
</td>
</tr>
<tr>
<td valign="top" align="left">
- <p></p>
+ <p><b>JBoss Tools XML Editor</b></p>
</td>
<td valign="top">
<p>
- We have fixed some important performance issues with importing Web projects. It now takes much less time to import big projects.
+ Drop-down fields available in Tree tab of JBoss Tools XML Editor can now be used as links to navigate to the corresponding element of the XML file.
</p>
- <p><small><a href="https://jira.jboss.org/browse/JBIDE-10442">Related Jira</a></small></p>
+ <img src="images/3.3.0.Beta1/xml.png"/>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-10576">Related Jira</a></small></p>
</td>
</tr>
+
<tr>
<td colspan="2">
<hr />
Modified: trunk/documentation/whatsnew/maven/maven-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/maven/maven-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/maven/maven-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -24,7 +24,7 @@
<h1>Maven Tools</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../hibernate/hibernate-news-3.5.0.M3.html">Hibernate Tools ></a></p>
+ href="../ws/ws-news-1.2.2.Beta1.html">Webservices Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
<td colspan="2">
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -29,7 +29,7 @@
<p align="right">
<a href="../index.html">< Main Index</a> <a
- href="../as/as-news-3.3.0.Beta1.html">Server Tools ></a>
+ href="../cdi/cdi-news-3.3.0.Beta1.html">CDI Tools ></a>
</p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/usage/usage-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/usage/usage-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/usage/usage-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -23,7 +23,7 @@
<h1>What's New Usage Reporting 3.3.0.Beta1</h1>
<p align="right">
- <a href="../index.html">< Main Index</a> <a href="../as/as-news-3.3.0.Beta1.html">AS Tools</a>
+ <a href="../index.html">< Main Index</a>
</p>
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -25,7 +25,7 @@
<p align="right">
<a href="../index.html">< Main Index</a>
-<a href="../cdi/cdi-news-3.3.0.Beta1.html">CDI/Seam 3 Tools ></a>
+<a href="../hibernate/hibernate-news-3.5.0.Beta1.html">Hibernate Tools ></a>
</p>
<table border="0" cellpadding="10" cellspacing="0">
@@ -39,21 +39,22 @@
<tr>
<td valign="top" align="left">
<b><p>
- New look of BrowserSim
+ New look for BrowserSim
<p></b>
</td>
<td valign="top">
- <p>Now <a href="vpe-news-3.3.0.M5.html">BrowserSim</a> supports predefined skins.</p>
- <p><img src="images/3.3.0.Beta1/10431-browsersim-skin.png"
- alt=""
- title=""/></p>
+ <p>BrowserSim got a new main icon.</p>
+ <p><img src="../images/browsersim_icon.png"/ height=33
+ width=40></p>
+ <p>And with it also support for predefined skins.</p>
+ <p><img src="../images/browsersim-skinned.png"/ height=727 width=384></p>
+ <p>Currently only an iPhone skin, but more are planned.</p>
<p><small>
<a href="https://jira.jboss.org/jira/browse/JBIDE-10431">Related Jira</a>
</small></p>
</td>
</tr>
-
<tr>
<td colspan="2">
<hr />
@@ -68,7 +69,7 @@
</td>
<td valign="top">
<p>
- Now <a href="vpe-news-3.3.0.M5.html">BrowserSim</a> tries to guess which page should be opened initially. For example,
+ <a href="vpe-news-3.3.0.M5.html">BrowserSim</a> now tries to guess which page should be opened initially. For example,
it will automatically view a page which is opened in Internal Browser.
</p>
<p><img src="images/3.3.0.Beta1/10553-browsersim-default-page.png"/></p>
@@ -88,12 +89,14 @@
<tr>
<td valign="top" align="left">
<b><p>
- Visual/Source page editors row lock
+ Visual/Source page editors synchronized scrolling
<p></b>
</td>
<td valign="top">
- <p>Now while scrolling on part of the editor (Visual or Source) another one will be automatically positioned to the corresponding cotent.</p>
- <p>Row lock toolbar button is placed to the Eclipse's toolbar:</p>
+ <p>There is now a toggle for synchronized scrolling. This will
+ keep the two views in sync while scrolling.</p>
+ <p>The synchronized scrooling toolbar button is
+ located in Eclipse's toolbar:</p>
<p><img src="images/3.3.0.Beta1/8701button.png" alt="Toolbar button" /></p>
<p>Preferences page has additional checkbox option for the row lock:</p>
<p><img src="images/3.3.0.Beta1/8701prefs.png" alt="Preferences page" /></p>
@@ -102,6 +105,11 @@
</small></p>
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
<tr>
<td valign="top" align="left">
<b><p>
Modified: trunk/documentation/whatsnew/ws/ws-news-1.2.2.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/ws/ws-news-1.2.2.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
+++ trunk/documentation/whatsnew/ws/ws-news-1.2.2.Beta1.html 2012-03-13 23:23:11 UTC (rev 39485)
@@ -23,7 +23,8 @@
<body>
<h1>WS tools 3.3.0 Beta1 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a></p>
+<p align="right"><a href="../index.html">< Main Index</a> <a
+href="../jst/jst-news-3.3.0.Beta1.html">JST Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
@@ -37,9 +38,9 @@
<tr>
- <td valign="top" align="right"><a name="itemname1" id="itemname1"></a><b>Support for @ApplicationPath and web.xml overwrite</b></td>
+ <td valign="top" align="right"><a name="itemname1" id="itemname1"></a><b>Support for @ApplicationPath and web.xml override</b></td>
<td valign="top">
- <p>Support for javax.ws.rs.core.Application subclass annotated with @ApplicationPath is now available, along with support for standard JEE6 overwrite in the web app deployment descriptor. The JAX-RS Tooling will include the @ApplicationPath annotation value in your endpoints' URI Path Template if you provide a JAX-RS Application class as below:
+ <p>Support for javax.ws.rs.core.Application subclass annotated with @ApplicationPath is now available, along with support for standard JEE6 override in the web app deployment descriptor. The JAX-RS Tooling will include the @ApplicationPath annotation value in your endpoints' URI Path Template if you provide a JAX-RS Application class as below:
<pre>
@ApplicationPath("/mypath")
public class MyApplication extends Application {
@@ -84,9 +85,12 @@
<p>Most importantly to go with our AS7 support, we now have right-click integration with the JAX-RS tooling for RESTful services. Now you can right-click on one of the exposed REST methods implemented by the service and select Run As...->Run on Server.</p>
<img src="./images/JAX-RS-WS-Tester_Run_As.jpg" style="width : 826px; height : 287px;"/>
- <p>This does three things:</p>
- <ol><li>If the Web Service Tester isn't open, it will open it in the current perspective.</li>
- <li>It allows you to select which runtime to deploy the service to (and specify a default for future runs).</li>
+ <p>This does a few things:</p>
+ <ol>
+ <li>If the server is not running it will get started.</li>
+ <li>If the application is not deployed to the server it will
+ be deployed</li>
+ <li>If the Web Service Tester isn't open, it will open it in the current perspective.</li>
<li>And it automatically sets the URL for the RESTful operation as well as the method drop-down to match. For instance, if you are testing a GET method, it will set the drop-down to GET. A PUT to a PUT, etc. So all you have to do is click the Invoke button on the toolbar (the little green play button) to execute the operation.</li>
</ol>
12 years, 8 months
JBoss Tools SVN: r39484 - in trunk/documentation/whatsnew: openshift and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2012-03-13 17:33:33 -0400 (Tue, 13 Mar 2012)
New Revision: 39484
Added:
trunk/documentation/whatsnew/images/importapp_via_console.png
Modified:
trunk/documentation/whatsnew/openshift/images/wizard-import.png
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html
Log:
JBIDE-11011 retouching openshift nandn
Added: trunk/documentation/whatsnew/images/importapp_via_console.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/importapp_via_console.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/openshift/images/wizard-import.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html 2012-03-13 21:15:33 UTC (rev 39483)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.Beta1.html 2012-03-13 21:33:33 UTC (rev 39484)
@@ -33,27 +33,10 @@
</p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
<tr>
<td colspan="2">
<hr />
- <h3>General</h3>
- <hr />
- </td>
- </tr>
- <tr>
- <td valign="top" align="left">
- <a name="itemname3" id="itemname3"></a>
- <b>Complete overhaul</b>
- </td>
- <td valign="top">
- Beta1 brought big changes to the <b>OpenShift Tools</b> in JBoss Tools. We tackled three times the amount of tickets we did in M5 (a total of 160).
- We introduced the new <b>OpenShift Express console</b>, we split the single <b>wizard</b> into several ones with concise aims and
- we brought a new <b>OpenShift Server adapter</b> with its own runtime. The new adapter may publish source and binary artifacts to the PaaS.
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <hr />
<h3>OpenShift Express Console</h3>
<hr />
</td>
@@ -64,11 +47,18 @@
<b>OpenShift Express Console</b>
</td>
<td valign="top">
- The central entry point is now what we call the <b>OpenShift Express console</b>.
- It lists your accounts and applications. Actions in the context menu allow you manage your user accounts, domains, applications, embedded cartridges etc.<p>
- <img src="images/openshift-console.png" alt="OpenShift Express Console" />
- </p>
- <br />
+
+ <p> <b>OpenShift Express console</b> is a
+ view where you can get easy access to your
+ existing OpenShift accounts and applications.
+ Actions in the context menu
+ allow you manage your user accounts,
+ domains, applications, embedded cartridges
+ etc.<p>
+
+ <img src="images/openshift-console.png" alt="OpenShift Express Console" />
+
+ <br />
<p>
<small>
<a href="https://issues.jboss.org/browse/JBIDE-10528">Related Jira</a>
@@ -76,6 +66,47 @@
</p>
</td>
</tr>
+ <tr><td colspan="2"><hr/></td></tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
+ <b>Context menu for Applications</b></td>
+ <td valign="top">
+ <p>Right click on Applications for
+ easy access to common operations.
+ <p>
+ <p>
+
+ <img
+ src="../images/importapp_via_console.png"/
+ height=258 width=424> </p>
+
+ <p>
+ These operations currently include:
+
+ <ul>
+ <li>Web Browser - opens the rhcloud.com url
+ for the application.</li>
+ <li>Remote Console - opens the remote
+ console for the application - this tails
+ the logging files for your
+ application.</li>
+ <li>Edit embeddable Cartridges - allow you
+ to add/remove cartridges from your
+ application.</li>
+ <li>Import application - starts the
+ OpenShift wizard preconfigured to import
+ the selected application</li>
+ <li>Create a server Adapter - setup a
+ server adapter for the applictation</li>
+ <li>Properties - shows the properties view</li>
+ </ul>
+
+ </p>
+
+ </td>
+ </tr>
+
+
<tr><td colspan="2"><hr/></td></tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
@@ -87,20 +118,26 @@
</p>
<p>
<small> <a
- href="https://issues.jboss.org/browse/JBIDE-10528">Related Jira</a>
+ href="https://issues.jboss.org/browse/JBIDE-10528">Related
+ Jira</a>
</small>
</p>
</td>
</tr>
- <tr><td colspan="2"><hr/></td></tr>
+
+ <td colspan="2">
+
+ <hr />
+ </td>
+ </tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
- <b>User passwords</b>
+ <b>Save password</b>
</td>
<td valign="top">
- We now allow you to store your OpenShift user password in the <b>secure storage</b>.
- You wont have to retype it over and over again.
- <p>
+ You can now optionally save your OpenShift user password in the <b>secure storage</b>.
+ Avoiding you to have to type in the
+ password on every interaction with OpenShift.<p>
<img src="images/secure-storage.png"/>
</p>
<p>
@@ -116,7 +153,10 @@
<b>Embedded cartridges</b>
</td>
<td valign="top">
- You may now add or remove embedded cartridges for your applications. Beta1 offers it's own wizard for that sake.
+ "Edit embed cartridges" allow you to add or remove embedded
+ cartridges for your applications. This
+ is available by right-clicking on the
+ application in the Express Console.
<p>
<img src="images/edit-embedded-cartridges.png"/>
</p>
@@ -131,47 +171,52 @@
</tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
- <b>Create Application</b>
+ <b>Create or Use Existing Application</b>
</td>
<td valign="top">
- You may now create a new <b>OpenShift application</b> and import it to your workspace in a single hop.
- Choose name, type, embedded cartridges and get over to the settings for your local project.
+ You may now create a new <b>OpenShift application</b> and import it to your workspace in a single flow.
+ Choose name, type, any embedded
+ cartridges you want active on the
+ project and the wizard will create the
+ application on OpenShift and import it
+ into Eclipse.
<p>
<img src="images/wizard-new-application.png"/>
</p>
+
+ <p>You can also choose to use an
+ existing application.</p>
+
+ <p>
+ <img src="images/wizard-import.png"/>
+ </p>
+
+ <p>Using the Browse... button you can choose
+ from existing applications.</p>
+
+ <p><img src="images/wizard-select-existing.png"/></p>
</td>
<tr><td colspan="2"><hr/></td></tr>
+
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
- <b>Import Application</b></td>
- <td valign="top">
- When importing, the application creation wizard will preselect the application you've chosen in the express console.
- <p>
- <img src="images/wizard-import.png" />
- </p>
- You may of course also make up your mind and choose another OpenShift application.
- A separate dialog allows you to pick among the applications you're currently running on your PaaS.
- <p>
- <img src="images/wizard-select-existing.png" />
- </p>
- <p>
- <small>
- <a href="https://issues.jboss.org/browse/JBIDE-10479">Related Jira</a>
- </small>
- </p>
- </td>
- </tr>
- <tr><td colspan="2"><hr/></td></tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
<b>Workspace project</b></td>
<td valign="top">
When you create or import an OpenShift application, you may choose to either import it into a <b>new project</b>
- or to enable OpenShift for an <b>existing project</b> in your workspace.
+ or to have the wizard enable the
+ select OpenShift Application on an <b>existing
+ local project</b> in your workspace.
We currently allow you to enable OpenShift for <b>Eclipse WTP</b> projects but we'll widen this up in upcoming releases.<br />
<p>
<img src="images/wizard-project.png" />
</p>
+
+ <p>When you use an existing project what
+ happens behind the scenes is that the project
+ contents gets merged with the key metadata
+ files from the OpenShift application and you
+ can then deploy your own local application
+ into OpenShift.</p>
</td>
</tr>
<tr><td colspan="2"><hr/></td></tr>
@@ -179,8 +224,14 @@
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
<b>OpenShift Maven Profile</b></td>
<td valign="top">
- When you enable OpenShift for an existing maven project in your workspace, we'll make sure it has the required
- maven <b>openshift</b> profile. We add it to the pom if it's not present yet.
+ When you enable OpenShift for an
+ existing maven project in your workspace,
+ we'll make sure it has a
+ maven <b>openshift</b> profile which
+ is used when the project is built on
+ OpenShift.
+
+ Note: We only add it to the pom if it's not present yet.
<p>
<small>
<a href="https://issues.jboss.org/browse/JBIDE-10444">Related Jira</a>
@@ -199,11 +250,17 @@
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
<b>OpenShift Server Runtime</b></td>
<td valign="top">
- In M5 the <b>server adapter</b> was only created when importing an OpenShift application.
- Beta1 improves this a lot and allows you to exclusively create the server adapter.
+
+ <p> In M5 the <b>server adapter</b> was only
+ created when importing an OpenShift
+ application. Beta1 improves this a lot and
+ allows you to create the server adapter
+ independently of the application import.</p>
+
+ <p>
Choose <b>Create a Server Adapter</b> in the
context menu of the <b>OpenShift Express Console</b> and here you go, you get a fresh adapter for your
- existing OpenShift application.
+ existing OpenShift application. </p>
<p>
<img src="images/console-create-a-server-adapter.png" alt="create server adapter" />
</p>
@@ -218,9 +275,19 @@
<p>
<img src="images/server-adapter-wizard-2.png" />
</p>
- The new OpenShift Server Adapter is not bound to JBoss AS7 any more, it has its own runtime.
- You may therefore use it to publish to <b>any OpenShift application</b>. The prior limitation that restricted
- you to publish to jbossas-7 applications only, is gone.
+
+ </tr>
+ <tr><td colspan="2"><hr/></td></tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
+ <b>Any Application Deployed</b></td>
+ <td valign="top">
+
+ <p>The new OpenShift Server Adapter is
+ not bound to JBoss AS7 any more, it
+ has no runtime connection.
+ </p>
+ <p>
+ You may therefore use it to publish to <b>any OpenShift application</b>. The prior limitation that restricted you to publish to jbossas-7 applications only, is gone.
<p>
<small>
<a href="https://issues.jboss.org/browse/JBIDE-10716">Related Jira</a>
@@ -251,16 +318,48 @@
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a>
<b>Source & Binary Deployment</b></td>
<td valign="top">
- The new <b>OpenShift Server adapter</b> is now able to publish source and binary artifacts.
- When you create the adapter, you bind it to a project in your workspace.
- He'll (git) push any changes in the <b>source</b> of this project and publish them to the OpenShift application.
- That's what we call the source publishing mode. <br/>
- Given a <b>jbossas-7</b> application, you may also drag and drop projects to the adapter as
- you always could with Eclipse WTP server adapters.
- The adapter will build wars for these projects,
- copy them to the <b>deployments</b> folder of your project (the project the adapter is bound to)
- and push them to the OpenShift application. The JBoss AS7.1 will then pick those wars and deploy them.
- This is what we call the <b>binary</b> mode where binary artifacts are published to OpenShift.
+ <p>
+ The new <b>OpenShift Server
+ adapter</b> is now able to publish
+ source and binary artifacts.
+ </p>
+
+ <p>
+ When you create the adapter, it will
+ be associated to a git enabled
+ OpenShift project in your
+ workspace.</p>
+
+ <p>This project is used as the "source"
+ deployment, thus any changes within
+ this project is expected to be
+ built via OpenShift source build
+ process when git push occurs.</p>
+
+ <p>In addition we now also support you to
+ drag any existing deployable artifact
+ such as WTP projects, deployable
+ datasources etc. to the OpenShift
+ server. If these artifacts are not
+ part of the "source" project the
+ server adapter will package them up
+ and place by default inside the
+ <code>/deployments</code> folder of
+ the project. Then when git push occurs
+ these binaries will be part of the
+ deployments on OpenShift for the
+ "source" project.</p>
+
+ <p>This is what we call "binary" deployment
+ and is useful for applications that for any
+ reasons or another cannot be build remotely.
+ </p>
+
+ <p>Note: OpenShift have a storage limit thus
+ storing to many binaries or doing too many
+ binary changes will make you reach this
+ limit faster so be careful.</p>
+
<p>
<small>
<a href="https://issues.jboss.org/browse/JBIDE-10480">Related Jira</a>
12 years, 8 months
JBoss Tools SVN: r39483 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2012-03-13 17:15:33 -0400 (Tue, 13 Mar 2012)
New Revision: 39483
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
JBIDE-11185
https://issues.jboss.org/browse/JBIDE-11185
Button Remove disabled until previous action is completed..
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2012-03-13 19:53:24 UTC (rev 39482)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2012-03-13 21:15:33 UTC (rev 39483)
@@ -985,6 +985,7 @@
* @author eskimo
*/
public abstract class BaseAction extends Action {
+ boolean busy;
SeamRuntime[] runtimes = new SeamRuntime[0];
@@ -1156,7 +1157,7 @@
@Override
protected void updateEnablement() {
- setEnabled(runtimes.length > 0);
+ setEnabled(runtimes.length > 0 && !busy);
}
/**
@@ -1166,12 +1167,16 @@
*/
@Override
public void run() {
+ busy = true;
+ updateEnablement();
for (SeamRuntime rt : runtimes) {
removeRuntime(rt);
}
tableView.refresh();
setDefaultRuntimes();
performApply();
+ busy = false;
+ updateEnablement();
}
private void removeRuntime(SeamRuntime r) {
12 years, 8 months
JBoss Tools SVN: r39482 - trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2012-03-13 15:53:24 -0400 (Tue, 13 Mar 2012)
New Revision: 39482
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java
Log:
JBIDE-11285 welcome content of project examples broken
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java 2012-03-13 19:34:58 UTC (rev 39481)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/ProjectExamplesActivator.java 2012-03-13 19:53:24 UTC (rev 39482)
@@ -480,7 +480,7 @@
view.getCheatSheetViewer().setInput(id, id, finalURL, new DefaultStateManager(), false);
} else {
try {
- if (finalURL.toString().endsWith(README_MD) || finalURL.toString().endsWith(README_TXT)) {
+ if (finalURL.toString().endsWith(README_MD) || finalURL.toString().endsWith(README_TXT) || finalURL.toString().endsWith(README_MDU)) {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IFile[] files = null;
12 years, 8 months
JBoss Tools SVN: r39481 - tags.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-03-13 15:34:58 -0400 (Tue, 13 Mar 2012)
New Revision: 39481
Added:
tags/jbosstools-3.3.0.Beta1/
Log:
tag for Beta1
12 years, 8 months
JBoss Tools SVN: r39480 - trunk/requirements/seam-2.2.1.Final.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-03-13 15:28:33 -0400 (Tue, 13 Mar 2012)
New Revision: 39480
Modified:
trunk/requirements/seam-2.2.1.Final/build.properties
Log:
sourceforge complains when there's an extra / in 2.2.1.Final//jboss-seam-2.2.1.Final.zip... stupid sourceforge.
Modified: trunk/requirements/seam-2.2.1.Final/build.properties
===================================================================
--- trunk/requirements/seam-2.2.1.Final/build.properties 2012-03-13 18:42:40 UTC (rev 39479)
+++ trunk/requirements/seam-2.2.1.Final/build.properties 2012-03-13 19:28:33 UTC (rev 39480)
@@ -1,5 +1,5 @@
-#seam.build.uri=http://downloads.sourceforge.net/sourceforge/jboss
-seam.build.uri=http://downloads.sourceforge.net/project/jboss/JBoss%20Seam/2.2.1.Final/
+# http://downloads.sourceforge.net/project/jboss/JBoss%20Seam/2.2.1.Final/j...
+seam.build.uri=http://downloads.sourceforge.net/project/jboss/JBoss%20Seam/2.2.1.Final
seam-2.2.1.GA.build.uri=${seam.build.uri}
build.uri=${seam-2.2.1.GA.build.uri}
build.archive=jboss-seam-2.2.1.Final.zip
12 years, 8 months