JBoss Tools SVN: r37140 - trunk/hibernatetools/plugins/org.hibernate.eclipse.libs/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-12-08 20:05:42 -0500 (Thu, 08 Dec 2011)
New Revision: 37140
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF
Log:
Extended Bundle name to "JBoss Hibernate 3.5 Libs"
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF 2011-12-09 00:57:01 UTC (rev 37139)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.libs/META-INF/MANIFEST.MF 2011-12-09 01:05:42 UTC (rev 37140)
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Libs
+Bundle-Name: JBoss Hibernate 3.5 Libs
Bundle-SymbolicName: org.hibernate.eclipse.libs
Bundle-Version: 3.4.0.qualifier
Bundle-ClassPath: .,
14 years
JBoss Tools SVN: r37139 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-12-08 19:57:01 -0500 (Thu, 08 Dec 2011)
New Revision: 37139
Removed:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/TextEditorComponent.java
Log:
JBIDE-10220
https://issues.jboss.org/browse/JBIDE-10220
Dead class TextEditorComponent removed.
Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/TextEditorComponent.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/TextEditorComponent.java 2011-12-09 00:32:45 UTC (rev 37138)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/TextEditorComponent.java 2011-12-09 00:57:01 UTC (rev 37139)
@@ -1,331 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.common.model.ui.texteditors;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jdt.internal.ui.preferences.OverlayPreferenceStore;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IMenuListener;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.preference.PreferenceConverter;
-import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.jface.text.ITextListener;
-import org.eclipse.jface.text.TextEvent;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.jface.text.source.SourceViewerConfiguration;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.ST;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.MouseAdapter;
-import org.eclipse.swt.events.MouseEvent;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.texteditor.AbstractTextEditor;
-import org.eclipse.ui.texteditor.IStatusField;
-import org.eclipse.ui.texteditor.ITextEditorActionConstants;
-import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
-import org.eclipse.ui.texteditor.ITextEditorExtension;
-import org.eclipse.ui.texteditor.TextNavigationAction;
-import org.jboss.tools.common.model.XModelException;
-import org.jboss.tools.common.model.XModelObject;
-import org.jboss.tools.common.model.filesystems.impl.FileAnyImpl;
-import org.jboss.tools.common.model.ui.ModelUIPlugin;
-import org.jboss.tools.common.model.util.XModelObjectCache;
-
-public class TextEditorComponent implements ITextListener, ITextEditorExtension {
- protected XModelObjectCache object = null;
- protected IDocument document = null;
- protected IDocumentPartitioner partitioner = null;
- protected SourceViewer preview = null;
- protected boolean lock = false;
- protected IEditorPart editorPart = null;
-
- public TextEditorComponent() {
- init();
- }
-
- protected void init() {}
-
- public void setEditorPart(IEditorPart editorPart) {
- this.editorPart = editorPart;
- }
-
- public Control createControl(Composite container) {
- return createPreviewer(container);
- }
-
- public Control getControl() {
- return preview.getControl();
- }
-
- public void setObject (XModelObject object) {
- this.object = new XModelObjectCache(object);
- update();
- }
-
- public XModelObject getModelObject() {
- return (object == null) ? null : object.getObject();
- }
-
- private boolean modified = false;
-
- public void setModified(boolean set) {
- modified = set;
- }
-
- public boolean isModified() {
- return modified;
- }
-
- protected String loadContent() {
- XModelObject o = getModelObject();
- String content = (o == null? "": o.get("body")); //$NON-NLS-1$ //$NON-NLS-2$
- content = (content == null ? "" : content); //$NON-NLS-1$
- return content;
- }
-
- public void update() {
- if(lock) return;
- lock = true;
- String content = loadContent();
- if(document != null && content.equals(getText())) {
- lock = false;
- return;
- }
-
- if (partitioner != null) partitioner.disconnect();
-
- document = new Document(content);
- IDocumentPartitioner partitioner = createDocumentPartitioner();
-
- partitioner.connect(document);
- document.setDocumentPartitioner(partitioner);
-
- preview.setDocument(document);
- setModified(false);
- lock = false;
- }
-
- protected IDocumentPartitioner createDocumentPartitioner() {
- return null;
- }
-
- protected SourceViewerConfiguration createSourceViewerConfiguration() {
- return null;
- }
-
- private Control createPreviewer(Composite parent) {
- preview = new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);
- preview.configure(createSourceViewerConfiguration());
- preview.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));
-// preview.setEditable(false);
- initializeViewerColors(preview);
- update();
- preview.addTextListener((ITextListener) this);
- preview.getControl().addMouseListener(new M());
- preview.getControl().addKeyListener(new K());
- createNavigationActions();
- return preview.getControl();
- }
-
- /**
- * Initializes the given viewer's colors.
- *
- * @param viewer the viewer to be initialized
- */
- private OverlayPreferenceStore overlay = null;
-
- private void initializeViewerColors(ISourceViewer viewer) {
- if (overlay != null) {
- StyledText styledText = viewer.getTextWidget();
- Color color = null;
- if ( !overlay.getBoolean(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT) ) {
- color = createColor(
- overlay,
- AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND,
- styledText.getDisplay());
- }
- styledText.setBackground(color);
- }
- }
-
- /**
- * Creates a color from the information stored in the given preference store.
- * Returns <code>null</code> if there is no such information available.
- */
- private Color createColor(IPreferenceStore store, String key, Display display) {
- RGB rgb = null;
- if (store.contains(key)) {
- if (store.isDefault(key)) {
- rgb = PreferenceConverter.getDefaultColor(store, key);
- } else {
- rgb = PreferenceConverter.getColor(store, key);
- }
- }
- return (rgb != null) ? new Color(display, rgb) : null;
- }
-
- public String getText() {
- String text = null;
- if (document != null) text = document.get();
- return (text == null) ? "" : text; //$NON-NLS-1$
- }
-
- public void textChanged(TextEvent event) {
- this.modified = true;
- }
-
- public void save() {
- if(lock || !modified) return;
- lock = true;
- try {
- FileAnyImpl f = (FileAnyImpl)getModelObject();
- if(f != null) f.edit(getText());
- } catch (XModelException e) {
- ModelUIPlugin.getPluginLog().logError(e);
- } finally {
- lock = false;
- modified = false;
- }
- }
-
- public void setCursor(int line, int position) {
- try {
- int i = document.getLineOffset(line - 1) + position -1;
- preview.setSelectedRange(i, 0);
- } catch (BadLocationException e) {
- //ignore
- }
- }
-
- //AbstractTextEditor
-
- protected void createNavigationActions() {
- IAction action = new ToggleInsertModeAction(preview.getTextWidget());
- action.setActionDefinitionId(ITextEditorActionDefinitionIds.TOGGLE_OVERWRITE);
- setAction(ITextEditorActionDefinitionIds.TOGGLE_OVERWRITE, action);
- }
-
- public void setAction(String actionID, IAction action) {
- if(editorPart == null) return;
- editorPart.getSite().getKeyBindingService().registerAction(action);
- }
-
- private Map<String,IStatusField> fStatusFields = new HashMap<String,IStatusField>();
-
- protected IStatusField getStatusField(String category) {
- if (category != null && fStatusFields != null)
- return fStatusFields.get(category);
- return null;
- }
-
- public void setStatusField(IStatusField field, String category) {
- if(field == null) {
- fStatusFields.remove(category);
- } else {
- fStatusFields.put(category, field);
- updateStatusField(category);
- }
- }
-
- public boolean isEditorInputReadOnly() {
- XModelObject o = getModelObject();
- return o != null && !o.isObjectEditable();
- }
-
- public void addRulerContextMenuListener(IMenuListener listener) {}
-
- public void removeRulerContextMenuListener(IMenuListener listener) {}
-
- protected void handleCursorPositionChanged() {
- updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION);
- updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE);
- }
-
- protected void updateStatusField(String category) {
- if (category == null) return;
- IStatusField field = getStatusField(category);
- if (field != null) {
- String text = null;
- if (ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION.equals(category))
- text = getCursorPosition();
- else if (ITextEditorActionConstants.STATUS_CATEGORY_ELEMENT_STATE.equals(category))
- text = isEditorInputReadOnly() ? "Read Only" : "Writable";
- else if (ITextEditorActionConstants.STATUS_CATEGORY_INPUT_MODE.equals(category))
- text = (!fOverwriting) ? "Insert" : "Overwrite";
- field.setText(text == null ? "" : text); //$NON-NLS-1$
- }
- }
-
- protected String getCursorPosition() {
- if (preview == null) return ""; //$NON-NLS-1$
- StyledText styledText = preview.getTextWidget();
- int caret = styledText.getCaretOffset();
- IDocument document= preview.getDocument();
- if (document == null) return ""; //$NON-NLS-1$
- try {
- int line = document.getLineOfOffset(caret);
- int lineOffset= document.getLineOffset(line);
- int tabWidth= styledText.getTabs();
- int column= 0;
- for (int i= lineOffset; i < caret; i++)
- if ('\t' == document.getChar(i))
- column += tabWidth - (column % tabWidth);
- else
- column++;
- return "" + (++line) + " : " + (++column); //$NON-NLS-1$ //$NON-NLS-2$
-
- } catch (BadLocationException x) {
- return ""; //$NON-NLS-1$
- }
- }
-
- class K extends KeyAdapter {
- public void keyPressed(KeyEvent e) {
- handleCursorPositionChanged();
- }
- }
- class M extends MouseAdapter {
- public void mouseUp(MouseEvent e) {
- handleCursorPositionChanged();
- }
- }
-
- private boolean fOverwriting = false;
- class ToggleInsertModeAction extends TextNavigationAction {
- public ToggleInsertModeAction(StyledText textWidget) {
- super(textWidget, ST.TOGGLE_OVERWRITE);
- }
- public void run() {
- super.run();
- fOverwriting = !fOverwriting;
- handleInsertModeChanged();
- }
- }
-
- protected void handleInsertModeChanged() {
- updateStatusField(ITextEditorActionConstants.STATUS_CATEGORY_INPUT_MODE);
- }
-
-}
14 years
JBoss Tools SVN: r37138 - in branches/jbosstools-3.3.0.M5/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: max.andersen(a)jboss.com
Date: 2011-12-08 19:32:45 -0500 (Thu, 08 Dec 2011)
New Revision: 37138
Added:
branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/MavenImportFailedException.java
branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/WontOverwriteException.java
Modified:
branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizard.java
branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java
Log:
JBIDE-9934 safeguard if openshift clone directory already exists and error info if maven fails import
Added: branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/MavenImportFailedException.java
===================================================================
--- branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/MavenImportFailedException.java (rev 0)
+++ branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/MavenImportFailedException.java 2011-12-09 00:32:45 UTC (rev 37138)
@@ -0,0 +1,11 @@
+package org.jboss.tools.openshift.express.internal.ui.common;
+
+
+import org.jboss.tools.openshift.express.client.OpenShiftException;
+
+public class MavenImportFailedException extends OpenShiftException {
+
+ public MavenImportFailedException(String bind) {
+ super(bind);
+ }
+}
Added: branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/WontOverwriteException.java
===================================================================
--- branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/WontOverwriteException.java (rev 0)
+++ branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/common/WontOverwriteException.java 2011-12-09 00:32:45 UTC (rev 37138)
@@ -0,0 +1,13 @@
+package org.jboss.tools.openshift.express.internal.ui.common;
+
+import java.io.IOException;
+
+import org.jboss.tools.openshift.express.client.OpenShiftException;
+
+public class WontOverwriteException extends OpenShiftException {
+
+ public WontOverwriteException(String bind) {
+ super(bind);
+ }
+
+}
Modified: branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizard.java
===================================================================
--- branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizard.java 2011-12-09 00:23:00 UTC (rev 37137)
+++ branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizard.java 2011-12-09 00:32:45 UTC (rev 37138)
@@ -33,6 +33,8 @@
import org.jboss.tools.common.ui.WizardUtils;
import org.jboss.tools.openshift.express.client.OpenShiftException;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
+import org.jboss.tools.openshift.express.internal.ui.common.MavenImportFailedException;
+import org.jboss.tools.openshift.express.internal.ui.common.WontOverwriteException;
/**
* @author André Dietisheim
@@ -79,34 +81,38 @@
model.addToExistingProject(monitor);
}
return Status.OK_STATUS;
+ } catch (final WontOverwriteException e) {
+ openWarning("Project already present", e.getMessage());
+ return Status.CANCEL_STATUS;
+ } catch (final MavenImportFailedException e) {
+ openWarning("Maven Import failed", e.getMessage());
+ return Status.CANCEL_STATUS;
} catch (IOException e) {
- status = OpenShiftUIActivator.createErrorStatus(
+ return OpenShiftUIActivator.createErrorStatus(
"Could not copy openshift configuration files to project {0}", e,
model.getProjectName());
- return status;
} catch (OpenShiftException e) {
- status = OpenShiftUIActivator.createErrorStatus(
+ return OpenShiftUIActivator.createErrorStatus(
"Could not import project to the workspace.", e);
} catch (URISyntaxException e) {
- status = OpenShiftUIActivator.createErrorStatus(
+ return OpenShiftUIActivator.createErrorStatus(
"The url of the remote git repository is not valid", e);
} catch (InvocationTargetException e) {
if (isTransportException(e)) {
TransportException te = getTransportException(e);
- status = OpenShiftUIActivator
+ return OpenShiftUIActivator
.createErrorStatus(
"Could not clone the repository. Authentication failed.\n"
+ " Please make sure that you added your private key to the ssh preferences.",
te);
} else {
- status = OpenShiftUIActivator.createErrorStatus(
+ return OpenShiftUIActivator.createErrorStatus(
"An exception occurred while creating local git repository.", e);
}
} catch (Exception e) {
- status = OpenShiftUIActivator.createErrorStatus(
+ return OpenShiftUIActivator.createErrorStatus(
"Could int import project to the workspace.", e);
}
- return status;
}
}, getContainer());
IStatus status = queue.poll(10, TimeUnit.SECONDS);
@@ -136,6 +142,16 @@
return confirmed[0];
}
+ private void openWarning(final String title, final String message) {
+ getShell().getDisplay().syncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ MessageDialog.openWarning(getShell(), title, message);
+ }
+ });
+ }
+
@Override
public void addPages() {
this.model = new ImportProjectWizardModel();
Modified: branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java
===================================================================
--- branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java 2011-12-09 00:23:00 UTC (rev 37137)
+++ branches/jbosstools-3.3.0.M5/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ImportProjectWizardModel.java 2011-12-09 00:32:45 UTC (rev 37138)
@@ -57,6 +57,7 @@
import org.jboss.tools.openshift.express.internal.core.behaviour.ExpressServerUtils;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
import org.jboss.tools.openshift.express.internal.ui.common.FileUtils;
+import org.jboss.tools.openshift.express.internal.ui.common.WontOverwriteException;
import org.jboss.tools.openshift.express.internal.ui.wizard.projectimport.GeneralProjectImportOperation;
import org.jboss.tools.openshift.express.internal.ui.wizard.projectimport.MavenProjectImportOperation;
@@ -152,6 +153,25 @@
return (String) getProperty(REPOSITORY_PATH);
}
+ /**
+ * Returns the destination folder that the OpenShift application will get
+ * cloned to.
+ *
+ * @return the destination that the application will get cloned to.
+ */
+ private File getCloneDestination() {
+ String repositoryPath = getRepositoryPath();
+ if (repositoryPath == null
+ || repositoryPath.length() == 0) {
+ return null;
+ }
+ IApplication application = getApplication();
+ if (application == null) {
+ return null;
+ }
+ return new File(getRepositoryPath(), application.getName());
+ }
+
public boolean isNewProject() {
return (Boolean) getProperty(NEW_PROJECT);
}
@@ -241,8 +261,24 @@
public void importProject(IProgressMonitor monitor)
throws OpenShiftException, CoreException, InterruptedException, URISyntaxException,
InvocationTargetException {
+ File cloneDestination = getCloneDestination();
+ if (cloneDestination != null
+ && cloneDestination.exists()) {
+ throw new WontOverwriteException(
+ NLS.bind(
+ "There is already a folder at {0}. The new OpenShift project would overwrite it. " +
+ "Please choose another destination to clone to.",
+ cloneDestination.getAbsolutePath()));
+ }
File repositoryFolder = cloneRepository(monitor);
List<IProject> importedProjects = importMavenProject(repositoryFolder, monitor);
+ if (importedProjects.size() == 0) {
+ throw new OpenShiftException(
+ "The maven import failed. One of the possible reasons is that already is a project " +
+ "in your workspace that matches the maven name of the OpenShift application." +
+ "Please rename your workspace project in that case and start over again.");
+ }
+
connectToGitRepo(importedProjects, repositoryFolder, monitor);
createServerAdapterIfRequired(importedProjects, monitor);
}
@@ -307,6 +343,15 @@
return ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
}
+ private boolean doesProjectExist(String name) {
+ if (name == null) {
+ return false;
+ }
+ IProject project = getProject(name);
+ return project != null
+ && project.exists();
+ }
+
public boolean projectExists(final File gitProjectFolder) {
String projectName = gitProjectFolder.getName();
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
@@ -351,9 +396,7 @@
*/
private File cloneRepository(IProgressMonitor monitor)
throws OpenShiftException, InvocationTargetException, InterruptedException, URISyntaxException {
- IApplication application = getApplication();
- File destination = new File(getRepositoryPath(), application.getName());
- return cloneRepository(destination, monitor);
+ return cloneRepository(getCloneDestination(), monitor);
}
private File cloneRepository(File destination, IProgressMonitor monitor)
@@ -366,9 +409,6 @@
private void cloneRepository(String uri, File destination, IProgressMonitor monitor)
throws OpenShiftException, URISyntaxException, InvocationTargetException, InterruptedException {
- if (destination.exists()) {
- FileUtil.completeDelete(destination);
- }
ensureEgitUIIsStarted();
URIish gitUri = new URIish(uri);
CloneOperation cloneOperation =
14 years
JBoss Tools SVN: r37137 - in trunk/documentation/whatsnew/jst: images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-08 19:23:00 -0500 (Thu, 08 Dec 2011)
New Revision: 37137
Added:
trunk/documentation/whatsnew/jst/images/3.3.0.M5/
trunk/documentation/whatsnew/jst/images/3.3.0.M5/ca.png
trunk/documentation/whatsnew/jst/images/3.3.0.M5/jsf-1.png
trunk/documentation/whatsnew/jst/images/3.3.0.M5/jsf-2.png
trunk/documentation/whatsnew/jst/images/3.3.0.M5/preferences.png
trunk/documentation/whatsnew/jst/images/3.3.0.M5/quickFix.png
trunk/documentation/whatsnew/jst/images/3.3.0.M5/taskRepos.png
trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
Log:
https://issues.jboss.org/browse/JBIDE-10378 JST/JSF Components N&N
Added: trunk/documentation/whatsnew/jst/images/3.3.0.M5/ca.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.3.0.M5/ca.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/images/3.3.0.M5/jsf-1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.3.0.M5/jsf-1.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/images/3.3.0.M5/jsf-2.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.3.0.M5/jsf-2.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/images/3.3.0.M5/preferences.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.3.0.M5/preferences.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/images/3.3.0.M5/quickFix.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.3.0.M5/quickFix.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/images/3.3.0.M5/taskRepos.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/jst/images/3.3.0.M5/taskRepos.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html (rev 0)
+++ trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html 2011-12-09 00:23:00 UTC (rev 37137)
@@ -0,0 +1,125 @@
+<?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>JST/JSF 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>JST/JSF 3.3.0.M5 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main
+ Index</a> <a href="../vpe/vpe-news-3.3.0.M5.html">VPE Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>JSF @FacesConverter validation</b></p>
+ </td>
+ <td valign="top">
+ <p>
+ Eclipse JSF Tools (WTP) has an annoying <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=357885">issue</a> with faces converter validation. It does not support faces converters annotated @FacesConverter. So if your project uses such converters in <f:converter converterId="..."/> you will get a warning.
+ But JBoss Tools 3.3.0.M5 has a new quick fix which will help you to disable Facelet Validator to get rid of that warning.
+ </p>
+ <img src="images/3.3.0.M5/jsf-1.png"/><br/><br/>
+ <img src="images/3.3.0.M5/jsf-2.png"/>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-9366">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Code Completion</b></p>
+ </td>
+ <td valign="top">
+ <p>
+ Code completion for message bundles in EL shows detailed information about the corresponding bundle:
+ </p>
+ <img src="images/3.3.0.M5/ca.png"/>
+ <small><a href="https://jira.jboss.org/browse/JBIDE-9910">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Configuring Problem Severity via Quick Fix</b></p>
+ </td>
+ <td valign="top">
+ <p>
+ In case of some JBoss Tools validator (CDI, JSF, Seam) reports a false problem, you can disable the corresponding validation rule in Preferences via the new quick fix "Configure Problem Severity".
+ </p>
+ <img src="images/3.3.0.M5/quickFix.png"/><br/><br/>
+ <img src="images/3.3.0.M5/preferences.png"/>
+ <small><a href="https://jira.jboss.org/browse/JBIDE-9885">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Opening *.inc and *.php files with HTML Editor</b></p>
+ </td>
+ <td valign="top">
+ <p>
+ It's now possible to open *.inc and *.php files with JBoss Tools HTML Editor.
+ </p>
+ <small><a href="https://jira.jboss.org/browse/JBIDE-9872">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p><b>Red Hat Bugzilla & JBoss JIRA mylyn repositories</b></p>
+ </td>
+ <td valign="top">
+ <p>
+ JBoss Tools provides Red Hat Bugzilla & JBoss JIRA repositories for mylyn connectors.
+ </p>
+ <img src="images/3.3.0.M5/taskRepos.png"/>
+ <small><a href="https://jira.jboss.org/browse/JBIDE-9351">Related Jira</a></small></p>
+ </td>
+ </tr>
+</table>
+
+</body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
14 years
JBoss Tools SVN: r37136 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-12-08 18:59:15 -0500 (Thu, 08 Dec 2011)
New Revision: 37136
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
Log:
JBIDE-10330
https://issues.jboss.org/browse/JBIDE-10330
Provided loading of stored project dependencies at Eclipse restart.
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-12-08 23:24:15 UTC (rev 37135)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-12-08 23:59:15 UTC (rev 37136)
@@ -364,7 +364,9 @@
load();
} else {
loadProjectDependenciesFromKBProject();
- isStorageResolved = true;
+ synchronized(this) {
+ isStorageResolved = true;
+ }
}
}
@@ -381,7 +383,10 @@
*/
public void load() {
if(isStorageResolved) return;
- isStorageResolved = true;
+ synchronized(this) {
+ if(isStorageResolved) return;
+ isStorageResolved = true;
+ }
try {
getProject().build(IncrementalProjectBuilder.FULL_BUILD, CDICoreBuilder.BUILDER_ID, new HashMap(), new NullProgressMonitor());
} catch (CoreException e) {
14 years
JBoss Tools SVN: r37135 - in trunk/documentation/whatsnew/ws: images and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2011-12-08 18:24:15 -0500 (Thu, 08 Dec 2011)
New Revision: 37135
Added:
trunk/documentation/whatsnew/ws/images/ws_simple_wizard_nojars.jpg
trunk/documentation/whatsnew/ws/images/ws_wizard_restful_nojars.jpg
trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html
Log:
JBIDE-10381 - started WS N&N for JBoss Tools 3.3 M5
Added: trunk/documentation/whatsnew/ws/images/ws_simple_wizard_nojars.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/ws/images/ws_simple_wizard_nojars.jpg
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/ws/images/ws_wizard_restful_nojars.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/ws/images/ws_wizard_restful_nojars.jpg
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html
===================================================================
--- trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html (rev 0)
+++ trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html 2011-12-08 23:24:15 UTC (rev 37135)
@@ -0,0 +1,75 @@
+<?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>WS Tools 3.3.0 M2 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>WS tools 3.3.0 M5 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+href="../deltacloud/deltacloud-news-0.2.0.M2.html">DeltaCloud Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3"
+ id="itemname3"></a><b>Web Service Wizard Updates</b></td>
+ <td valign="top">
+
+ <p>With some AS versions no longer requiring web.xml files and RESTEasy jars for JAX-RS support being deployed differently between AS5/6 and AS7, a few changes needed to be made to the Web Service wizards provided with JBoss Tools.</p>
+
+ <img src="./images/ws_wizard_restful_nojars.jpg"/>
+
+ <p>In this release, a few things have changed:</p>
+ <ul><li>In the "Generate a Sample RESTful Web Service" wizard, you can finish the wizard even if the RESTEasy jars are not found in the project classpath or runtime associated with the project.</li>
+ <li>You also now get the option to add RESTEasy jars to the project if they are not already installed in the runtime, but appear in a directory in the root runtime directory. This is not required, but can help when dealing with AS5-based web service projects.</li></ul>
+
+ <p>These changes were also made in the ""Simple Web Service" wizard when JAX-RS is selected.</p>
+ <img src="./images/ws_simple_wizard_nojars.jpg"/>
+ <p><small><a href="https://jira.jboss.org/browse/JBIDE-10199">Related Jira</a></small></p>
+ </td>
+ </tr>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+
+ <hr/>
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
+
+
Property changes on: trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
14 years
JBoss Tools SVN: r37134 - branches/jbosstools-3.3.0.M5/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-12-08 18:17:49 -0500 (Thu, 08 Dec 2011)
New Revision: 37134
Modified:
branches/jbosstools-3.3.0.M5/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml
Log:
JBIDE-10417 make browsersim toolbar non-active by default
Modified: branches/jbosstools-3.3.0.M5/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml
===================================================================
--- branches/jbosstools-3.3.0.M5/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml 2011-12-08 23:17:41 UTC (rev 37133)
+++ branches/jbosstools-3.3.0.M5/vpe/plugins/org.jboss.tools.vpe.browsersim.eclipse/plugin.xml 2011-12-08 23:17:49 UTC (rev 37134)
@@ -33,13 +33,26 @@
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
- <toolbar
- id="org.jboss.tools.vpe.browsersim.eclipse.toolbars.sampleToolbar">
+ <toolbar
+ id="org.jboss.tools.vpe.browsersim.eclipse.toolbars">
<command
commandId="org.jboss.tools.vpe.browsersim.eclipse.commands.runBrowserSim"
icon="icons/sample.gif"
tooltip="Run Mobile Browser Simulator"
- id="org.jboss.tools.vpe.browsersim.eclipse.toolbars.runBrowserSim">
+ id="org.jboss.tools.vpe.browsersim.eclipse.toolbars.runBrowserSim"
+ >
+ <visibleWhen
+ checkEnabled="false">
+ <with
+ variable="activeContexts">
+ <iterate
+ operator="or">
+ <equals
+ value="org.jboss.tools.vpe.browsersim.eclipse.actionSet">
+ </equals>
+ </iterate>
+ </with>
+ </visibleWhen>
</command>
</toolbar>
</menuContribution>
@@ -66,4 +79,13 @@
</location>
</browser>
</extension>
+ <extension
+ point="org.eclipse.ui.actionSets">
+ <actionSet
+ description="Makes browser simulator available in main toolbar"
+ id="org.jboss.tools.vpe.browsersim.eclipse.actionSet"
+ label="BrowserSim"
+ visible="false">
+ </actionSet>
+ </extension>
</plugin>
14 years
JBoss Tools SVN: r37133 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-12-08 18:17:41 -0500 (Thu, 08 Dec 2011)
New Revision: 37133
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICorePlugin.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIUtil.java
Log:
JBIDE-10330
https://issues.jboss.org/browse/JBIDE-10330
Provided loading of stored project dependencies at Eclipse restart.
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-12-08 21:40:32 UTC (rev 37132)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-12-08 23:17:41 UTC (rev 37133)
@@ -295,7 +295,6 @@
}
-
public void addCDIProject(final CDICoreNature p) {
if(dependsOn.contains(p)) return;
addUsedCDIProject(p);
@@ -561,10 +560,24 @@
public void reloadProjectDependencies() {
dependsOn.clear();
usedBy.clear();
+ synchronized (this) {
+ projectDependenciesLoaded = false;
+ }
loadProjectDependenciesFromKBProject();
}
+ boolean projectDependenciesLoaded = false;
+
+ public void loadProjectDependencies() {
+ loadProjectDependenciesFromKBProject();
+ }
+
private void loadProjectDependenciesFromKBProject() {
+ if(projectDependenciesLoaded) return;
+ synchronized(this) {
+ if(projectDependenciesLoaded) return;
+ projectDependenciesLoaded = true;
+ }
Element root = null;
File file = getKBStorageFile();
if(file != null && file.isFile()) {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICorePlugin.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICorePlugin.java 2011-12-08 21:40:32 UTC (rev 37132)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICorePlugin.java 2011-12-08 23:17:41 UTC (rev 37133)
@@ -104,7 +104,11 @@
CDICoreNature n = null;
try {
n = (CDICoreNature)project.getNature(CDICoreNature.NATURE_ID);
- if(resolve) n.resolve();
+ if(resolve) {
+ n.resolve();
+ } else {
+ n.loadProjectDependencies();
+ }
} catch (CoreException e) {
getDefault().logError(e);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIUtil.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIUtil.java 2011-12-08 21:40:32 UTC (rev 37132)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIUtil.java 2011-12-08 23:17:41 UTC (rev 37133)
@@ -17,6 +17,7 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -54,6 +55,7 @@
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+import org.jboss.tools.cdi.internal.core.impl.CDIProject;
import org.jboss.tools.cdi.internal.core.impl.ClassBean;
import org.jboss.tools.cdi.internal.core.validation.AnnotationValidationDelegate;
import org.jboss.tools.cdi.internal.core.validation.CDICoreValidator;
@@ -946,7 +948,20 @@
*/
public static CDICoreNature getCDINatureWithProgress(final IProject project){
final CDICoreNature cdiNature = CDICorePlugin.getCDI(project, false);
- if(cdiNature != null && !cdiNature.isStorageResolved()){
+ if(cdiNature == null) {
+ return null;
+ }
+ boolean resolved = cdiNature.isStorageResolved();
+ if(resolved) {
+ Set<CDICoreNature> ps = cdiNature.getCDIProjects(true);
+ for (CDICoreNature p: ps) {
+ if(!p.isStorageResolved()) {
+ resolved = false;
+ break;
+ }
+ }
+ }
+ if(!resolved){
if (Display.getCurrent() != null) {
try{
PlatformUI.getWorkbench().getProgressService().busyCursorWhile(new IRunnableWithProgress(){
@@ -955,7 +970,21 @@
monitor.beginTask(CDICoreMessages.CDI_UTIL_BUILD_CDI_MODEL, 10);
monitor.worked(3);
cdiNature.resolve();
- monitor.worked(7);
+ Set<CDICoreNature> ps = cdiNature.getCDIProjects(true);
+ Iterator<CDICoreNature> it = ps.iterator();
+ while(it.hasNext()) {
+ CDICoreNature n = it.next();
+ if(n.isStorageResolved()) it.remove();
+ }
+ if(ps.isEmpty()) {
+ monitor.worked(7);
+ } else {
+ int delta = (ps.size() == 1) ? 7 : ps.size() == 2 ? 3 : ps.size() == 3 ? 2 : 1;
+ for (CDICoreNature p: ps) {
+ p.resolve();
+ monitor.worked(delta);
+ }
+ }
}
});
}catch(InterruptedException ie){
14 years
JBoss Tools SVN: r37132 - in trunk/documentation/whatsnew/cdi: images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-08 16:40:32 -0500 (Thu, 08 Dec 2011)
New Revision: 37132
Added:
trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.M5.html
trunk/documentation/whatsnew/cdi/images/3.3.0.M5/
trunk/documentation/whatsnew/cdi/images/3.3.0.M5/default.png
trunk/documentation/whatsnew/cdi/images/3.3.0.M5/dialog.png
trunk/documentation/whatsnew/cdi/images/3.3.0.M5/wizard.png
Log:
https://issues.jboss.org/browse/JBIDE-10372 CDI Component N&N
Added: trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.M5.html (rev 0)
+++ trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.M5.html 2011-12-08 21:40:32 UTC (rev 37132)
@@ -0,0 +1,109 @@
+<?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>CDI/Seam 3 tools 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>CDI/Seam 3 tools 3.3.0.M5 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../forge/forge-news-3.3.0.M5.html">Forge Tools News ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>CDI (JSR-299)</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>New CDI Web Project Wizard</b></p>
+ </td>
+ <td align="top">
+ <p>New CDI Web Project wizard is now available:</p>
+ <img src="images/3.3.0.M5/wizard.png"/><br/><br/>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-9581">Related Jira</a>
+ </small><br/>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>CDI Extensions/Solder</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>@DefaultBean validation</b></p>
+ </td>
+ <td align="top">
+ <p>
+ Solder default beans (@DefaultBean) are validated and if any of the following problems is detected then CDI validator will mark the code:
+ <li>1. Default producer fields are not supported on normal scoped beans. - it is a deployment error.</li>
+ <li>2. Two default beans with the same type and qualifiers is a deployment error.</li>
+ </p>
+ <img src="images/3.3.0.M5/default.png"/><br/><br/>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-9244">Related Jira</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>All Assignable Beans Dialog</b></p>
+ </td>
+ <td align="top">
+ <p>
+ New filter "Eliminated @DefaultBean" is now available in Assignable Beans dialog (Ctrl+Click on @Inject) which helps you to filter out default beans for the injection point.
+ Note: you will see this filter only if your project has Solder jars in its classpath.
+ </p>
+ <img src="images/3.3.0.M5/dialog.png"/><br/><br/>
+ <p>
+ <small>
+ <a href="https://issues.jboss.org/browse/JBIDE-10086">Related Jira</a>
+ </small>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/documentation/whatsnew/cdi/cdi-news-3.3.0.M5.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/documentation/whatsnew/cdi/images/3.3.0.M5/default.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/3.3.0.M5/default.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/cdi/images/3.3.0.M5/dialog.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/3.3.0.M5/dialog.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/cdi/images/3.3.0.M5/wizard.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/cdi/images/3.3.0.M5/wizard.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
14 years
JBoss Tools SVN: r37131 - trunk/download.jboss.org/jbosstools/examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-12-08 15:14:59 -0500 (Thu, 08 Dec 2011)
New Revision: 37131
Modified:
trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml
Log:
JBDS-1953 Add JBoss Quickstarts to JBDS
Modified: trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml 2011-12-08 20:05:49 UTC (rev 37130)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-jbds50.xml 2011-12-08 20:14:59 UTC (rev 37131)
@@ -279,5 +279,254 @@
<javaPackage>org.jboss.tools.example.richfaces</javaPackage>
</mavenArchetype>
</project>
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>helloworld</name>
+ <included-projects>jboss-as-helloworld</included-projects>
+ <shortDescription>Helloworld Example</shortDescription>
+ <description>
+This example demonstrates the use of CDI 1.0 and Servlet 3 in JBoss AS 7.
+The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.
+ </description>
+ <size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.eclipse.m2e.core</property>
+ <property name="versions">[1.0.0,1.2.0)</property>
+ <property name="description">This project example requires m2e >= 1.0.</property>
+ <property name="connectorIds">org.eclipse.m2e.feature</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
+ <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.jboss.tools.maven.core</property>
+ <property name="versions">[1.3.0,1.4.0)</property>
+ <property name="description">This project example requires JBoss Maven Tools.</property>
+ <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature, org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ <welcome type="cheatsheets" url="/jboss-as-helloworld/cheatsheets/helloworld.xml"/>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>helloworld-osgi</name>
+ <included-projects>jboss-as-helloworld-osgi</included-projects>
+ <shortDescription>Helloworld OSGi Example</shortDescription>
+ <description>
+This example demonstrates the use of OSGi in JBoss AS 7.
+The example can be deployed using Maven from the command line, by using the AS 7 web console or by dropping the OSGi bundle in the deployments folder.
+
+To deploy to JBoss AS 7 using JBoss Tools, start JBoss AS 7, right-click the project, select Run As>Maven build..., enter "package jboss-as:deploy" in the Goals field and click the Run button.
+This will build, deploy and start the OSGi bundle.
+You will see a Hello AS7 World!! message appear on the console when this is done.
+ </description>
+ <size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.eclipse.m2e.core</property>
+ <property name="versions">[1.0.0,1.2.0)</property>
+ <property name="description">This project example requires m2e >= 1.0.</property>
+ <property name="connectorIds">org.eclipse.m2e.feature</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
+ <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.jboss.tools.maven.core</property>
+ <property name="versions">[1.3.0,1.4.0)</property>
+ <property name="description">This project example requires JBoss Maven Tools.</property>
+ <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature, org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ </project>
+
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>login</name>
+ <included-projects>jboss-as-login</included-projects>
+ <shortDescription>Login Example</shortDescription>
+ <description>
+This example demonstrates the use of CDI 1.0, JPA 2.0, JTA 1.1, EJB 3.1 and JSF 2.0 in JBoss AS 7.
+The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.
+ </description>
+<size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.eclipse.m2e.core</property>
+ <property name="versions">[1.0.0,1.2.0)</property>
+ <property name="description">This project example requires m2e >= 1.0.</property>
+ <property name="connectorIds">org.eclipse.m2e.feature</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
+ <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.jboss.tools.maven.core</property>
+ <property name="versions">[1.3.0,1.4.0)</property>
+ <property name="description">This project example requires JBoss Maven Tools.</property>
+ <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature, org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ <welcome type="cheatsheets" url="/jboss-as-login/cheatsheets/login.xml"/>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>numberguess</name>
+ <included-projects>jboss-as-numberguess</included-projects>
+ <shortDescription>Numberguess Example</shortDescription>
+ <description>
+This example demonstrates the use of CDI 1.0 and JSF 2.0 in JBoss AS 7.
+The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.
+ </description>
+<size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.eclipse.m2e.core</property>
+ <property name="versions">[1.0.0,1.2.0)</property>
+ <property name="description">This project example requires m2e >= 1.0.</property>
+ <property name="connectorIds">org.eclipse.m2e.feature</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
+ <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.jboss.tools.maven.core</property>
+ <property name="versions">[1.3.0,1.4.0)</property>
+ <property name="description">This project example requires JBoss Maven Tools.</property>
+ <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature, org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ <welcome type="cheatsheets" url="/jboss-as-numberguess/cheatsheets/numberguess.xml"/>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>kitchensink</name>
+ <included-projects>jboss-as-kitchensink</included-projects>
+ <shortDescription>Kitchensink Example</shortDescription>
+ <description>
+This is your project! It's a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 6 on JBoss AS 7.
+This project is setup to allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0.
+It includes a persistence unit and some sample persistence and transaction code to help you get your feet wet with database access in enterprise Java.
+ </description>
+<size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.eclipse.m2e.core</property>
+ <property name="versions">[1.0.0,1.2.0)</property>
+ <property name="description">This project example requires m2e >= 1.0.</property>
+ <property name="connectorIds">org.eclipse.m2e.feature</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">[0.13.1,0.15.0)</property>
+ <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
+ <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.jboss.tools.maven.core</property>
+ <property name="versions">[1.3.0,1.4.0)</property>
+ <property name="description">This project example requires JBoss Maven Tools.</property>
+ <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature, org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ <welcome type="cheatsheets" url="/jboss-as-kitchensink/cheatsheets/kitchensink.xml"/>
+ </project>
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>poh5-helloworld</name>
+ <included-projects>poh5-helloworld</included-projects>
+ <shortDescription>HTML5 Example for mobile devices</shortDescription>
+ <description>This example demonstrates the use of *CDI 1.0* and *JAX-RS* in *JBoss AS 7* using the Plain Old HTML5 (POH5) architecture.
+POH5 is basically a smart, HTML5+CSS3+JavaScript front-end using RESTful services on the backend.</description>
+ <size>7266</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70, org.jboss.ide.eclipse.as.runtime.71</property>
+ <property name="description">This project example requires JBoss AS 7.0/7.1</property>
+ <property name="downloadId">org.jboss.tools.runtime.core.as.702</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.eclipse.m2e.core</property>
+ <property name="versions">[1.0.0,1.2.0)</property>
+ <property name="description">This project example requires m2e >= 1.0.</property>
+ <property name="connectorIds">org.eclipse.m2e.feature</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.maven.ide.eclipse.wtp</property>
+ <property name="versions">[0.13.1,0.16.0)</property>
+ <property name="description">This project example requires m2eclipse-wtp >= 0.13.1.</property>
+ <property name="connectorIds">org.maven.ide.eclipse.wtp</property>
+ </fix>
+ <fix type="plugin">
+ <property name="id">org.jboss.tools.maven.core</property>
+ <property name="versions">[1.3.0,1.4.0)</property>
+ <property name="description">This project example requires JBoss Maven Tools.</property>
+ <property name="connectorIds">org.jboss.tools.maven.feature,org.jboss.tools.maven.cdi.feature,org.jboss.tools.maven.hibernate.feature,org.jboss.tools.maven.jaxrs.feature, org.jboss.tools.maven.portlet.feature,org.jboss.tools.maven.seam.feature</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ <!-- no cheatsheet yet
+ <welcome type="cheatsheets" url="/poh5-helloworld/cheatsheets/poh5-helloworld.xml"/>
+ -->
+ </project>
</projects>
14 years