JBoss Tools SVN: r14864 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-04-23 08:05:31 -0400 (Thu, 23 Apr 2009)
New Revision: 14864
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_application.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-707 - Screens update. Inline graphic.The Getting Started with JBoss Developer Studio guide was updated by inline graphic .first_seam.xml and jsp_application.xml were a little modified.
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_application.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_application.xml 2009-04-23 12:04:59 UTC (rev 14863)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/jsp_application.xml 2009-04-23 12:05:31 UTC (rev 14864)
@@ -121,8 +121,8 @@
</imageobject>
</mediaobject>
</figure>
- <para>Our <emphasis><property>hello.jsp</property></emphasis> page will now appear in
- <property>Project Explorer</property>.
+ <para>Our <emphasis><property>hello.jsp</property></emphasis> page will now appear in
+ <property>Project Explorer</property>.
</para>
<section id="EditingJSPPage">
<?dbhtml filename="EditingJSPPage.html"?>
@@ -375,17 +375,15 @@
<itemizedlist>
<listitem>
<para>Start JBoss Server from <ulink url="&aslink;#JBossServerView">JBoss
- Server view</ulink> by clicking the Start icon.</para>
+ Server view</ulink> by clicking the Start the server icon (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_18.png"/>
+ </imageobject>
+ </inlinemediaobject> ) .</para>
</listitem>
</itemizedlist>
- <figure>
- <title>Starting Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_15.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+
<itemizedlist>
<listitem>
<para>Click the Run icon or right click your project folder and select <emphasis>
@@ -396,17 +394,15 @@
clicking the <emphasis>
<property>hello.jsp</property>
</emphasis> page and selecting <emphasis>
- <property>Run on the Server</property>. </emphasis></para>
+ <property>Run on the Server</property> </emphasis>(
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/jsp_application/jsp_application_16.png"/>
+ </imageobject>
+ </inlinemediaobject> ).</para>
</listitem>
</itemizedlist>
- <figure>
- <title>Run Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/jsp_application/jsp_application_16.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+
<para>You should see the next page in a Browser :</para>
<figure>
<title>Running Project</title>
@@ -415,7 +411,7 @@
<imagedata fileref="images/jsp_application/jsp_application_17.png"/>
</imageobject>
</mediaobject>
- </figure>
+ </figure>
<para>Thus with the help of this chapter you've learnt how to organize a Dynamic
Web Project with a minimal configuration, add any staff to it (in our case it's
just one jsp page) and deploy and run it on the <property>JBoss Server</property>
15 years, 8 months
JBoss Tools SVN: r14863 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-04-23 08:04:59 -0400 (Thu, 23 Apr 2009)
New Revision: 14863
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-707 - Screens update. Inline graphic.The Getting Started with JBoss Developer Studio guide was updated by inline graphic .first_seam.xml and jsp_application.xml were a little modified.
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2009-04-23 11:43:54 UTC (rev 14862)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2009-04-23 12:04:59 UTC (rev 14863)
@@ -273,17 +273,13 @@
<para>The complete information on how to manage JBoss AS from JBoss Developer Studio you can
read in a <link linkend="manage">corresponding chapter</link>.</para>
- <para>Now you just need to start the server by clicking on green circle/triangle icon in the
- JBoss Server View.</para>
-
- <figure>
- <title>Starting the Server</title>
- <mediaobject>
+ <para>Now you just need to start the server by clicking on the Start the server icon (
+ <inlinemediaobject>
<imageobject>
- <imagedata fileref="images/first_seam/first_seam15.png"/>
+ <imagedata fileref="images/first_seam/first_seam50.png"/>
</imageobject>
- </mediaobject>
- </figure>
+ </inlinemediaobject> ) in the
+ JBoss Server View.</para>
<para>Then run the project by selecting the project and use <emphasis><property>Run As... >
Run on Server</property>.</emphasis></para>
15 years, 8 months
JBoss Tools SVN: r14862 - trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-04-23 07:43:54 -0400 (Thu, 23 Apr 2009)
New Revision: 14862
Added:
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/jsp_application_18.png
Log:
https://jira.jboss.org/jira/browse/JBDS-707 - Screens update. Inline graphic.The Getting Started with JBoss Developer Studio guide was updated by inline graphic .
Added: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/jsp_application_18.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/jsp_application_18.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 8 months
JBoss Tools SVN: r14861 - trunk/documentation/guides/GettingStartedGuide/en/images/first_seam.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-04-23 07:42:14 -0400 (Thu, 23 Apr 2009)
New Revision: 14861
Added:
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam50.png
Log:
https://jira.jboss.org/jira/browse/JBDS-707 - Screens update. Inline graphic.The Getting Started with JBoss Developer Studio guide was updated by inline graphic .
Added: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam50.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam50.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 8 months
JBoss Tools SVN: r14860 - in trunk/seam/plugins: org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2009-04-23 07:14:08 -0400 (Thu, 23 Apr 2009)
New Revision: 14860
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamComponentRenameHandler.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1077
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-04-23 09:45:10 UTC (rev 14859)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-04-23 11:14:08 UTC (rev 14860)
@@ -107,23 +107,23 @@
private IFile file=null;
private ISeamComponent component;
private String newName;
- private ISeamProject seamProject;
+ //private ISeamProject seamProject;
/**
* @param component Renamed component
*/
- public RenameComponentProcessor(IFile file) {
+ public RenameComponentProcessor(ISeamComponent component) {
super();
- this.file = file;
- IProject project = file.getProject();
- seamProject = SeamCorePlugin.getSeamProject(project, true);
- if (seamProject != null) {
- Set<ISeamComponent> components = seamProject.getComponentsByPath(file.getFullPath());
- if (components.size() > 0) {
- // This is a component which we want to rename.
- component = components.iterator().next();
- }
- }
+ this.component = component;
+// IProject project = file.getProject();
+// ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
+// if (seamProject != null) {
+// Set<ISeamComponent> components = seamProject.getComponentsByPath(file.getFullPath());
+// if (components.size() > 0) {
+// // This is a component which we want to rename.
+// component = components.iterator().next();
+// }
+// }
}
public ISeamComponent getComponent() {
@@ -341,7 +341,7 @@
}
private void renameJavaDeclaration(ISeamJavaComponentDeclaration javaDecl) throws CoreException{
- IFile file = (IFile)javaDecl.getResource();
+ file = (IFile)javaDecl.getResource();
if(file != null){
IAnnotation annotation = getNameAnnotation(file);
if(annotation != null){
@@ -356,7 +356,7 @@
}
private void renameXMLDeclaration(ISeamXmlComponentDeclaration xmlDecl){
- IFile file = (IFile)xmlDecl.getResource();
+ file = (IFile)xmlDecl.getResource();
if(file != null){
ISeamTextSourceReference location = ((SeamComponentDeclaration)xmlDecl).getLocationFor(ISeamXmlComponentDeclaration.NAME);
@@ -628,7 +628,7 @@
findDeclarations();
- findAnnotations();
+ //findAnnotations();
findELReferences();
@@ -636,18 +636,18 @@
return rootChange;
}
- private void findAnnotations(){
- Set<ISeamContextVariable> variables = seamProject.getVariablesByName(component.getName());
-
- Iterator<ISeamContextVariable> iter = variables.iterator();
- while(iter.hasNext()){
- ISeamContextVariable var = iter.next();
- System.out.println("var - "+var.getClass());
- if(var instanceof BijectedAttribute){
- System.out.println("Bijected...");
- }
- }
- }
+// private void findAnnotations(){
+// Set<ISeamContextVariable> variables = seamProject.getVariablesByName(component.getName());
+//
+// Iterator<ISeamContextVariable> iter = variables.iterator();
+// while(iter.hasNext()){
+// ISeamContextVariable var = iter.next();
+// System.out.println("var - "+var.getClass());
+// if(var instanceof BijectedAttribute){
+// System.out.println("Bijected...");
+// }
+// }
+// }
/*
* (non-Javadoc)
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamComponentRenameHandler.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamComponentRenameHandler.java 2009-04-23 09:45:10 UTC (rev 14859)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/refactoring/SeamComponentRenameHandler.java 2009-04-23 11:14:08 UTC (rev 14860)
@@ -10,16 +10,22 @@
******************************************************************************/
package org.jboss.tools.seam.ui.refactoring;
+import java.util.Set;
+
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.handlers.HandlerUtil;
+import org.jboss.tools.seam.core.ISeamComponent;
+import org.jboss.tools.seam.core.ISeamProject;
+import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.internal.core.refactoring.RenameComponentProcessor;
import org.jboss.tools.seam.internal.core.refactoring.RenameComponentRefactoring;
import org.jboss.tools.seam.ui.wizard.RenameComponentWizard;
@@ -43,9 +49,20 @@
if (input instanceof IFileEditorInput) {
IFile file = ((IFileEditorInput)input).getFile();
Shell activeShell = HandlerUtil.getActiveShell(event);
- RenameComponentProcessor processor = new RenameComponentProcessor(file);
+
+ IProject project = file.getProject();
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
+ ISeamComponent component=null;
+ if (seamProject != null) {
+ Set<ISeamComponent> components = seamProject.getComponentsByPath(file.getFullPath());
+ if (components.size() > 0) {
+ // This is a component which we want to rename.
+ component = components.iterator().next();
+ }
+ }
+ RenameComponentProcessor processor = new RenameComponentProcessor(component);
RenameComponentRefactoring refactoring = new RenameComponentRefactoring(processor);
- RenameComponentWizard wizard = new RenameComponentWizard(refactoring, processor.getComponent());
+ RenameComponentWizard wizard = new RenameComponentWizard(refactoring, component);
RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
try {
String titleForFailedChecks = "TestTestTest"; //$NON-NLS-1$
15 years, 8 months
JBoss Tools SVN: r14859 - in trunk/vpe/plugins/org.jboss.tools.vpe: templates and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-04-23 05:45:10 -0400 (Thu, 23 Apr 2009)
New Revision: 14859
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/templates/empty-vpe-templates-auto.xml
Removed:
trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-auto.xml
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
Log:
issue JBIDE-4131: Change saving of vpe auto templates
https://jira.jboss.org/jira/browse/JBIDE-4131
- minor fix: name of the default user template file changed to 'empty-vpe-templates-auto.xml' .
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2009-04-22 23:31:24 UTC (rev 14858)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2009-04-23 09:45:10 UTC (rev 14859)
@@ -45,10 +45,10 @@
public class VpeTemplateManager {
- private static final String AUTO_TEMPLATES_DEFAULT_FILE
+ private static final String EMPTY_VPE_TEMPLATES_AUTO
+ = "templates/empty-vpe-templates-auto.xml"; //$NON-NLS-1$
+ private static final String VPE_TEMPLATES_AUTO
= "templates/vpe-templates-auto.xml"; //$NON-NLS-1$
- private static final String AUTO_TEMPLATES_WORKSPACE_FILE
- = "templates/vpe-templates-auto.xml"; //$NON-NLS-1$
static final String TEMPLATES_FOLDER = File.separator + "templates" + File.separator; //$NON-NLS-1$
public static final String VPE_PREFIX = "vpe:"; //$NON-NLS-1$
@@ -1047,12 +1047,12 @@
*/
public static IPath getAutoTemplates() throws IOException {
final IPath workspaceTemplatePath = VpePlugin.getDefault()
- .getStateLocation().append(AUTO_TEMPLATES_WORKSPACE_FILE);
+ .getStateLocation().append(VPE_TEMPLATES_AUTO);
final File workspaceTemplateFile = workspaceTemplatePath.toFile();
if (!workspaceTemplateFile.exists()) {
final IPath dafaultTemplatePath = VpeTemplateFileList
- .getFilePath(AUTO_TEMPLATES_DEFAULT_FILE, null);
+ .getFilePath(EMPTY_VPE_TEMPLATES_AUTO, null);
final File defaultTemplateFile = dafaultTemplatePath.toFile();
copy(defaultTemplateFile, workspaceTemplateFile);
}
Copied: trunk/vpe/plugins/org.jboss.tools.vpe/templates/empty-vpe-templates-auto.xml (from rev 14847, trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-auto.xml)
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/templates/empty-vpe-templates-auto.xml (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/templates/empty-vpe-templates-auto.xml 2009-04-23 09:45:10 UTC (rev 14859)
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<vpe:templates/>
Deleted: trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-auto.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-auto.xml 2009-04-22 23:31:24 UTC (rev 14858)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-auto.xml 2009-04-23 09:45:10 UTC (rev 14859)
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<vpe:templates/>
15 years, 8 months
JBoss Tools SVN: r14858 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-04-22 19:31:24 -0400 (Wed, 22 Apr 2009)
New Revision: 14858
Added:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/DefaultWrapper.java
Log:
create DefaultWrapper
Added: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/DefaultWrapper.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/DefaultWrapper.java (rev 0)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/DefaultWrapper.java 2009-04-22 23:31:24 UTC (rev 14858)
@@ -0,0 +1,17 @@
+package org.jboss.tools.flow.common.wrapper;
+
+import org.eclipse.ui.views.properties.IPropertySource;
+import org.jboss.tools.flow.common.properties.WrapperPropertySource;
+
+public class DefaultWrapper extends AbstractWrapper {
+
+ private WrapperPropertySource propertySource;
+
+ protected IPropertySource getPropertySource() {
+ if (propertySource == null) {
+ propertySource = new WrapperPropertySource(this);
+ }
+ return propertySource;
+ }
+
+}
Property changes on: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/DefaultWrapper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 8 months
JBoss Tools SVN: r14857 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-04-22 19:30:57 -0400 (Wed, 22 Apr 2009)
New Revision: 14857
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java
Log:
addChild and removeChild are split in internalAddChild and localAddChild and internalRemoveChild and localRemoveChild respectively
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java 2009-04-22 23:29:44 UTC (rev 14856)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java 2009-04-22 23:30:57 UTC (rev 14857)
@@ -13,7 +13,7 @@
private Element element;
private transient List<ModelListener> listeners = new ArrayList<ModelListener>();
- private transient Map<Object, List<Element>> children = new HashMap<Object, List<Element>>();
+ private Map<Object, List<Element>> children = new HashMap<Object, List<Element>>();
public void setElement(Element element) {
this.element = element;
@@ -24,25 +24,53 @@
}
public void addChild(Object type, Element element) {
+ localAddChild(type, element);
+ internalAddChild(type, element);
+ notifyListeners(ADD_ELEMENT, type, this, null, element);
+ }
+
+ @SuppressWarnings("unchecked")
+ protected void internalAddChild(Object type, Element element) {
+ Object childList = getPropertyValue(type);
+ if (childList == null || !(childList instanceof List)) return;
+ ((List)childList).add(element);
+ }
+
+ public void localAddChild(Object type, Element element) {
List<Element> childList = children.get(type);
if (childList == null) {
childList = new ArrayList<Element>();
children.put(type, childList);
}
childList.add(element);
- notifyListeners(ADD_ELEMENT, type, this, null, element);
}
public void removeChild(Object type, Element element) {
+ localRemoveChild(type, element);
+ internalRemoveChild(type, element);
+ notifyListeners(REMOVE_ELEMENT, type, this, element, null);
+ }
+
+ @SuppressWarnings("unchecked")
+ protected void internalRemoveChild(Object type, Element element) {
+ Object childList = getPropertyValue(type);
+ if (childList == null || !(childList instanceof List)) return;
+ ((List)childList).remove(element);
+ }
+
+ public void localRemoveChild(Object type, Element element) {
List<Element> childList = children.get(type);
if (childList == null) return;
childList.remove(element);
if (childList.isEmpty()) {
children.remove(type);
}
- notifyListeners(REMOVE_ELEMENT, type, this, element, null);
}
+ public List<Element> getChildren(Object type) {
+ return children.get(type);
+ }
+
public void setMetaData(String name, Object value) {
if (element != null) {
element.setMetaData(name, value);
15 years, 8 months
JBoss Tools SVN: r14856 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-04-22 19:29:44 -0400 (Wed, 22 Apr 2009)
New Revision: 14856
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java
Log:
added getChildren method
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java 2009-04-22 23:28:59 UTC (rev 14855)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/Wrapper.java 2009-04-22 23:29:44 UTC (rev 14856)
@@ -1,5 +1,7 @@
package org.jboss.tools.flow.common.wrapper;
+import java.util.List;
+
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.views.properties.IPropertySource;
import org.jboss.tools.flow.common.model.Element;
@@ -23,6 +25,7 @@
void addChild(Object type, Element element);
void removeChild(Object type, Element element);
+ List<Element> getChildren(Object type);
void addListener(ModelListener listener);
void removeListener(ModelListener listener);
15 years, 8 months
JBoss Tools SVN: r14855 - trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-04-22 19:28:59 -0400 (Wed, 22 Apr 2009)
New Revision: 14855
Added:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultElement.java
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultConnection.java
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultFlow.java
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultNode.java
Log:
create DefaultElement and move the metadata getters/setters to that class
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultConnection.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultConnection.java 2009-04-22 17:37:11 UTC (rev 14854)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultConnection.java 2009-04-22 23:28:59 UTC (rev 14855)
@@ -1,10 +1,8 @@
package org.jboss.tools.flow.common.model;
-import java.util.HashMap;
-public class DefaultConnection implements Connection {
+public class DefaultConnection extends DefaultElement implements Connection {
- private HashMap<String, Object> metaData = new HashMap<String, Object>();
private Node from, to;
public DefaultConnection() {
@@ -16,14 +14,6 @@
setTo(to);
}
- public Object getMetaData(String key) {
- return metaData.get(key);
- }
-
- public void setMetaData(String key, Object value) {
- metaData.put(key, value);
- }
-
public Node getFrom() {
return from;
}
Added: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultElement.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultElement.java (rev 0)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultElement.java 2009-04-22 23:28:59 UTC (rev 14855)
@@ -0,0 +1,17 @@
+package org.jboss.tools.flow.common.model;
+
+import java.util.HashMap;
+
+public class DefaultElement implements Element {
+
+ private HashMap<String, Object> metaData = new HashMap<String, Object>();
+
+ public Object getMetaData(String key) {
+ return metaData.get(key);
+ }
+
+ public void setMetaData(String key, Object value) {
+ metaData.put(key, value);
+ }
+
+}
Property changes on: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultElement.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultFlow.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultFlow.java 2009-04-22 17:37:11 UTC (rev 14854)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultFlow.java 2009-04-22 23:28:59 UTC (rev 14855)
@@ -4,7 +4,7 @@
import java.util.HashMap;
import java.util.List;
-public class DefaultFlow implements Flow {
+public class DefaultFlow extends DefaultElement implements Flow {
private String name;
private HashMap<String, Object> metaData = new HashMap<String, Object>();
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultNode.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultNode.java 2009-04-22 17:37:11 UTC (rev 14854)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/model/DefaultNode.java 2009-04-22 23:28:59 UTC (rev 14855)
@@ -5,14 +5,12 @@
import java.util.List;
import java.util.Map;
-public class DefaultNode implements Node {
+public class DefaultNode extends DefaultElement implements Node {
private long id;
private String name;
private Container container;
- private HashMap<String, Object> metaData = new HashMap<String, Object>();
-
private List<Connection> incomingConnections = new ArrayList<Connection>();
private List<Connection> outgoingConnections = new ArrayList<Connection>();
@@ -32,14 +30,6 @@
this.name = name;
}
- public void setMetaData(String key, Object value) {
- metaData.put(key, value);
- }
-
- public Object getMetaData(String key) {
- return metaData.get(key);
- }
-
public Container getNodeContainer() {
return container;
}
15 years, 8 months