JBoss Tools SVN: r41770 - in trunk: tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-06-07 09:45:32 -0400 (Thu, 07 Jun 2012)
New Revision: 41770
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java
Log:
Added method getToolbarButtons to fix Juno issues with SWTBot (fix taken from Eclipse Bug 375598 proposed patch)
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java 2012-06-07 13:42:02 UTC (rev 41769)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/console/ConsoleClearingTask.java 2012-06-07 13:45:32 UTC (rev 41770)
@@ -1,6 +1,5 @@
package org.jboss.tools.portlet.ui.bot.task.console;
-import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarButton;
import org.jboss.tools.portlet.ui.bot.task.AbstractSWTTask;
import org.jboss.tools.ui.bot.ext.SWTBotFactory;
@@ -17,9 +16,8 @@
@Override
public void perform() {
// does not use the ConsoleView.clear() funtionality because it didn't work for me
- SWTBotView view = SWTBotFactory.getConsole().show();
-
- for (SWTBotToolbarButton button : view.getToolbarButtons()){
+
+ for (SWTBotToolbarButton button : SWTBotFactory.getConsole().getToolbarButtons()){
if (button.isEnabled() && IDELabel.ConsoleView.BUTTON_CLEAR_CONSOLE_TOOLTIP.equals(button.getToolTipText())){
button.click();
}
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java 2012-06-07 13:42:02 UTC (rev 41769)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java 2012-06-07 13:45:32 UTC (rev 41770)
@@ -1,8 +1,29 @@
package org.jboss.tools.ui.bot.ext.view;
+import java.util.ArrayList;
+import java.util.List;
+
import org.apache.log4j.Logger;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.ToolBarManager;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.ToolBar;
+import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
+import org.eclipse.swtbot.swt.finder.results.ListResult;
+import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarButton;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarDropDownButton;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarPushButton;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarRadioButton;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarSeparatorButton;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton;
+import org.eclipse.ui.IViewSite;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.internal.WorkbenchPartReference;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.SWTOpenExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
@@ -45,4 +66,44 @@
return open.viewOpen(viewObject);
}
+ public List<SWTBotToolbarButton> getToolbarButtons() {
+ return UIThreadRunnable.syncExec(new ListResult<SWTBotToolbarButton>() {
+
+ public List<SWTBotToolbarButton> run() {
+ SWTBotView view = show();
+ IWorkbenchPart obj = ((WorkbenchPartReference) view.getReference()).getPart(false);
+ ToolBar toolbar = null;
+ IToolBarManager t = ((IViewSite)obj.getSite()).getActionBars().getToolBarManager();
+ if (t instanceof ToolBarManager) {
+ toolbar = ((ToolBarManager)t).getControl();
+ }
+
+ final List<SWTBotToolbarButton> l = new ArrayList<SWTBotToolbarButton>();
+
+ if (toolbar == null)
+ return l;
+
+ ToolItem[] items = toolbar.getItems();
+ for (int i = 0; i < items.length; i++) {
+ try {
+ if (SWTUtils.hasStyle(items[i], SWT.PUSH))
+ l.add(new SWTBotToolbarPushButton(items[i]));
+ else if(SWTUtils.hasStyle(items[i], SWT.CHECK))
+ l.add(new SWTBotToolbarToggleButton(items[i]));
+ else if(SWTUtils.hasStyle(items[i], SWT.RADIO))
+ l.add(new SWTBotToolbarRadioButton(items[i]));
+ else if(SWTUtils.hasStyle(items[i], SWT.DROP_DOWN))
+ l.add(new SWTBotToolbarDropDownButton(items[i]));
+ else if(SWTUtils.hasStyle(items[i], SWT.SEPARATOR))
+ l.add(new SWTBotToolbarSeparatorButton(items[i]));
+ } catch (WidgetNotFoundException e) {
+ e.printStackTrace();
+ }
+ }
+
+ return l;
+
+ }
+ });
+ }
}
13 years, 4 months
JBoss Tools SVN: r41769 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-06-07 09:42:02 -0400 (Thu, 07 Jun 2012)
New Revision: 41769
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleGatein.java
Log:
Changed example category
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleGatein.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleGatein.java 2012-06-07 13:32:27 UTC (rev 41768)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/AbstractPortletExampleGatein.java 2012-06-07 13:42:02 UTC (rev 41769)
@@ -17,7 +17,7 @@
@Override
public String getExampleCategory() {
- return "Portlet for GateIn 3.1/EPP 5.x";
+ return "Portlet for JBoss Enterprise Portal Platform 5.x/GateIn 3.1";
}
@Override
13 years, 4 months
JBoss Tools SVN: r41768 - trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2012-06-07 09:32:27 -0400 (Thu, 07 Jun 2012)
New Revision: 41768
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java
Log:
JBIDE-10738
As-you-type EL validation
Added a check due to prevent BLE
Modified: trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java 2012-06-07 12:42:38 UTC (rev 41767)
+++ trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java 2012-06-07 13:32:27 UTC (rev 41768)
@@ -424,16 +424,28 @@
}
protected void process(DirtyRegion dirtyRegion) {
- if (!isInstalled() || isInRewrite() || dirtyRegion == null || getDocument() == null || fIsCanceled) {
+ IDocument doc = getDocument();
+
+ if (!isInstalled() || isInRewrite() || dirtyRegion == null || doc == null || fIsCanceled) {
return;
}
+ int start = dirtyRegion.getOffset();
+ int end = dirtyRegion.getOffset() + dirtyRegion.getLength();
+
+ // Check the document boundaries
+ int docLen = doc.getLength();
+ if (docLen == 0)
+ return;
+
+ if (start > docLen)
+ start = docLen;
+ if (end >= docLen)
+ end = docLen - 1;
+
/*
* Expand dirtyRegion to partitions boundaries
*/
- int start = dirtyRegion.getOffset();
- int end = dirtyRegion.getOffset() + dirtyRegion.getLength();
-
try {
ITypedRegion startPartition = (fDocument instanceof IDocumentExtension3) ?
((IDocumentExtension3)fDocument).getPartition(IJavaPartitions.JAVA_PARTITIONING, start, true) :
13 years, 4 months
JBoss Tools SVN: r41767 - in trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2012-06-07 08:42:38 -0400 (Thu, 07 Jun 2012)
New Revision: 41767
Added:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java
Log:
Fixed - JBIDE-12119
default for apptype should be unselected, use last selected one if possible
Added: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java (rev 0)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java 2012-06-07 12:42:38 UTC (rev 41767)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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.tools.openshift.express.internal.ui.utils;
+
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.InstanceScope;
+import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
+
+/**
+ * A small utility class that accesses the preferences to keep the last
+ * cartridge that a user selected to create an OpenShift Application.
+ *
+ * @author Xavier Coulon
+ *
+ */
+public class OpenShiftUserPreferencesProvider {
+
+ private static final String LAST_SELECTED_CARTRIDGE_KEY = OpenShiftUIActivator.PLUGIN_ID + ".lastSelectedCartridge";
+
+ /**
+ * @return the last selected value, or null if that preference does not exist yet.
+ */
+ public String getLastSelectedCartridgeName() {
+ // Find the last-selected one
+ IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(OpenShiftUIActivator.PLUGIN_ID);
+ return prefs.get(LAST_SELECTED_CARTRIDGE_KEY, null);
+ }
+
+ /**
+ * Stores the given cartridge name in the preferences.
+ * @param name
+ */
+ public void setLastSelectedCartridgeName(String name) {
+ IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(OpenShiftUIActivator.PLUGIN_ID);
+ prefs.put(LAST_SELECTED_CARTRIDGE_KEY, name);
+ }
+
+}
Property changes on: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java 2012-06-07 12:35:43 UTC (rev 41766)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java 2012-06-07 12:42:38 UTC (rev 41767)
@@ -21,6 +21,7 @@
import org.jboss.tools.openshift.express.internal.core.CartridgeNameComparator;
import org.jboss.tools.openshift.express.internal.core.console.UserDelegate;
import org.jboss.tools.openshift.express.internal.ui.utils.Logger;
+import org.jboss.tools.openshift.express.internal.ui.utils.OpenShiftUserPreferencesProvider;
import org.jboss.tools.openshift.express.internal.ui.utils.StringUtils;
import com.openshift.client.ApplicationScale;
@@ -61,7 +62,8 @@
private List<IGearProfile> gearProfiles = new ArrayList<IGearProfile>();
private List<IEmbeddableCartridge> embeddedCartridges = new ArrayList<IEmbeddableCartridge>();
private String existingApplicationName;
- private boolean existingApplicationsLoaded = false;;
+ private boolean existingApplicationsLoaded = false;
+ private OpenShiftUserPreferencesProvider openShiftUserPreferencesProvider = new OpenShiftUserPreferencesProvider();
public ApplicationConfigurationWizardPageModel(OpenShiftExpressApplicationWizardModel wizardModel)
throws OpenShiftException {
@@ -207,7 +209,9 @@
public void setCartridges(List<ICartridge> cartridges) {
Collections.sort(cartridges, new CartridgeNameComparator());
firePropertyChange(PROPERTY_CARTRIDGES, this.cartridges, this.cartridges = cartridges);
- setSelectedCartridge(ICartridge.JBOSSAS_7);
+ final String lastSelectedCartridgeName = openShiftUserPreferencesProvider.getLastSelectedCartridgeName();
+ final ICartridge selectedCartridge = getCartridgeByName(lastSelectedCartridgeName);
+ setSelectedCartridge(selectedCartridge);
}
public List<ICartridge> getCartridges() {
@@ -243,7 +247,7 @@
public IGearProfile getGearProfileByName(String name) {
List<IGearProfile> gearProfiles = getGearProfiles();
- if (gearProfiles == null) {
+ if (gearProfiles == null || name == null) {
return null;
}
@@ -258,6 +262,23 @@
return matchingGearProfile;
}
+ public ICartridge getCartridgeByName(String name) {
+ List<ICartridge> cartridges = getCartridges();
+ if (cartridges == null || name == null) {
+ return null;
+ }
+
+ ICartridge matchingCartridge = null;
+ for (ICartridge cartridge : cartridges) {
+ if (name.equals(cartridge.getName())) {
+ matchingCartridge = cartridge;
+ break;
+ }
+ }
+
+ return matchingCartridge;
+ }
+
/**
* forces property change listeners to update their value
*/
@@ -271,6 +292,9 @@
firePropertyChange(PROPERTY_SELECTED_CARTRIDGE
, wizardModel.getApplicationCartridge()
, wizardModel.setApplicationCartridge(cartridge));
+ if(cartridge != null) {
+ openShiftUserPreferencesProvider.setLastSelectedCartridgeName(cartridge.getName());
+ }
}
protected void setSelectedCartridge(IApplication application) {
13 years, 4 months
JBoss Tools SVN: r41766 - in branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2012-06-07 08:35:43 -0400 (Thu, 07 Jun 2012)
New Revision: 41766
Added:
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java
Modified:
branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java
Log:
Fixed - JBIDE-12119
default for apptype should be unselected, use last selected one if possible
Added: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java (rev 0)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java 2012-06-07 12:35:43 UTC (rev 41766)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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.tools.openshift.express.internal.ui.utils;
+
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.InstanceScope;
+import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
+
+/**
+ * A small utility class that accesses the preferences to keep the last
+ * cartridge that a user selected to create an OpenShift Application.
+ *
+ * @author Xavier Coulon
+ *
+ */
+public class OpenShiftUserPreferencesProvider {
+
+ private static final String LAST_SELECTED_CARTRIDGE_KEY = OpenShiftUIActivator.PLUGIN_ID + ".lastSelectedCartridge";
+
+ /**
+ * @return the last selected value, or null if that preference does not exist yet.
+ */
+ public String getLastSelectedCartridgeName() {
+ // Find the last-selected one
+ IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(OpenShiftUIActivator.PLUGIN_ID);
+ return prefs.get(LAST_SELECTED_CARTRIDGE_KEY, null);
+ }
+
+ /**
+ * Stores the given cartridge name in the preferences.
+ * @param name
+ */
+ public void setLastSelectedCartridgeName(String name) {
+ IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(OpenShiftUIActivator.PLUGIN_ID);
+ prefs.put(LAST_SELECTED_CARTRIDGE_KEY, name);
+ }
+
+}
Property changes on: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/OpenShiftUserPreferencesProvider.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java 2012-06-07 07:07:33 UTC (rev 41765)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPageModel.java 2012-06-07 12:35:43 UTC (rev 41766)
@@ -21,6 +21,7 @@
import org.jboss.tools.openshift.express.internal.core.CartridgeNameComparator;
import org.jboss.tools.openshift.express.internal.core.console.UserDelegate;
import org.jboss.tools.openshift.express.internal.ui.utils.Logger;
+import org.jboss.tools.openshift.express.internal.ui.utils.OpenShiftUserPreferencesProvider;
import org.jboss.tools.openshift.express.internal.ui.utils.StringUtils;
import com.openshift.client.ApplicationScale;
@@ -61,7 +62,8 @@
private List<IGearProfile> gearProfiles = new ArrayList<IGearProfile>();
private List<IEmbeddableCartridge> embeddedCartridges = new ArrayList<IEmbeddableCartridge>();
private String existingApplicationName;
- private boolean existingApplicationsLoaded = false;;
+ private boolean existingApplicationsLoaded = false;
+ private OpenShiftUserPreferencesProvider openShiftUserPreferencesProvider = new OpenShiftUserPreferencesProvider();
public ApplicationConfigurationWizardPageModel(OpenShiftExpressApplicationWizardModel wizardModel)
throws OpenShiftException {
@@ -207,7 +209,9 @@
public void setCartridges(List<ICartridge> cartridges) {
Collections.sort(cartridges, new CartridgeNameComparator());
firePropertyChange(PROPERTY_CARTRIDGES, this.cartridges, this.cartridges = cartridges);
- setSelectedCartridge(ICartridge.JBOSSAS_7);
+ final String lastSelectedCartridgeName = openShiftUserPreferencesProvider.getLastSelectedCartridgeName();
+ final ICartridge selectedCartridge = getCartridgeByName(lastSelectedCartridgeName);
+ setSelectedCartridge(selectedCartridge);
}
public List<ICartridge> getCartridges() {
@@ -243,7 +247,7 @@
public IGearProfile getGearProfileByName(String name) {
List<IGearProfile> gearProfiles = getGearProfiles();
- if (gearProfiles == null) {
+ if (gearProfiles == null || name == null) {
return null;
}
@@ -258,6 +262,23 @@
return matchingGearProfile;
}
+ public ICartridge getCartridgeByName(String name) {
+ List<ICartridge> cartridges = getCartridges();
+ if (cartridges == null || name == null) {
+ return null;
+ }
+
+ ICartridge matchingCartridge = null;
+ for (ICartridge cartridge : cartridges) {
+ if (name.equals(cartridge.getName())) {
+ matchingCartridge = cartridge;
+ break;
+ }
+ }
+
+ return matchingCartridge;
+ }
+
/**
* forces property change listeners to update their value
*/
@@ -271,6 +292,9 @@
firePropertyChange(PROPERTY_SELECTED_CARTRIDGE
, wizardModel.getApplicationCartridge()
, wizardModel.setApplicationCartridge(cartridge));
+ if(cartridge != null) {
+ openShiftUserPreferencesProvider.setLastSelectedCartridgeName(cartridge.getName());
+ }
}
protected void setSelectedCartridge(IApplication application) {
13 years, 4 months
JBoss Tools SVN: r41765 - trunk/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-06-07 03:07:33 -0400 (Thu, 07 Jun 2012)
New Revision: 41765
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
Log:
updated automated installation information
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2012-06-07 03:46:42 UTC (rev 41764)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2012-06-07 07:07:33 UTC (rev 41765)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
-<pubsnumber>21</pubsnumber>
+<pubsnumber>22</pubsnumber>
<abstract>
<para>The Getting Started Guide explains the JBoss Developer Studio.</para>
</abstract>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2012-06-07 03:46:42 UTC (rev 41764)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2012-06-07 07:07:33 UTC (rev 41765)
@@ -265,126 +265,8 @@
</listitem>
</itemizedlist>
</section>
- <section id="Installing_JBoss_Developer_Studio-Automated_Installation">
- <title>Automated Installation</title>
- <para>
- Parameters for automated installation are defined in the <filename>InstallConfigRecord.xml</filename> file. These parameters include the path to the installation folder, the packages to be installed and the shortcuts to be created.
- </para>
- <para>
- Within the <filename>InstallConfigRecord.xml</filename> file is three parameters that can be modified for specific installation options:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <property>AutomatedInstallation/com.jboss.jbds.installer.PathInputPanel/installpath</property>: Installation folder
- </para>
- </listitem>
- <listitem>
- <para>
- <property>AutomatedInstallation/com.jboss.jbds.installer.JBossAsSelectPanel/installgroup</property>: jbds
- </para>
- <!-- <para>
- Options:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- jbds: JBoss Developer Studio only installation
- </para>
- </listitem>
- <listitem>
- <para>
- jbosseap: JBoss Developer Studio with JBoss Enterprise Application Platform
- </para>
- </listitem>
- </itemizedlist> -->
- </listitem>
- <listitem>
- <para>
- <property>com.izforge.izpack.panels.ShortcutPanel</property>: Shortcut menu for installation
- </para>
- </listitem>
- </itemizedlist>
- <note>
- <para>
- If you change the installation folder path, you must update the <property>com.izforge.izpack.panels.ShortcutPanel</property> parameter to reflect the new path.
- </para>
- </note>
- <para>
- Once you have configured the <filename>InstallConfigRecord.xml</filename> file for your needs, the following command can be run on the command line to begin installation:
- </para>
-<programlisting>
-java -jar /path/to/installer.jar /path/to/InstallConfigRecord.xml
-</programlisting>
- <formalpara>
- <title>Current limitations</title>
- <para>
- The following limitations currently exist when using the automated method of installation:
- </para>
- </formalpara>
- <itemizedlist>
- <listitem>
- <para>
- Desktop shortcuts are not supported.
- </para>
- </listitem>
- <listitem>
- <para>
- Creation of shoortcuts for all users on a system has not been tested.
- </para>
- </listitem>
- <listitem>
- <para>
- Automated installation does not check if the specified installation path already exists. If the path does exist, any files will be overwritten without notice.
- </para>
- </listitem>
- <listitem>
- <para>
- The Java Virtual Manchine to be used with JBoss Developer Studio is automatically chosen and cannot be specified.
- </para>
- </listitem>
- <listitem>
- <para>
- No verification exists to ensure the installer you are using is correct for your platform.
- </para>
- </listitem>
- </itemizedlist>
- <warning>
- <para>
- Automated installation does not check if the specified installation path already exists. If the path does exist, any files will be overwritten without notice.
- </para>
- </warning>
- <para>
- An example of an <filename>InstallConfigRecord.xml</filename> file is available below:
- </para>
-<programlisting><![CDATA[
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<AutomatedInstallation langpack="eng">
- <com.jboss.jbds.installer.HTMLInfoPanelWithRootWarning id="introduction"/>
- <com.izforge.izpack.panels.HTMLLicencePanel id="licence"/>
- <com.jboss.jbds.installer.PathInputPanel id="target">
- <installpath>/opt/local/JBDS5/GA</installpath>
- </com.jboss.jbds.installer.PathInputPanel>
- <com.jboss.jbds.installer.JREPathPanel id="jre"/>
- <com.jboss.jbds.installer.JBossAsSelectPanel id="as">
- <installgroup>jbds</installgroup>
- </com.jboss.jbds.installer.JBossAsSelectPanel>
- <com.jboss.jbds.installer.UpdatePacksPanel id="updatepacks"/>
- <com.jboss.jbds.installer.DiskSpaceCheckPanel id="diskspacecheck"/>
- <com.izforge.izpack.panels.SummaryPanel id="summary"/>
- <com.izforge.izpack.panels.InstallPanel id="install"/>
- <com.jboss.jbds.installer.CreateLinkPanel id="createlink">
- <jrelocation>/usr/lib/jvm/java-1.6.0-sun-1.6.0.30.x86_64/jre/bin/java</jrelocation>
- </com.jboss.jbds.installer.CreateLinkPanel>
- <com.izforge.izpack.panels.ShortcutPanel id="shortcut"/>
- <com.jboss.jbds.installer.ShortcutPanelPatch id="shortcutpatch"/>
- <com.izforge.izpack.panels.SimpleFinishPanel id="finish"/>
-</AutomatedInstallation>
-]]>
-</programlisting>
- </section>
<section id="Installing_JBoss_Developer_Studio-Manual_Installation">
- <title>Manual Installation</title>
+ <title>Installation</title>
<para>
JBoss Developer Studio comes with a universal installer, allowing you to use the same file to install on Linux, Windows and Max OS X operating systems. The following steps show you how to install JBoss Developer Studio:
</para>
@@ -735,7 +617,125 @@
</para>
</note>
</section> -->
-
+ <section id="Installing_JBoss_Developer_Studio-Automated_Installation">
+ <title>Automating subsequent installations</title>
+ <para>
+ Parameters for automated installation are defined in the <filename>InstallConfigRecord.xml</filename> file. These parameters include the path to the installation folder, the packages to be installed and the shortcuts to be created.
+ </para>
+ <para>
+ Within the <filename>InstallConfigRecord.xml</filename> file is three parameters that can be modified for specific installation options:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <property>AutomatedInstallation/com.jboss.jbds.installer.PathInputPanel/installpath</property>: Installation folder
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <property>AutomatedInstallation/com.jboss.jbds.installer.JBossAsSelectPanel/installgroup</property>: jbds
+ </para>
+ <!-- <para>
+ Options:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ jbds: JBoss Developer Studio only installation
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ jbosseap: JBoss Developer Studio with JBoss Enterprise Application Platform
+ </para>
+ </listitem>
+ </itemizedlist> -->
+ </listitem>
+ <listitem>
+ <para>
+ <property>com.izforge.izpack.panels.ShortcutPanel</property>: Shortcut menu for installation
+ </para>
+ </listitem>
+ </itemizedlist>
+ <note>
+ <para>
+ If you change the installation folder path, you must update the <property>com.izforge.izpack.panels.ShortcutPanel</property> parameter to reflect the new path.
+ </para>
+ </note>
+ <para>
+ Once you have configured the <filename>InstallConfigRecord.xml</filename> file for your needs, the following command can be run on the command line to begin installation:
+ </para>
+ <programlisting>
+ java -jar /path/to/installer.jar /path/to/InstallConfigRecord.xml
+ </programlisting>
+ <formalpara>
+ <title>Current limitations</title>
+ <para>
+ The following limitations currently exist when using the automated method of installation:
+ </para>
+ </formalpara>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Desktop shortcuts are not supported.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Creation of shoortcuts for all users on a system has not been tested.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Automated installation does not check if the specified installation path already exists. If the path does exist, any files will be overwritten without notice.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The Java Virtual Manchine to be used with JBoss Developer Studio is automatically chosen and cannot be specified.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ No verification exists to ensure the installer you are using is correct for your platform.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <warning>
+ <para>
+ Automated installation does not check if the specified installation path already exists. If the path does exist, any files will be overwritten without notice.
+ </para>
+ </warning>
+ <para>
+ An example of an <filename>InstallConfigRecord.xml</filename> file is available below:
+ </para>
+<programlisting>
+<![CDATA[
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<AutomatedInstallation langpack="eng">
+ <com.jboss.jbds.installer.HTMLInfoPanelWithRootWarning id="introduction"/>
+ <com.izforge.izpack.panels.HTMLLicencePanel id="licence"/>
+ <com.jboss.jbds.installer.PathInputPanel id="target">
+ <installpath>/opt/local/JBDS5/GA</installpath>
+ </com.jboss.jbds.installer.PathInputPanel>
+ <com.jboss.jbds.installer.JREPathPanel id="jre"/>
+ <com.jboss.jbds.installer.JBossAsSelectPanel id="as">
+ <installgroup>jbds</installgroup>
+ </com.jboss.jbds.installer.JBossAsSelectPanel>
+ <com.jboss.jbds.installer.UpdatePacksPanel id="updatepacks"/>
+ <com.jboss.jbds.installer.DiskSpaceCheckPanel id="diskspacecheck"/>
+ <com.izforge.izpack.panels.SummaryPanel id="summary"/>
+ <com.izforge.izpack.panels.InstallPanel id="install"/>
+ <com.jboss.jbds.installer.CreateLinkPanel id="createlink">
+ <jrelocation>/usr/lib/jvm/java-1.6.0-sun-1.6.0.30.x86_64/jre/bin/java</jrelocation>
+ </com.jboss.jbds.installer.CreateLinkPanel>
+ <com.izforge.izpack.panels.ShortcutPanel id="shortcut"/>
+ <com.jboss.jbds.installer.ShortcutPanelPatch id="shortcutpatch"/>
+ <com.izforge.izpack.panels.SimpleFinishPanel id="finish"/>
+</AutomatedInstallation>
+]]>
+</programlisting>
+ </section>
<section id="Upgrading">
<?dbhtml filename="Upgrading.html"?>
<title>Upgrading</title>
13 years, 4 months
JBoss Tools SVN: r41764 - in trunk/documentation/guides/GettingStartedGuide/en-US: images/getting_started and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2012-06-06 23:46:42 -0400 (Wed, 06 Jun 2012)
New Revision: 41764
Added:
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1b.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1c.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_01.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_02.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_03.png
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_2.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_3.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4.png
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_5.png
trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
trunk/documentation/guides/GettingStartedGuide/en-US/minimumrequirements.xml
Log:
updated for JBDS-2026
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2012-06-06 23:55:32 UTC (rev 41763)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2012-06-07 03:46:42 UTC (rev 41764)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
-<pubsnumber>20</pubsnumber>
+<pubsnumber>21</pubsnumber>
<abstract>
<para>The Getting Started Guide explains the JBoss Developer Studio.</para>
</abstract>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2012-06-06 23:55:32 UTC (rev 41763)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/getting_started.xml 2012-06-07 03:46:42 UTC (rev 41764)
@@ -13,7 +13,6 @@
<section id="Welcome">
<title>Welcome</title>
- <para>In this section we'll show you how to work with the welcome page of the <property>JBoss Developer Studio</property>.</para>
<para>The welcome page is the first page you see when you first launch <property>JBoss Developer Studio</property>. </para>
<figure>
@@ -24,7 +23,11 @@
</imageobject>
</mediaobject>
</figure>
-
+
+ <para>
+ Click <guibutton>Get started with JBoss Central</guibutton> to begin using JBoss Developer Studio.
+ </para>
+ <!--
<para>With the help of its page you will be able:</para>
<itemizedlist>
<listitem>
@@ -89,7 +92,7 @@
<para>
You can start working with <property>JBoss Developer Studio</property> by clicking on the <guibutton>Workbench</guibutton> button or simply closing the Welcome page.
</para>
-
+ -->
</section>
<xi:include href="usage_reporting.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1.png
===================================================================
(Binary files differ)
Added: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1b.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1b.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1c.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_1c.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_2.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_3.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_4.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_5.png
===================================================================
(Binary files differ)
Added: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_01.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_01.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_02.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_02.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_03.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/getting_started_complete_install_03.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2012-06-06 23:55:32 UTC (rev 41763)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2012-06-07 03:46:42 UTC (rev 41764)
@@ -234,35 +234,37 @@
<section id="Installing_JBoss_Developer_Studio" condition="jbds">
<?dbhtml filename="InstallingRHDS.html"?>
- <title>JBoss Developer Studio Installation</title>
- <para>
- This section will provide you with detailed information on how to install <property>JBoss Developer Studio</property>.
- </para>
- <important>
- <para>
- If you are installing on a Linux distribution you must set the following limits in <filename>/etc/security/limits.conf</filename> upon installation completion and before running JBoss Developer Studio:
- </para>
+ <title>JBoss Developer Studio Installation</title>
+ <section>
+ <title>Important information before installation</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The Visual Page Editor tooling is only available in the 32-bit versions of the JBoss Developer Studio for Windows and Mac OS X. You may still run your application servers in 64-bit virtual machines (if needed), to insure compatibility with the production environment.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If you are installing on a Linux distribution you must set the following limits in <filename>/etc/security/limits.conf</filename> upon installation completion and before running JBoss Developer Studio:
+ </para>
<programlisting>
* soft nofile 9216
* hard nofile 9216
</programlisting>
- <para>
- These settings will ensure you do not encounter an error regarding maximum open files when starting JBoss Developer Studio.
- </para>
- <para>
- A GUI interface is also necessary for JBoss Developer Studio to run correctly. Either Gnome or KDE are acceptable.
- </para>
- </important>
- <important>
- <para>
- When installing JBoss Developer Studio on the 64-bit edition of MacOS X Snow Leopard or Lion, only the 64-bit edition of JBoss Developer Studio is supported. Though the 32-bit edition will install, many features will not work correctly due to Java 1.6 being specific to 64-bit applications on Leopard and JBoss Developer Studio requiring Java 1.6 for all features to function.
- </para>
- </important>
- <note>
- <para>
- The Visual Page Editor tools is only available in the 32-bit version of the JBoss Developer Studio. You may still run your application servers in 64-bit virtual machines (if needed), to insure compatibility with the production environment.
- </para>
- </note>
+ <para>
+ These settings will ensure you do not encounter an error regarding maximum open files when starting JBoss Developer Studio.
+ </para>
+ <para>
+ A GUI interface is also necessary for JBoss Developer Studio to run correctly. Either Gnome or KDE are acceptable.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When installing JBoss Developer Studio on the 64-bit edition of MacOS X Snow Leopard or Lion, only the 64-bit edition of JBoss Developer Studio is supported. Though the 32-bit edition will install, many features will not work correctly due to Java 1.6 being specific to 64-bit applications on Leopard and JBoss Developer Studio requiring Java 1.6 for all features to function.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
<section id="Installing_JBoss_Developer_Studio-Automated_Installation">
<title>Automated Installation</title>
<para>
@@ -279,9 +281,9 @@
</listitem>
<listitem>
<para>
- <property>AutomatedInstallation/com.jboss.jbds.installer.JBossAsSelectPanel/installgroup</property>: Software components to be installed
+ <property>AutomatedInstallation/com.jboss.jbds.installer.JBossAsSelectPanel/installgroup</property>: jbds
</para>
- <para>
+ <!-- <para>
Options:
</para>
<itemizedlist>
@@ -295,7 +297,7 @@
jbosseap: JBoss Developer Studio with JBoss Enterprise Application Platform
</para>
</listitem>
- </itemizedlist>
+ </itemizedlist> -->
</listitem>
<listitem>
<para>
@@ -361,7 +363,7 @@
<com.jboss.jbds.installer.HTMLInfoPanelWithRootWarning id="introduction"/>
<com.izforge.izpack.panels.HTMLLicencePanel id="licence"/>
<com.jboss.jbds.installer.PathInputPanel id="target">
- <installpath>/opt/local/JBDS5/beta1</installpath>
+ <installpath>/opt/local/JBDS5/GA</installpath>
</com.jboss.jbds.installer.PathInputPanel>
<com.jboss.jbds.installer.JREPathPanel id="jre"/>
<com.jboss.jbds.installer.JBossAsSelectPanel id="as">
@@ -384,13 +386,13 @@
<section id="Installing_JBoss_Developer_Studio-Manual_Installation">
<title>Manual Installation</title>
<para>
- JBoss Developer Studio comes with a simple installer, bundled with tested and preconfigured versions of Eclipse, WTP, JBossEAP, Seam, and SpringIDE. The following steps show you how to install JBoss Developer Studio:
+ JBoss Developer Studio comes with a universal installer, allowing you to use the same file to install on Linux, Windows and Max OS X operating systems. The following steps show you how to install JBoss Developer Studio:
</para>
<itemizedlist>
<listitem>
<para>
- First of all you need the appropriate installation file for your platform from <ulink url="https://www.redhat.com/apps/store/developers/jboss_developer_studio.html">Red Hat website</ulink>.
+ You can download the universal installer from here the <ulink url="https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downl...">Red Hat Customer Portal</ulink>.
</para>
</listitem>
@@ -399,9 +401,9 @@
Run the following command in a terminal window:
</para>
- <programlisting role="JAVA">
-<![CDATA[java -jar jbdevstudio-eap-linux-gtk-4.0.0.GA.jar]]>
- </programlisting>
+<programlisting role="JAVA"><![CDATA[
+java -jar jbdevstudio-product-universal-5.0.0.GA.jar]]>
+</programlisting>
</listitem>
<listitem>
@@ -420,24 +422,40 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
- <para>
- Provide the installation path
- </para>
- </listitem>
-
- <listitem>
- <para>
- Select the appropriate Java Virtual Machine
- </para>
- </listitem>
- </itemizedlist>
+ <para>
+ Accept the license agreement.
+ </para>
+
+ <figure>
+ <title>Accepting the license agreement</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_1b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Provide the installation path
+ </para>
+
+ <figure>
+ <title>Set installation path</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_1c.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Select the appropriate Java Virtual Machine
+ </para>
<note>
<title>Tip:</title>
<para>
- By selecting <emphasis><property>Default Java VM</property></emphasis> you set default Java VM of your system (to verify your Java environment, type "java -version" in console).
+ By selecting <emphasis><property>Default Java VM</property></emphasis> you set the default Java VM of your system (to verify your Java environment, type "java -version" in console).
</para>
</note>
@@ -445,13 +463,6 @@
Selecting the <emphasis> <property>Specific Java VM</property> </emphasis> option will allow you to provide the path to a specific Java VM installation.
</para>
-<!-- <note>
- <title>Note:</title>
- <para>
- JBoss Developer Studio 4.0 comes integrated with JBoss EAP 5.1 that requires JDK 6.0 to run and "gij" isn't available on every platform.
- </para>
- </note> -->
-
<figure>
<title>Select Java VM</title>
<mediaobject>
@@ -461,27 +472,12 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
- <!-- <para>
- As part of the installation you can choose to install <ulink url="http://www.jboss.com/products/platforms/application">JBoss Enterprise Application Platform</ulink>. Select <emphasis><property>Yes</property></emphasis> to use it in JBoss Developer Studio.
- </para>
-
- <note>
- <title>Note:</title>
- <para>
- Like in the previous version of JBoss Developer Studio, version 4.0.0.GA comes integrated with JBoss EAP 5.1 that supports EAP 5 adapter and Seam 2.2.
- </para>
- </note> -->
-
- <para>
- This step lets you configure locally available JBoss Application Servers:
- </para>
- </listitem>
- </itemizedlist>
+ <para>
+ This step lets you configure locally available JBoss servers:
+ </para>
<figure>
- <title>JBoss Enterprise Application Platform Installing</title>
+ <title>Configuring a JBoss Enterprise Application Platform installation</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/getting_started/getting_started_3.png"/>
@@ -489,8 +485,6 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
<para>
You can fill the list automatically using the
<guibutton>
@@ -506,9 +500,7 @@
</guibutton>
button to select the chosen folder.
</para>
- </listitem>
- </itemizedlist>
-
+ <!--
<figure>
<title>Finding Servers in the Selected Directory</title>
<mediaobject>
@@ -518,16 +510,12 @@
</mediaobject>
</figure>
- <para/>
+ <para/> -->
- <itemizedlist>
- <listitem>
<para>
- All available servers in the selected directory will be added to the list with the following details: Name, Type, Version and Location.
+ All found servers will be added to the list with the following details: Name, Type, Version and Location.
</para>
- </listitem>
- </itemizedlist>
-
+ <!--
<itemizedlist>
<listitem>
<para>
@@ -599,15 +587,13 @@
</mediaobject>
</figure>
- <para/>
+ <para/> -->
<!-- <note>
<title>Note:</title>
<para>The installer installs JBoss Enterprise Application Platform for running your applications
if you select this option during the installation process. If you want to use a different server
than ours, you can change the setting in JBoss Developer Studio.</para>
</note>-->
- <itemizedlist>
- <listitem>
<para>
Click the
<guibutton>
@@ -623,11 +609,7 @@
</guibutton>
button to start installation.
</para>
- </listitem>
- </itemizedlist>
- <para/>
-
<figure>
<title>Summary Information</title>
<mediaobject>
@@ -636,6 +618,45 @@
</imageobject>
</mediaobject>
</figure>
+
+ <para>
+ Installation will then take place.
+ </para>
+
+ <figure>
+ <title>Installation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_complete_install_01.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ Once installation completes you will have the option to create shortcuts to JBoss Developer Studio.
+ </para>
+
+ <figure>
+ <title>Shortcut creation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_complete_install_02.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>
+ The final screen will declare that <guilabel>Installation has completed successfully</guilabel>. Click the <guibutton>Done</guibutton> button.
+ </para>
+
+ <figure>
+ <title>Completion</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/getting_started_complete_install_03.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
</section>
<!-- Commenting out as we recommend using JBoss Central now and there is no point in mentioning two ways to achieve the one thing if we only want users doing things a certain way -->
@@ -720,7 +741,6 @@
<title>Upgrading</title>
<para>Because JBoss Developer Studio 4.0x and 5.0 use different versions of Eclipse, it is not possible to directly upgrade from an older version to JBoss Developer Studio 5.0.</para>
<note>
- <title>Tip</title>
<para>It is possible to run JBoss Developer Studio 4.0x and 5.0 side by side, as long as they have been installed into separate directories.</para>
</note>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/minimumrequirements.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/minimumrequirements.xml 2012-06-06 23:55:32 UTC (rev 41763)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/minimumrequirements.xml 2012-06-07 03:46:42 UTC (rev 41764)
@@ -26,13 +26,13 @@
<para>Red Hat Enterprise Linux 6 i386 running 32-bit Sun JDK 6 and OpenJDK 6</para>
</listitem>
<listitem>
- <para>Red Hat Enterprise Linux 6 x86_64 running 64-bit Sun JDK 6 and OpenJDK 6 (*)</para>
+ <para>Red Hat Enterprise Linux 6 x86_64 running 64-bit Sun JDK 6 and OpenJDK 6</para>
</listitem>
<listitem>
<para>Red Hat Enterprise Linux 5 i386 running 32-bit Sun JDK 6 and OpenJDK 6</para>
</listitem>
<listitem>
- <para>Red Hat Enterprise Linux 5 x86_64 running 64-bit Sun JDK 6 and OpenJDK 6 (*)</para>
+ <para>Red Hat Enterprise Linux 5 x86_64 running 64-bit Sun JDK 6 and OpenJDK 6</para>
</listitem>
</itemizedlist>
</para>
13 years, 4 months
JBoss Tools SVN: r41763 - trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-06-06 19:55:32 -0400 (Wed, 06 Jun 2012)
New Revision: 41763
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java
Log:
https://issues.jboss.org/browse/JBIDE-10738 As-you-type EL validation
Modified: trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java 2012-06-06 23:51:11 UTC (rev 41762)
+++ trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaDirtyRegionProcessor.java 2012-06-06 23:55:32 UTC (rev 41763)
@@ -48,7 +48,7 @@
import org.jboss.tools.common.validation.ValidationMessage;
/**
- * As-You-Type validation for EL in Java Strings
+ * As-You-Type validation Java files
*
* @author Victor V. Rubezhny
*
@@ -72,10 +72,9 @@
private ICompilationUnit fCompilationUnit;
private IAnnotationModel fAnnotationModel;
private boolean fIsCanceled = false;
-
+
@Override
- public void removeMessageSubset(IValidator validator, Object obj,
- String groupName) {
+ public void removeMessageSubset(IValidator validator, Object obj, String groupName) {
// Does nothing
}
@@ -88,7 +87,7 @@
public void removeAllMessages(IValidator origin) {
// Does nothing
}
-
+
public void setCanceled(boolean set) {
this.fIsCanceled = set;
}
@@ -116,11 +115,12 @@
fFile = (fEditor != null && fEditor.getEditorInput() instanceof IFileEditorInput ? ((IFileEditorInput)fEditor.getEditorInput()).getFile() : null);
fCompilationUnit = EclipseUtil.getCompilationUnit(fFile);
}
-
+
protected IAnnotationModel getAnnotationModel() {
final IDocumentProvider documentProvider= fEditor.getDocumentProvider();
- if (documentProvider == null)
+ if (documentProvider == null) {
return null;
+ }
IAnnotationModel newModel = documentProvider.getAnnotationModel(fEditor.getEditorInput());
if (fAnnotationModel != newModel) {
clearAllAnnotations();
@@ -130,18 +130,20 @@
}
private void clearAllAnnotations() {
- if (fAnnotations.isEmpty())
+ if (fAnnotations.isEmpty()) {
return;
+ }
Annotation[] annotations = fAnnotations.keySet().toArray(new Annotation[0]);
for (Annotation annotation : annotations) {
fAnnotations.remove(annotation);
fAnnotationModel.removeAnnotation(annotation);
}
}
-
+
public void clearAnnotations(int start, int end) {
- if (fAnnotations.isEmpty())
+ if (fAnnotations.isEmpty()) {
return;
+ }
Annotation[] annotations = fAnnotations.keySet().toArray(new Annotation[0]);
for (Annotation annotation : annotations) {
Position position = fAnnotations.get(annotation);
@@ -153,22 +155,24 @@
}
}
}
-
+
public void addAnnotation(Annotation annotation, Position position) {
- if (isCancelled())
+ if (isCancelled()) {
return;
-
+ }
+
fAnnotations.put(annotation, position);
getAnnotationModel().addAnnotation(annotation, position);
}
@Override
public void addMessage(IValidator origin, IMessage message) {
- if (isCancelled())
+ if (isCancelled()) {
return;
+ }
if (message instanceof ValidationMessage && getAnnotationModel() != null) {
ValidationMessage valMessage = (ValidationMessage)message;
-
+
IEditorInput editorInput= fEditor.getEditorInput();
if (editorInput != null) {
Position position = new Position(valMessage.getOffset(), valMessage.getLength());
@@ -189,32 +193,31 @@
fInRewriteSession = event != null && event.getChangeType().equals(DocumentRewriteSessionEvent.SESSION_START);
}
}
-
+
class CoreELProblem extends CategorizedProblem {
-
// spelling 'marker type' name. Only virtual as spelling problems are never persisted in markers.
// marker type is used in the quickFixProcessor extension point
public static final String MARKER_TYPE= "org.jboss.tools.common.validation.el"; //$NON-NLS-1$
-
+
/** The end offset of the problem */
private int fSourceEnd= 0;
-
+
/** The line number of the problem */
private int fLineNumber= 1;
-
+
/** The start offset of the problem */
private int fSourceStart= 0;
-
+
/** The description of the problem */
private String fMessage;
-
+
private boolean fIsError;
-
+
/** The originating file name */
private String fOrigin;
-
+
public static final int EL_PROBLEM_ID= 0x88000000;
-
+
/**
* Initialize with the given parameters.
*
@@ -231,90 +234,91 @@
fOrigin= origin;
fIsError = (IMessage.NORMAL_SEVERITY != message.getSeverity());
}
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getArguments()
*/
public String[] getArguments() {
return new String[0];
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getID()
*/
public int getID() {
return EL_PROBLEM_ID;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getMessage()
*/
public String getMessage() {
return fMessage;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getOriginatingFileName()
*/
public char[] getOriginatingFileName() {
return fOrigin.toCharArray();
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getSourceEnd()
*/
public int getSourceEnd() {
return fSourceEnd;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getSourceLineNumber()
*/
public int getSourceLineNumber() {
return fLineNumber;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#getSourceStart()
*/
public int getSourceStart() {
return fSourceStart;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#isError()
*/
public boolean isError() {
return fIsError;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#isWarning()
*/
public boolean isWarning() {
return !fIsError;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#setSourceStart(int)
*/
public void setSourceStart(int sourceStart) {
fSourceStart= sourceStart;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#setSourceEnd(int)
*/
public void setSourceEnd(int sourceEnd) {
fSourceEnd= sourceEnd;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.IProblem#setSourceLineNumber(int)
*/
public void setSourceLineNumber(int lineNumber) {
fLineNumber= lineNumber;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.CategorizedProblem#getCategoryID()
*/
@@ -322,7 +326,7 @@
public int getCategoryID() {
return CAT_SYNTAX;
}
-
+
/*
* @see org.eclipse.jdt.core.compiler.CategorizedProblem#getMarkerType()
*/
@@ -337,20 +341,19 @@
fHelper = createValidationContext();
fReporter = createProblemReporter();
}
-
+
private IValidationContext createValidationContext() {
return new IValidationContext() {
-
@Override
public Object loadModel(String arg0, Object[] arg1) {
return null;
}
-
+
@Override
public Object loadModel(String arg0) {
return null;
}
-
+
@Override
public String[] getURIs() {
IFile file = (fEditor != null && fEditor.getEditorInput() instanceof IFileEditorInput ? ((IFileEditorInput)fEditor.getEditorInput()).getFile() : null);
@@ -359,7 +362,7 @@
}
};
}
-
+
private JavaELProblemReporter createProblemReporter() {
JavaELProblemReporter reporter = new JavaELProblemReporter();
reporter.update();
@@ -370,7 +373,7 @@
public synchronized void startReconciling() {
super.startReconciling();
}
-
+
private boolean isInRewrite() {
return fInRewriteSession;
}
@@ -393,11 +396,12 @@
if (fDocument instanceof IDocumentExtension4) {
((IDocumentExtension4) fDocument).addDocumentRewriteSessionListener(fDocumentRewriteSessionListener);
}
- if (fValidatorManager == null)
+ if (fValidatorManager == null) {
fValidatorManager = new AsYouTypeValidatorManager();
+ }
fValidatorManager.connect(fDocument);
-
+
if (fReporter != null) {
fReporter.update();
}
@@ -412,8 +416,9 @@
@Override
public void uninstall() {
fIsCanceled = true;
- if(fReporter != null)
+ if(fReporter != null) {
fReporter.setCanceled(true);
+ }
super.uninstall();
}
@@ -422,12 +427,13 @@
if (!isInstalled() || isInRewrite() || dirtyRegion == null || getDocument() == null || fIsCanceled) {
return;
}
+
/*
* Expand dirtyRegion to partitions boundaries
*/
int start = dirtyRegion.getOffset();
int end = dirtyRegion.getOffset() + dirtyRegion.getLength();
-
+
try {
ITypedRegion startPartition = (fDocument instanceof IDocumentExtension3) ?
((IDocumentExtension3)fDocument).getPartition(IJavaPartitions.JAVA_PARTITIONING, start, true) :
@@ -440,15 +446,14 @@
fDocument.getPartition(end);
if (endPartition != null && end < endPartition.getOffset() + endPartition.getLength())
end = endPartition.getOffset() + endPartition.getLength();
-
} catch (BadLocationException e) {
LogHelper.logError(CommonValidationPlugin.getDefault(), e);
} catch (BadPartitioningException e) {
LogHelper.logError(CommonValidationPlugin.getDefault(), e);
}
-
+
ITypedRegion[] partitions = computePartitioning(start, end - start);
-
+
if (fReporter != null) {
fReporter.clearAnnotations(start, end);
}
13 years, 4 months
JBoss Tools SVN: r41762 - trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-06-06 19:51:11 -0400 (Wed, 06 Jun 2012)
New Revision: 41762
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaEditorTracker.java
Log:
https://issues.jboss.org/browse/JBIDE-10738 As-you-type EL validation
Modified: trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaEditorTracker.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaEditorTracker.java 2012-06-06 23:44:04 UTC (rev 41761)
+++ trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/java/JavaEditorTracker.java 2012-06-06 23:51:11 UTC (rev 41762)
@@ -29,7 +29,7 @@
import org.jboss.tools.common.validation.CommonValidationPlugin;
/**
- * Installer for As-You-Type validation for EL in Java Strings
+ * Installer for As-You-Type validation
*
* @author Victor V. Rubezhny
*
@@ -39,7 +39,7 @@
static JavaEditorTracker INSTANCE;
Map<JavaEditor, JavaDirtyRegionProcessor> fAsYouTypeValidators = new HashMap<JavaEditor, JavaDirtyRegionProcessor>();
-
+
private JavaEditorTracker() {
init();
}
@@ -155,7 +155,7 @@
editorClosed(part);
Assert.isTrue(null == fAsYouTypeValidators.get(javaEditor), "An old JavaDirtyRegionProcessor is not un-installed on Java Editor instance");
}
-
+
processor = new JavaDirtyRegionProcessor(javaEditor);
processor.install(javaSourceViewer);
processor.setDocument(javaSourceViewer.getDocument());
@@ -176,5 +176,4 @@
}
}
}
-}
-
+}
\ No newline at end of file
13 years, 4 months
JBoss Tools SVN: r41761 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-06-06 19:44:04 -0400 (Wed, 06 Jun 2012)
New Revision: 41761
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java
Log:
https://issues.jboss.org/browse/JBIDE-10738 As-you-type EL validation
Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java 2012-06-06 23:30:58 UTC (rev 41760)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java 2012-06-06 23:44:04 UTC (rev 41761)
@@ -814,7 +814,7 @@
List<IType> allTypes = new ArrayList<IType>();
Set<IType> allTypesSet = new HashSet<IType>();
Set<IType> superinterfaces = new HashSet<IType>();
- while (binType != null) {
+ while (binType != null && binType.exists()) {
if(allTypesSet.contains(binType)) break;
allTypes.add(binType);
allTypesSet.add(binType);
13 years, 4 months