JBoss Tools SVN: r2222 - in trunk/jst/tests/org.jboss.tools.jst.web.ui.test: META-INF and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-06-29 15:35:07 -0400 (Fri, 29 Jun 2007)
New Revision: 2222
Added:
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.classpath
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.project
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/META-INF/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/build.properties
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/JstWebUiAllTests.java
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebViewsTest.java
Log:
http://jira.jboss.org/jira/browse/EXIN-13
Added: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.classpath (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.classpath 2007-06-29 19:35:07 UTC (rev 2222)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/.project 2007-06-29 19:35:07 UTC (rev 2222)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jst.web.ui.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/META-INF/MANIFEST.MF 2007-06-29 19:35:07 UTC (rev 2222)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: WEB UI Test Plug-in
+Bundle-SymbolicName: org.jboss.tools.jst.web.ui.test
+Bundle-Version: 1.0.0
+Bundle-Vendor: Red Hat, Inc.
+Require-Bundle: org.jboss.tools.jst.web.ui,
+ org.junit,
+ org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.common.model.ui
Added: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/build.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/build.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/build.properties 2007-06-29 19:35:07 UTC (rev 2222)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/JstWebUiAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/JstWebUiAllTests.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/JstWebUiAllTests.java 2007-06-29 19:35:07 UTC (rev 2222)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * 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.jst.web.ui.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+
+/**
+ * @author eskimo
+ *
+ */
+public class JstWebUiAllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(JstWebUiAllTests.class.getName());
+ suite.addTestSuite(WebViewsTest.class);
+ return suite;
+ }
+}
Added: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebViewsTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebViewsTest.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebViewsTest.java 2007-06-29 19:35:07 UTC (rev 2222)
@@ -0,0 +1,102 @@
+/*******************************************************************************
+ * 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.jst.web.ui.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.ui.IPerspectiveDescriptor;
+import org.eclipse.ui.IPerspectiveRegistry;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.WorkbenchException;
+import org.jboss.tools.common.model.ui.views.palette.PaletteViewPart;
+import org.jboss.tools.jst.web.ui.BrowserView;
+import org.jboss.tools.jst.web.ui.RedHat4WebPerspectiveFactory;
+import org.jboss.tools.jst.web.ui.navigator.WebProjectsNavigator;
+
+/**
+ * @author eskimo
+ *
+ */
+public class WebViewsTest extends TestCase {
+
+ /**
+ * @throws java.lang.Exception
+ */
+ protected void setUp() throws Exception {
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ try {
+ workbench.showPerspective(RedHat4WebPerspectiveFactory.PERSPECTIVE_ID,workbench.getActiveWorkbenchWindow());
+ } catch (WorkbenchException e) {
+ fail("Cannot load perspective '" +RedHat4WebPerspectiveFactory.PERSPECTIVE_ID + "'");
+ }
+ }
+
+ /**
+ *
+ */
+ public void testRhdsPerspectiveIsDefined() {
+ IPerspectiveDescriptor perspective = getRhdsPerspective();
+ assertNotNull("Cannot find perspective '" +RedHat4WebPerspectiveFactory.PERSPECTIVE_ID + "'",perspective);
+ }
+
+
+ public void testPerspectiveIsShowed() {
+ IPerspectiveDescriptor perspective = getRhdsPerspective();
+ IWorkbench workbench =PlatformUI.getWorkbench();
+ try {
+ workbench.showPerspective(RedHat4WebPerspectiveFactory.PERSPECTIVE_ID, workbench.getActiveWorkbenchWindow());
+ } catch (WorkbenchException e) {
+ fail("Cannot show perspective '" +RedHat4WebPerspectiveFactory.PERSPECTIVE_ID + "'");
+ }
+ }
+ /**
+ *
+ */
+ public void testBrowserViewIsShowed() {
+ IViewPart browserView = findView(BrowserView.ID);
+ assertNotNull("Browser View hasn't been loaded",browserView);
+ }
+
+ public void testWebProjectsViewIsShowed() {
+ IViewPart webProjectsView = findView(WebProjectsNavigator.VIEW_ID);
+ assertNotNull("Web project Navigator hasn't been loaded",webProjectsView);
+ }
+
+ public void testPaletteViewIsShowed() {
+ IViewPart paletteView = findView(PaletteViewPart.VIEW_ID);
+ assertNotNull("Palette View hasn't been loaded",paletteView);
+ }
+
+ // Helper methods
+
+ private IViewPart findView(String id) {
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ return workbench.getActiveWorkbenchWindow().getActivePage().findView(id);
+ }
+
+ /*
+ *
+ */
+ private IPerspectiveDescriptor getRhdsPerspective() {
+ IPerspectiveRegistry reg = getPerspectiveRegistry();
+ return reg.findPerspectiveWithId(RedHat4WebPerspectiveFactory.PERSPECTIVE_ID);
+ }
+
+ /*
+ *
+ */
+ private IPerspectiveRegistry getPerspectiveRegistry() {
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ return workbench.getPerspectiveRegistry();
+ }
+}
17 years, 6 months
JBoss Tools SVN: r2220 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/reporting.
by jbosstools-commits@lists.jboss.org
Author: ayukhovich
Date: 2007-06-29 11:16:54 -0400 (Fri, 29 Jun 2007)
New Revision: 2220
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizard.java
Log:
fixing issue 240
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizard.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizard.java 2007-06-29 14:58:30 UTC (rev 2219)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/reporting/ReportProblemWizard.java 2007-06-29 15:16:54 UTC (rev 2220)
@@ -12,40 +12,63 @@
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
+import java.io.ByteArrayOutputStream;
import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
import java.io.IOException;
-import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.text.Collator;
+import java.text.DateFormat;
import java.text.SimpleDateFormat;
-import java.util.Calendar;
+import java.util.Arrays;
+import java.util.Comparator;
import java.util.Date;
-import java.util.GregorianCalendar;
+import java.util.Locale;
import java.util.StringTokenizer;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
-import org.jboss.tools.common.model.ui.attribute.XAttributeSupport;
-import org.jboss.tools.common.model.ui.attribute.adapter.IModelPropertyEditorAdapter;
-import org.jboss.tools.common.model.ui.wizards.query.*;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.widgets.*;
-
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Group;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Layout;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.about.ISystemSummarySection;
+import org.eclipse.ui.internal.IWorkbenchConstants;
+import org.eclipse.ui.internal.WorkbenchMessages;
+import org.eclipse.ui.internal.WorkbenchPlugin;
+import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants;
+import org.jboss.tools.common.CommonPlugin;
import org.jboss.tools.common.meta.action.XActionInvoker;
import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.meta.action.impl.XEntityDataImpl;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
-import org.jboss.tools.common.CommonPlugin;
-import org.jboss.tools.common.reporting.ProblemReportingHelper;
import org.jboss.tools.common.model.ui.ModelUIImages;
+import org.jboss.tools.common.model.ui.ModelUIPlugin;
+import org.jboss.tools.common.model.ui.attribute.XAttributeSupport;
+import org.jboss.tools.common.model.ui.attribute.adapter.IModelPropertyEditorAdapter;
import org.jboss.tools.common.model.ui.widgets.ReferenceListener;
import org.jboss.tools.common.model.ui.widgets.TextAndReferenceComponent;
+import org.jboss.tools.common.model.ui.wizards.query.AbstractQueryWizard;
+import org.jboss.tools.common.model.ui.wizards.query.AbstractQueryWizardView;
+import org.jboss.tools.common.reporting.ProblemReportingHelper;
+import org.jboss.tools.common.reporting.Submit;
import org.osgi.framework.Bundle;
public class ReportProblemWizard extends AbstractQueryWizard {
@@ -57,9 +80,9 @@
}
class ReportProblemWizardView extends AbstractQueryWizardView {
-
+
SimpleDateFormat dtf = new SimpleDateFormat("dd_MMM_yyyy__HH_mm_ss_SSS");
-
+
int stackTracesCount;
Text problemDescription;
XAttributeSupport sendSupport;
@@ -100,74 +123,186 @@
/**
*
*/
- private void createStackTracesFile() {
+ private byte[] getStackTracesFile() {
+ StringBuffer sb = new StringBuffer();
+ try {
+ InputStreamReader in = new FileReader(Platform.getLogFileLocation()
+ .toOSString());
+
+ char[] tempBuffer = new char[512];
+ int len = 0;
+ while ((len = in.read(tempBuffer)) != -1) {
+ sb.append(tempBuffer);
+ }
+
+ } catch (FileNotFoundException e) {
+ } catch (IOException e) {
+ }
+
+ return sb.toString().getBytes();
}
/**
*
*/
- private void createUsercommentFile() {
+ private byte[] getUsercommentFile() {
+ StringBuffer sb = new StringBuffer();
+ sb = sb.append("email : ").append(
+ ReportPreference.E_MAIL_OPTION.getValue()).append("\n");
+ sb = sb.append("description : ").append(problemDescription.getText())
+ .append("\n");
+ sb.append("other : ").append(ReportPreference.OTHER_OPTION.getValue())
+ .append("\n");
+
+ return sb.toString().getBytes();
}
+ private IConfigurationElement[] getSortedExtensions() {
+ IConfigurationElement[] configElements = Platform
+ .getExtensionRegistry().getConfigurationElementsFor(
+ PlatformUI.PLUGIN_ID,
+ IWorkbenchRegistryConstants.PL_SYSTEM_SUMMARY_SECTIONS);
+
+ Arrays.sort(configElements, new Comparator() {
+ Collator collator = Collator.getInstance(Locale.getDefault());
+
+ public int compare(Object a, Object b) {
+ IConfigurationElement element1 = (IConfigurationElement) a;
+ IConfigurationElement element2 = (IConfigurationElement) b;
+
+ String id1 = element1.getAttribute("id"); //$NON-NLS-1$
+ String id2 = element2.getAttribute("id"); //$NON-NLS-1$
+
+ if (id1 != null && id2 != null && !id1.equals(id2)) {
+ return collator.compare(id1, id2);
+ }
+
+ String title1 = element1.getAttribute("sectionTitle"); //$NON-NLS-1$
+ String title2 = element2.getAttribute("sectionTitle"); //$NON-NLS-1$
+
+ if (title1 == null) {
+ title1 = ""; //$NON-NLS-1$
+ }
+ if (title2 == null) {
+ title2 = ""; //$NON-NLS-1$
+ }
+
+ return collator.compare(title1, title2);
+ }
+ });
+
+ return configElements;
+ }
+
+ /*
+ * Appends the contents of all extentions to the configurationLogSections
+ * extension point.
+ */
+ private void appendExtensions(PrintWriter writer) {
+ IConfigurationElement[] configElements = getSortedExtensions();
+ for (int i = 0; i < configElements.length; ++i) {
+ IConfigurationElement element = configElements[i];
+
+ Object obj = null;
+ try {
+ obj = WorkbenchPlugin.createExtension(element,
+ IWorkbenchConstants.TAG_CLASS);
+ } catch (CoreException e) {
+ WorkbenchPlugin.log(
+ "could not create class attribute for extension", //$NON-NLS-1$
+ e.getStatus());
+ }
+
+ writer.println();
+ writer.println(NLS.bind(
+ WorkbenchMessages.SystemSummary_sectionTitle, element
+ .getAttribute("sectionTitle"))); //$NON-NLS-1$
+
+ if (obj instanceof ISystemSummarySection) {
+ ISystemSummarySection logSection = (ISystemSummarySection) obj;
+ logSection.write(writer);
+ } else {
+ writer.println(WorkbenchMessages.SystemSummary_sectionError);
+ }
+ }
+ }
+
/**
*
*/
- private void createEclipsePropertiesFile() {
+ private byte[] getEclipsePropertiesFile() {
+ StringWriter out = new StringWriter();
+ PrintWriter writer = new PrintWriter(out);
+ writer.println(NLS.bind(WorkbenchMessages.SystemSummary_timeStamp,
+ DateFormat
+ .getDateTimeInstance(DateFormat.FULL, DateFormat.FULL)
+ .format(new Date())));
+ appendExtensions(writer);
+ writer.close();
+ return out.toString().getBytes();
}
/**
* create a ZIP file containg folloving files:
*/
- private void createZipFile() throws IOException {
- byte tempBuffer[] = new byte[512];
- String[] filesToZip = new String[] { getStackTraceFilename(),
- getUsercommentFilename(), getEclipsePropertiesFilename() };
+ private String createZipFile() throws IOException {
+ byte tempBuffer[];
+ String[] fileNames = new String[] { "stacktrace.txt",
+ "usercomment.txt", "eclipse.properties" };
- ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(
- getStackTraceFilename()));
- for (int i = 0; i < filesToZip.length; i++) {
- InputStream in = new FileInputStream(filesToZip[i]);
- ZipEntry e = new ZipEntry(filesToZip[i].replace(File.separatorChar,
+
+ ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();
+
+ ZipOutputStream zout = new ZipOutputStream(byteBuffer);
+ for (int i = 0; i < fileNames.length; i++) {
+
+ switch (i) {
+ case 0:
+ tempBuffer = getStackTracesFile();
+ break;
+ case 1:
+ tempBuffer = getUsercommentFile();
+ break;
+ case 2:
+ tempBuffer = getEclipsePropertiesFile();
+ break;
+ default:
+ tempBuffer = "Unknown data".getBytes();
+
+ }
+
+ ZipEntry e = new ZipEntry(fileNames[i].replace(File.separatorChar,
'/'));
zout.putNextEntry(e);
- int len = 0;
- while ((len = in.read(tempBuffer)) != -1) {
- zout.write(tempBuffer, 0, len);
- }
+ zout.write(tempBuffer, 0, tempBuffer.length);
zout.closeEntry();
}
zout.close();
+
+ return byteBuffer.toString();
}
private String getLogFolderLocation() {
Bundle b = Platform.getBundle("org.jboss.tools.common");
- String stateLocation = Platform.getStateLocation(b).toString().replace('\\', '/');
+ String stateLocation = Platform.getStateLocation(b).toString().replace(
+ '\\', '/');
return stateLocation;
}
-
- private String getStackTraceFilename() {
- return getLogFolderLocation() + "/stacktrace.txt";
- }
- private String getUsercommentFilename() {
- return getLogFolderLocation() + "/usercomment.txt";
- }
-
- private String getEclipsePropertiesFilename() {
- return getLogFolderLocation() + "/eclipse.properties";
- }
-
private String getZipFilename() {
Date today;
String currentDate;
today = new Date();
currentDate = dtf.format(today);
-
- return getLogFolderLocation() + "rhds-log-" + currentDate.toString() + ".zip";
+
+ String sss = Platform.getLogFileLocation().toOSString();
+
+ return getLogFolderLocation() + "rhds-log-" + currentDate.toString()
+ + ".zip";
}
private void createStackTracesControl(Composite parent) {
@@ -306,7 +441,15 @@
}
String email = ReportPreference.E_MAIL_OPTION.getValue();
String other = ReportPreference.OTHER_OPTION.getValue();
- ProblemReportingHelper.buffer.report(text, email, other, addRedHatLog);
+
+ try {
+ String reportText = createZipFile();
+ Submit.getInstance().submit(reportText, addRedHatLog);
+// ProblemReportingHelper.buffer.report(text, email, other, addRedHatLog);
+ } catch (IOException e) {
+ ModelUIPlugin.getPluginLog().logError(e);
+ }
+
if (addRedHatLog) {
// clean is to be done after report,
// which is executed as background job.
17 years, 6 months
JBoss Tools SVN: r2219 - in trunk/documentation/GettingStartedGuide/docs: build and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: sabrashevich
Date: 2007-06-29 10:58:30 -0400 (Fri, 29 Jun 2007)
New Revision: 2219
Added:
trunk/documentation/GettingStartedGuide/docs/build/
trunk/documentation/GettingStartedGuide/docs/build/usersguide/
trunk/documentation/GettingStartedGuide/docs/build/usersguide/en/
trunk/documentation/GettingStartedGuide/docs/build/usersguide/en/html/
trunk/documentation/GettingStartedGuide/docs/build/usersguide/en/html/images/
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/EclipseConProjectStructure.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml
Log:
new links to resources
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/EclipseConProjectStructure.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml 2007-06-29 13:57:39 UTC (rev 2218)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/AjaxCRUDApplicationWithSeamAndRichFaces.xml 2007-06-29 14:58:30 UTC (rev 2219)
@@ -20,7 +20,7 @@
integrated with a Java EE server or in a simple POJO environment like Tomcat. Seam is
also extremely portable, and has been tested on several popular containers like JBoss,
Tomcat, Weblogic, WebSphere. Seam uses JSF as its view layer and can use either JSP or
- Faceless as the presentation layer.</para>
+ Facelets as the presentation layer.</para>
<para>Seam Gen generates all the required layers of an application. It uses JPA as the
persistence layer, POJO's (Plain Old Java Objects) as the business logic layer and
Facelets as the presentation layer.</para>
@@ -678,4 +678,18 @@
<para>Seam uses Ajax4Jsf to make a server side call to validate the field.</para>
</section>
</section>
+
+<section id="OtherRelevantResourcesOnTheTopic2">
+<?dbhtml filename="OtherRelevantResourcesOnTheTopic2.html"?>
+<title>Other relevant resources on the topic</title>
+<para>Seam on JBoss: <ulink url="http://www.jboss.com/products/seam">Seam Framework</ulink></para>
+
+<para>Ten Good Reasons to use Seam: <ulink url="http://www.jboss.com/products/seam/whyseam">Why Seam</ulink></para>
+<para>Getting Started: <ulink url="http://labs.jboss.com/jbossseam/gettingstarted">Getting Started with JBoss Seam</ulink></para>
+<para>Wiki: <ulink url="http://www.jboss.com/wiki/Wiki.jsp?page=JBossSeam">JBoss Wiki</ulink></para>
+<para>FAQ: <ulink url="http://labs.jboss.com/jbossseam/faq/index.html">JBoss Seam FAQ</ulink></para>
+<para>Downloads: <ulink url="http://labs.jboss.com/jbossseam/download">JBoss Seam Downloads</ulink></para>
+<para>Jira: <ulink url="http://jira.jboss.org/jira/browse/JBSEAM">Jira issue tracker</ulink></para>
+<para>Rules Framework: <ulink url="http://www.jboss.com/products/rules">JBoss Rules</ulink></para>
+</section>
</chapter>
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml 2007-06-29 13:57:39 UTC (rev 2218)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforJSFwithHibernate.xml 2007-06-29 14:58:30 UTC (rev 2219)
@@ -511,4 +511,16 @@
again and enter a user that you already saved, the application should retrieve it from the database
and display its details.</para>
</section>
+
+<section id="OtherRelevantResourcesOnTheTopic">
+<?dbhtml filename="OtherRelevantResourcesOnTheTopic.html"?>
+<title>Other relevant resources on the topic</title>
+<para>Hibernate on JBoss: <ulink url="http://www.jboss.org/products/hibernate">Hibernate Framework</ulink></para>
+
+<para>Hibernate Annotations: <ulink url="http://docs.jboss.org/ejb3/app-server/HibernateAnnotations/reference/en/h...">Hibernate Annotations</ulink></para>
+<para>Downloads: <ulink url="http://www.hibernate.org/6.html">Hibernate Download</ulink></para>
+<para>Wiki: <ulink url="http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate">Hibernate Wiki</ulink></para>
+
+</section>
+
</chapter>
17 years, 6 months
JBoss Tools SVN: r2218 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors: parts and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-06-29 09:57:39 -0400 (Fri, 29 Jun 2007)
New Revision: 2218
Removed:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExtendedShape.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExtendedShapeEditPart.java
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ComponentShape.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExpandeableShape.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmShape.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ComponentShapeEditPart.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExpandeableShapeEditPart.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmEditPartFactory.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmShapeEditPart.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ShapeEditPart.java
Log:
deleted ExtednedShape and ExtendedShapeEditPart
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ComponentShape.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ComponentShape.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ComponentShape.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -24,7 +24,7 @@
* @author Konstantin Mishin
*
*/
-public class ComponentShape extends ExtendedShape {
+public class ComponentShape extends ExpandeableShape {
public static final String SET_CHILDS_HIDEN = "set childs hiden";
protected boolean childsHiden = true;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExpandeableShape.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExpandeableShape.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExpandeableShape.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -27,7 +27,12 @@
public static final String SHOW_REFERENCES = "show references";
private boolean refHide = false;
+ protected List<Shape> shapes = new ArrayList<Shape>();
+ public List<Shape> getChildren() {
+ return shapes;
+ }
+
public ExpandeableShape(Object ioe) {
super(ioe);
}
Deleted: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExtendedShape.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExtendedShape.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/ExtendedShape.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -1,30 +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.hibernate.veditor.editors.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.hibernate.mapping.Collection;
-import org.hibernate.mapping.Property;
-
-
-public class ExtendedShape extends ExpandeableShape {
- protected List<Shape> shapes = new ArrayList<Shape>();
-
- protected ExtendedShape(Object ioe) {
- super(ioe);
- }
-
- public List<Shape> getChildren() {
- return shapes;
- }
-}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmDiagram.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -235,7 +235,7 @@
return tableShape;
}
- private void createConnections(ExtendedShape persistentClass, ExtendedShape databaseTable){
+ private void createConnections(ExpandeableShape persistentClass, ExpandeableShape databaseTable){
int i = 0;
boolean check = (persistentClass.getOrmElement() instanceof SpecialRootClass);
Iterator persistentFields = persistentClass.getChildren().iterator();
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmShape.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmShape.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/model/OrmShape.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -26,7 +26,7 @@
* @author Konstantin Mishin
*
*/
-public class OrmShape extends ExtendedShape {
+public class OrmShape extends ExpandeableShape {
public static final String SET_HIDEN = "set hiden";
public static final String LOCATION_PROP = "OrmShape.Location";
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ComponentShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ComponentShapeEditPart.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ComponentShapeEditPart.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -29,13 +29,12 @@
import org.jboss.tools.hibernate.veditor.editors.figures.TitleFigure;
import org.jboss.tools.hibernate.veditor.editors.figures.TitleLabel;
import org.jboss.tools.hibernate.veditor.editors.model.ComponentShape;
-import org.jboss.tools.hibernate.veditor.editors.model.ExtendedShape;
import org.jboss.tools.hibernate.veditor.editors.model.OrmDiagram;
import org.jboss.tools.hibernate.veditor.editors.model.OrmShape;
import org.jboss.tools.hibernate.veditor.editors.model.Shape;
-public class ComponentShapeEditPart extends ExtendedShapeEditPart {
+public class ComponentShapeEditPart extends ExpandeableShapeEditPart {
protected IFigure createFigure() {
if (getModel() instanceof ComponentShape) {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExpandeableShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExpandeableShapeEditPart.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -28,7 +28,6 @@
import org.jboss.tools.hibernate.veditor.editors.model.ComponentShape;
import org.jboss.tools.hibernate.veditor.editors.model.Connection;
import org.jboss.tools.hibernate.veditor.editors.model.ExpandeableShape;
-import org.jboss.tools.hibernate.veditor.editors.model.ExtendedShape;
import org.jboss.tools.hibernate.veditor.editors.model.OrmShape;
import org.jboss.tools.hibernate.veditor.editors.model.Shape;
@@ -43,7 +42,13 @@
public void propertyChange(PropertyChangeEvent evt) {
String prop = evt.getPropertyName();
- if (ExpandeableShape.SHOW_REFERENCES.equals(prop)) {
+ if (Shape.SHOW_SELECTION.equals(prop)) {
+ ((IFigure)getFigure().getChildren().get(0)).setBackgroundColor(getSelectionColor());
+ ((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(255,255,255)));
+ } else if (Shape.HIDE_SELECTION.equals(prop)) {
+ ((IFigure)getFigure().getChildren().get(0)).setBackgroundColor(getColor());
+ ((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(0,0,0)));
+ }else if (ExpandeableShape.SHOW_REFERENCES.equals(prop)) {
// ((IFigure)getFigure().getChildren().get(0)).setBackgroundColor(getSelectionColor());
// ((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(255,255,255)));
} else {
@@ -51,4 +56,7 @@
}
}
+ protected List getModelChildren() {
+ return ((ExpandeableShape)getModel()).getChildren();
+ }
}
Deleted: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExtendedShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExtendedShapeEditPart.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ExtendedShapeEditPart.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -1,51 +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.hibernate.veditor.editors.parts;
-
-import java.beans.PropertyChangeEvent;
-import java.util.List;
-
-import org.eclipse.draw2d.FocusBorder;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.MarginBorder;
-import org.eclipse.draw2d.PositionConstants;
-import org.eclipse.draw2d.ToolbarLayout;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.RequestConstants;
-import org.eclipse.swt.graphics.RGB;
-import org.jboss.tools.hibernate.veditor.editors.figures.TitleFigure;
-import org.jboss.tools.hibernate.veditor.editors.figures.TitleLabel;
-import org.jboss.tools.hibernate.veditor.editors.model.ComponentShape;
-import org.jboss.tools.hibernate.veditor.editors.model.ExtendedShape;
-import org.jboss.tools.hibernate.veditor.editors.model.OrmShape;
-import org.jboss.tools.hibernate.veditor.editors.model.Shape;
-
-
-public class ExtendedShapeEditPart extends ExpandeableShapeEditPart {
-
- public void propertyChange(PropertyChangeEvent evt) {
- String prop = evt.getPropertyName();
- if (Shape.SHOW_SELECTION.equals(prop)) {
- ((IFigure)getFigure().getChildren().get(0)).setBackgroundColor(getSelectionColor());
- ((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(255,255,255)));
- } else if (Shape.HIDE_SELECTION.equals(prop)) {
- ((IFigure)getFigure().getChildren().get(0)).setBackgroundColor(getColor());
- ((IFigure)getFigure().getChildren().get(0)).setForegroundColor(ResourceManager.getInstance().getColor(new RGB(0,0,0)));
- } else {
- super.propertyChange(evt);
- }
- }
-
- protected List getModelChildren() {
- return ((ExtendedShape)getModel()).getChildren();
- }
-}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmEditPartFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmEditPartFactory.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmEditPartFactory.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -15,7 +15,6 @@
import org.jboss.tools.hibernate.veditor.editors.model.ComponentShape;
import org.jboss.tools.hibernate.veditor.editors.model.Connection;
import org.jboss.tools.hibernate.veditor.editors.model.ExpandeableShape;
-import org.jboss.tools.hibernate.veditor.editors.model.ExtendedShape;
import org.jboss.tools.hibernate.veditor.editors.model.OrmDiagram;
import org.jboss.tools.hibernate.veditor.editors.model.OrmShape;
import org.jboss.tools.hibernate.veditor.editors.model.Shape;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmShapeEditPart.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/OrmShapeEditPart.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -36,7 +36,6 @@
import org.jboss.tools.hibernate.veditor.editors.figures.TitleFigure;
import org.jboss.tools.hibernate.veditor.editors.figures.TitleLabel;
import org.jboss.tools.hibernate.veditor.editors.model.ExpandeableShape;
-import org.jboss.tools.hibernate.veditor.editors.model.ExtendedShape;
import org.jboss.tools.hibernate.veditor.editors.model.OrmDiagram;
import org.jboss.tools.hibernate.veditor.editors.model.OrmShape;
@@ -45,7 +44,7 @@
* @author Konstantin Mishin
*
*/
-public class OrmShapeEditPart extends ExtendedShapeEditPart{
+public class OrmShapeEditPart extends ExpandeableShapeEditPart{
protected IFigure createFigure() {
if (getModel() instanceof OrmShape) {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ShapeEditPart.java 2007-06-29 13:38:16 UTC (rev 2217)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/veditor/editors/parts/ShapeEditPart.java 2007-06-29 13:57:39 UTC (rev 2218)
@@ -92,6 +92,7 @@
getViewer().select(this);
getViewer().reveal(this);
}
+ refresh();
}
public void performRequest(Request req) {
17 years, 6 months
JBoss Tools SVN: r2217 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-06-29 09:38:16 -0400 (Fri, 29 Jun 2007)
New Revision: 2217
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
Log:
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java 2007-06-29 13:34:14 UTC (rev 2216)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java 2007-06-29 13:38:16 UTC (rev 2217)
@@ -20,5 +20,5 @@
*/
public String getName();
-// TODO we should hold a link to source object (Outjection, Component, etc.)
+// TODO we should hold a link to source object (IBijectedAttribute, ISeamComponent, etc.)
}
\ No newline at end of file
17 years, 6 months
JBoss Tools SVN: r2216 - in trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam: internal/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-06-29 09:34:14 -0400 (Fri, 29 Jun 2007)
New Revision: 2216
Added:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java
Log:
Seam tools model
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-06-29 13:30:19 UTC (rev 2215)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-06-29 13:34:14 UTC (rev 2216)
@@ -58,4 +58,21 @@
* @param component
*/
public void removeComponent(ISeamComponent component);
+
+ /**
+ * @return all seam variables from all contexts.
+ */
+ public Set<ISeamVariable> getVariables();
+
+ /**
+ * @param name
+ * @return all seam variables by name from all contexts
+ */
+ public Set<ISeamVariable> getVariablesByName(String name);
+
+ /**
+ * @param name
+ * @return all seam variables from specific context
+ */
+ public Set<ISeamVariable> getVariablesByScope(ScopeType scope);
}
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamVariable.java 2007-06-29 13:34:14 UTC (rev 2216)
@@ -0,0 +1,24 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.core;
+
+/**
+ * @author Alexey Kazakov
+ */
+public interface ISeamVariable {
+
+ /**
+ * @return name
+ */
+ public String getName();
+
+// TODO we should hold a link to source object (Outjection, Component, etc.)
+}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2007-06-29 13:30:19 UTC (rev 2215)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2007-06-29 13:34:14 UTC (rev 2216)
@@ -21,10 +21,10 @@
import org.eclipse.core.runtime.IPath;
import org.jboss.tools.seam.core.ISeamComponent;
import org.jboss.tools.seam.core.ISeamProject;
+import org.jboss.tools.seam.core.ISeamVariable;
import org.jboss.tools.seam.core.ScopeType;
/**
- *
* @author glory
*/
public class SeamProject implements ISeamProject {
@@ -148,4 +148,28 @@
// TODO Auto-generated method stub
}
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.core.ISeamProject#getVariables()
+ */
+ public Set<ISeamVariable> getVariables() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.core.ISeamProject#getVariablesByName(java.lang.String)
+ */
+ public Set<ISeamVariable> getVariablesByName(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.core.ISeamProject#getVariablesByScope(org.jboss.tools.seam.core.ScopeType)
+ */
+ public Set<ISeamVariable> getVariablesByScope(ScopeType scope) {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java 2007-06-29 13:30:19 UTC (rev 2215)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProperty.java 2007-06-29 13:34:14 UTC (rev 2216)
@@ -11,6 +11,7 @@
package org.jboss.tools.seam.internal.core;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
import org.jboss.tools.seam.core.ISeamProperty;
public class SeamProperty<T extends Object> implements ISeamProperty<T> {
@@ -68,9 +69,9 @@
}
/* (non-Javadoc)
- * @see org.jboss.tools.seam.core.ISeamXmlElement#getSourceFile()
+ * @see org.jboss.tools.seam.core.ISeamXmlElement#getResource()
*/
- public IFile getSourceFile() {
+ public IResource getResource() {
// TODO Auto-generated method stub
return null;
}
17 years, 6 months
JBoss Tools SVN: r2215 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-06-29 09:30:19 -0400 (Fri, 29 Jun 2007)
New Revision: 2215
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlElement.java
Log:
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlElement.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlElement.java 2007-06-29 12:38:46 UTC (rev 2214)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlElement.java 2007-06-29 13:30:19 UTC (rev 2215)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.seam.core;
-import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
/**
* @author Alexey Kazakov
@@ -18,7 +18,7 @@
*/
public interface ISeamXmlElement {
- public IFile getSourceFile();
+ public IResource getResource();
public int getStartPosition();
public int getLength();
}
\ No newline at end of file
17 years, 6 months
JBoss Tools SVN: r2214 - trunk/as/plugins/org.jboss.ide.eclipse.as.core.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-06-29 08:38:46 -0400 (Fri, 29 Jun 2007)
New Revision: 2214
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath
Log:
removed <classpathentry kind="lib" path="C:/Training/jboss-4.x/lib/getopt.jar"/>
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath 2007-06-29 04:02:09 UTC (rev 2213)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath 2007-06-29 12:38:46 UTC (rev 2214)
@@ -6,6 +6,5 @@
<classpathentry exported="true" kind="lib" path="jaxen-1.1-beta-6.jar"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="lib" path="C:/Training/jboss-4.x/lib/getopt.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 years, 6 months
JBoss Tools SVN: r2213 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/runtime/server/polling.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-06-29 00:02:09 -0400 (Fri, 29 Jun 2007)
New Revision: 2213
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/runtime/server/polling/TwiddlePoller.java
Log:
further cleanup
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/runtime/server/polling/TwiddlePoller.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/runtime/server/polling/TwiddlePoller.java 2007-06-29 03:47:35 UTC (rev 2212)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/runtime/server/polling/TwiddlePoller.java 2007-06-29 04:02:09 UTC (rev 2213)
@@ -57,7 +57,7 @@
private boolean canceled;
private boolean done;
private IServer server;
- private boolean securityException = false;
+ private PollingException pollingException = null;
private EventLogTreeItem event;
public void beginPolling(IServer server, boolean expectedState, PollThread pt) {
@@ -76,7 +76,6 @@
ClassLoader twiddleLoader = getClassLoader();
if( twiddleLoader != null ) {
Thread.currentThread().setContextClassLoader(twiddleLoader);
- System.out.println("here we go");
Properties props = new Properties();
props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
@@ -99,12 +98,10 @@
done = true;
}
} catch (NamingException e) {
- // should give up now
+ pollingException = new PollingNamingException("Naming Exception: " + e.getMessage());
} catch( SecurityException se ) {
- securityException = true;
+ pollingException = new PollingSecurityException("Security Exception: " + se.getMessage());
} catch( Exception e ) {
- System.out.println("exception: " + e.getMessage());
- e.printStackTrace();
started = STATE_STOPPED;
if( !expectedState )
done = true;
@@ -161,8 +158,13 @@
public class PollingSecurityException extends PollingException {
public PollingSecurityException(String msg) {super(msg);}
}
+ public class PollingNamingException extends PollingException {
+ public PollingNamingException(String msg) {super(msg);}
+ }
+
+
public boolean getState() throws PollingException {
- if( securityException ) throw new PollingSecurityException("Security Exception");
+ if( pollingException != null ) throw pollingException;
if( started == 0 ) return SERVER_DOWN;
if( started == 1 ) return SERVER_UP;
@@ -173,8 +175,8 @@
}
public boolean isComplete() throws PollingException {
- if( securityException )
- throw new PollingSecurityException("Security Exception");
+ if( pollingException != null )
+ throw pollingException;
return done;
}
17 years, 6 months