Author: DartPeng
Date: 2008-08-18 23:07:26 -0400 (Mon, 18 Aug 2008)
New Revision: 9788
Added:
workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
Log:
Define a new extension point "Analyzer" for extend the config file generator
Modified: workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml 2008-08-18 22:37:05 UTC
(rev 9787)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/plugin.xml 2008-08-19 03:07:26 UTC
(rev 9788)
@@ -2,6 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension-point id="viewerInitor" name="viewerInitor"
schema="schema/viewerInitor.exsd"/>
+ <extension-point id="analyzer" name="analyzer"
schema="schema/analyzer.exsd"/>
<extension
point="org.eclipse.ui.editors">
Added: workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
(rev 0)
+++ workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd 2008-08-19
03:07:26 UTC (rev 9788)
@@ -0,0 +1,141 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.smooks.ui">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.jboss.tools.smooks.ui"
id="analyzer" name="analyzer"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <complexType>
+ <sequence minOccurs="0" maxOccurs="unbounded">
+ <element ref="analyzer"/>
+ </sequence>
+ <attribute name="point" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="analyzer">
+ <complexType>
+ <sequence minOccurs="0" maxOccurs="unbounded">
+ <element ref="targetSourceType"/>
+ </sequence>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="typeID" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="class" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java"
basedOn=":org.jboss.tools.smooks.analyzer.IAnalyzer"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="targetSourceType">
+ <complexType>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+</schema>
Property changes on:
workspace/dart/plugins/org.jboss.tools.smooks.ui/schema/analyzer.exsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java 2008-08-18
22:37:05 UTC (rev 9787)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/AnalyzerFactory.java 2008-08-19
03:07:26 UTC (rev 9788)
@@ -10,6 +10,19 @@
******************************************************************************/
package org.jboss.tools.smooks.analyzer;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.smooks.utils.SmooksExtensionPointConstants;
+
/**
* @author Dart Peng
* @Date Aug 19, 2008
@@ -17,8 +30,58 @@
public class AnalyzerFactory {
protected static AnalyzerFactory instance = null;
+ private Map<String, AnalyzerMapper> analyzerMap = null;
+
protected AnalyzerFactory() {
+ initAnalyzerMap();
+ }
+ private void initAnalyzerMap() {
+ if (analyzerMap == null) {
+ analyzerMap = new HashMap<String, AnalyzerMapper>();
+ ;
+ IExtensionRegistry registry = Platform.getExtensionRegistry();
+ IExtensionPoint ep = registry
+ .getExtensionPoint(SmooksExtensionPointConstants.EXTENTION_POINT_ANALYZER);
+ if (ep == null)
+ return;
+ IConfigurationElement[] elements = ep.getConfigurationElements();
+ for (int i = 0; i < elements.length; i++) {
+ IConfigurationElement element = elements[i];
+ String aname = element
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_NAME);
+ String clazz = element
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CLASS);
+ String typeID = element
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
+ if (typeID == null || "".equals(typeID))
+ continue;
+ if (clazz == null || "".equals(clazz))
+ continue;
+
+ AnalyzerMapper mapper = new AnalyzerMapper();
+ mapper.setElement(element);
+ mapper.setAnalyzerName(aname);
+ mapper.setSourceDataTypeID(typeID);
+
+ IConfigurationElement[] childrenElements = element
+ .getChildren();
+ for (int j = 0; j < childrenElements.length; j++) {
+ IConfigurationElement childElement = childrenElements[j];
+ if (childElement
+ .getName()
+ .equals(
+ SmooksExtensionPointConstants.EXTENTION_POINT_ELEMENT_TARGETSOURCETYPE)) {
+ String tid = childElement
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
+ if (tid == null || "".equals(tid))
+ continue;
+ mapper.addTargetDataTypeID(tid);
+ }
+ }
+ analyzerMap.put(typeID, mapper);
+ }
+ }
}
/**
@@ -30,8 +93,110 @@
}
return instance;
}
-
- public IAnalyzer getAnalyzer(String sourceDataTypeID,String targetDataTypeID){
+
+ public IAnalyzer getAnalyzer(String sourceDataTypeID,
+ String targetDataTypeID) throws CoreException {
+ if (this.analyzerMap != null) {
+ AnalyzerMapper mapper = (AnalyzerMapper) this.analyzerMap
+ .get(sourceDataTypeID);
+ if (mapper == null)
+ return null;
+ if (mapper.canTransformToTheTarget(targetDataTypeID)) {
+ return (IAnalyzer) createAnalyzer(mapper);
+ }
+ }
return null;
}
+
+ protected Object createAnalyzer(AnalyzerMapper mapper) throws CoreException {
+ return mapper.getElement().createExecutableExtension(
+ SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CLASS);
+ }
+
+ private class AnalyzerMapper {
+ String sourceDataTypeID = null;
+ IConfigurationElement element;
+ String analyzerName = null;
+ List<String> targetDataTypeIDList = new ArrayList<String>();
+
+ public boolean canTransformToTheTarget(String targetTypeID) {
+ if (targetTypeID == null || "".equals(targetTypeID))
+ return false;
+ for (Iterator iterator = targetDataTypeIDList.iterator(); iterator
+ .hasNext();) {
+ String type = (String) iterator.next();
+ if (type.equals(targetTypeID))
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @return the element
+ */
+ public IConfigurationElement getElement() {
+ return element;
+ }
+
+ /**
+ * @param element
+ * the element to set
+ */
+ public void setElement(IConfigurationElement element) {
+ this.element = element;
+ }
+
+ /**
+ * @return the analyzerName
+ */
+ public String getAnalyzerName() {
+ return analyzerName;
+ }
+
+ /**
+ * @param analyzerName
+ * the analyzerName to set
+ */
+ public void setAnalyzerName(String analyzerName) {
+ this.analyzerName = analyzerName;
+ }
+
+ /**
+ * @return the targetDataTypeIDList
+ */
+ public List<String> getTargetDataTypeIDList() {
+ return targetDataTypeIDList;
+ }
+
+ /**
+ * @param targetDataTypeIDList
+ * the targetDataTypeIDList to set
+ */
+ public void setTargetDataTypeIDList(List<String> targetDataTypeIDList) {
+ this.targetDataTypeIDList = targetDataTypeIDList;
+ }
+
+ public void addTargetDataTypeID(String typeID) {
+ getTargetDataTypeIDList().add(typeID);
+ }
+
+ public void removeTargetDataTypeID(String typeID) {
+ getTargetDataTypeIDList().remove(typeID);
+ }
+
+ /**
+ * @return the sourceDataTypeID
+ */
+ public String getSourceDataTypeID() {
+ return sourceDataTypeID;
+ }
+
+ /**
+ * @param sourceDataTypeID
+ * the sourceDataTypeID to set
+ */
+ public void setSourceDataTypeID(String sourceDataTypeID) {
+ this.sourceDataTypeID = sourceDataTypeID;
+ }
+ }
}
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java 2008-08-18
22:37:05 UTC (rev 9787)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/SmooksFileBuilder.java 2008-08-19
03:07:26 UTC (rev 9788)
@@ -6,6 +6,7 @@
import java.io.InputStream;
import java.util.Collections;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.resource.Resource;
import org.jboss.tools.smooks.ui.modelparser.SmooksConfigurationFileGenerateContext;
@@ -18,7 +19,8 @@
public InputStream generateSmooksFile(
SmooksConfigurationFileGenerateContext context,
- IProgressMonitor monitor) throws SmooksAnalyzerException, IOException {
+ IProgressMonitor monitor) throws SmooksAnalyzerException,
+ IOException, CoreException {
AnalyzerFactory factory = AnalyzerFactory.getInstance();
IAnalyzer analyzer = factory.getAnalyzer(context.getSourceDataTypeID(),
context.getTargetDataTypeID());
@@ -33,8 +35,11 @@
Resource resource = new SmooksResourceFactoryImpl()
.createResource(null);
DocumentRoot dr = SmooksFactory.eINSTANCE.createDocumentRoot();
+
+ // add all model of the config file
dr.setSmooksResourceList(listType);
resource.getContents().add(dr);
+
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
resource.save(outputStream, Collections.EMPTY_MAP);
return new ByteArrayInputStream(outputStream.toByteArray());
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java 2008-08-18
22:37:05 UTC (rev 9787)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/BaseViewerInitor.java 2008-08-19
03:07:26 UTC (rev 9788)
@@ -14,7 +14,7 @@
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.jboss.tools.smooks.utils.UIUtils;
+import org.jboss.tools.smooks.utils.SmooksExtensionPointConstants;
/**
* @author Dart Peng
@@ -47,7 +47,7 @@
public ITreeContentProvider getTreeContentProvider() {
try {
return (ITreeContentProvider) configurationElement
- .createExecutableExtension(UIUtils.EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER);
+ .createExecutableExtension(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER);
} catch (CoreException e) {
e.printStackTrace();
return null;
@@ -65,7 +65,7 @@
public IStrucutredDataCreationWizard getStructuredDataLoadWizard() {
try {
return ((IStrucutredDataCreationWizard) configurationElement
- .createExecutableExtension(UIUtils.EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD));
+ .createExecutableExtension(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD));
} catch (CoreException e) {
e.printStackTrace();
}
@@ -94,7 +94,7 @@
public ILabelProvider getLabelProvider() {
try {
return (ILabelProvider) configurationElement
- .createExecutableExtension(UIUtils.EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER);
+ .createExecutableExtension(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER);
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java 2008-08-18
22:37:05 UTC (rev 9787)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/ViewerInitorStore.java 2008-08-19
03:07:26 UTC (rev 9788)
@@ -11,18 +11,16 @@
package org.jboss.tools.smooks.ui;
import java.util.Collection;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.jboss.tools.smooks.utils.UIUtils;
+import org.jboss.tools.smooks.utils.SmooksExtensionPointConstants;
/**
* @author Dart Peng
@@ -123,7 +121,7 @@
protected HashMap<String, IViewerInitor> createNewInitorMap() {
IExtensionRegistry registry = Platform.getExtensionRegistry();
IExtensionPoint ep = registry
- .getExtensionPoint(UIUtils.EXTENTION_POINT_VIEWER_INITOR);
+ .getExtensionPoint(SmooksExtensionPointConstants.EXTENTION_POINT_VIEWER_INITOR);
HashMap<String, IViewerInitor> map = new HashMap<String, IViewerInitor>();
if (ep == null)
return null;
@@ -132,13 +130,13 @@
IConfigurationElement element = elements[i];
String typeID = element
- .getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
+ .getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_TYPE_ID);
if (typeID == null) {
continue;
}
- String name = element.getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_NAME);
+ String name =
element.getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_NAME);
- String iconPath = element.getAttribute(UIUtils.EXTENTION_POINT_ATTRIBUTE_ICON);
+ String iconPath =
element.getAttribute(SmooksExtensionPointConstants.EXTENTION_POINT_ATTRIBUTE_ICON);
BaseViewerInitor initor = new BaseViewerInitor();
Added:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
(rev 0)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java 2008-08-19
03:07:26 UTC (rev 9788)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.utils;
+
+/**
+ * @author Dart Peng
+ * @Date Aug 19, 2008
+ */
+public class SmooksExtensionPointConstants {
+ /** @deprecated */
+ public static final String EXTENTION_POINT_TRANSFORM_DATATYPE_WIZARD =
"org.jboss.tools.smooks.ui.transformDataWizards";
+
+ public static final String EXTENTION_POINT_VIEWER_INITOR =
"org.jboss.tools.smooks.ui.viewerInitor";
+
+ public static final String EXTENTION_POINT_ANALYZER =
"org.jboss.tools.smooks.ui.analyzer";
+
+ public static final String EXTENTION_POINT_ELEMENT_ANALYZER = "analyzer";
+
+ public static final String EXTENTION_POINT_ELEMENT_TARGETSOURCETYPE =
"targetSourceType";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_CLASS = "class";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_TYPE_ID = "typeID";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER =
"labelProvider";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER =
"contentProvider";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD =
"creationWizard";
+
+ /** @deprecated */
+ public static final String EXTENTION_POINT_ATTRIBUTE_WIZAED_ID = "wizarID";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_NAME = "name";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_ID = "id";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_DESCRIPTION =
"description";
+
+ public static final String EXTENTION_POINT_ATTRIBUTE_ICON = "icon";
+
+}
Property changes on:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/SmooksExtensionPointConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-08-18
22:37:05 UTC (rev 9787)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-08-19
03:07:26 UTC (rev 9788)
@@ -21,30 +21,7 @@
*
*/
public class UIUtils {
- /** @deprecated */
- public static final String EXTENTION_POINT_TRANSFORM_DATATYPE_WIZARD =
"org.jboss.tools.smooks.ui.transformDataWizards";
-
- public static final String EXTENTION_POINT_VIEWER_INITOR =
"org.jboss.tools.smooks.ui.viewerInitor";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_CLASS = "class";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_TYPE_ID = "typeID";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_LABEL_PROVIDER =
"labelProvider";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_CONTENT_PROVIDER =
"contentProvider";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_CREATION_WIZARD =
"creationWizard";
-
- /** @deprecated */
- public static final String EXTENTION_POINT_ATTRIBUTE_WIZAED_ID = "wizarID";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_NAME = "name";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_DESCRIPTION =
"description";
-
- public static final String EXTENTION_POINT_ATTRIBUTE_ICON = "icon";
-
+
public static FillLayout createFillLayout(int marginW, int marginH) {
FillLayout fill = new FillLayout();
fill.marginHeight = marginH;