Author: dgolovin
Date: 2008-09-04 19:15:41 -0400 (Thu, 04 Sep 2008)
New Revision: 10076
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.classpath
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.project
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.settings/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.settings/org.eclipse.jdt.core.prefs
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/META-INF/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/build.properties
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Activator.java
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ElVariablesComposite.java
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Messages.java
Log:
Share project "org.jboss.tools.common.el.ui" into
"https://svn.jboss.org/repos/jbosstools"
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.classpath
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.classpath
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.classpath 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.project
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.project
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.project 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.common.el.ui</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>
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.settings/org.eclipse.jdt.core.prefs 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,7 @@
+#Thu Sep 04 12:21:51 PDT 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Ui Plug-in
+Bundle-SymbolicName: org.jboss.tools.common.el.ui
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.common.el.ui.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.common.el.core;bundle-version="2.0.0",
+ org.jboss.tools.common.resref.ui;bundle-version="1.0.0",
+ org.eclipse.core.resources;bundle-version="3.4.0",
+ org.jboss.tools.common.model.ui;bundle-version="2.0.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.common.el.ui
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/build.properties
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/build.properties
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/build.properties 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Activator.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Activator.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Activator.java 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,50 @@
+package org.jboss.tools.common.el.ui;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.common.el.ui";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Activator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ElVariablesComposite.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ElVariablesComposite.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ElVariablesComposite.java 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,72 @@
+package org.jboss.tools.common.el.ui;
+
+import java.util.List;
+
+import org.jboss.tools.common.el.vpe.ELReferenceList;
+import org.jboss.tools.common.resref.core.ResourceReferenceList;
+import org.jboss.tools.common.resref.ui.AbstractResourceReferencesComposite;
+import org.jboss.tools.common.resref.ui.ResourceReferencesTableProvider;
+
+/**
+ * The Class ElVariablesComposite.
+ */
+public class ElVariablesComposite extends AbstractResourceReferencesComposite {
+
+ /**
+ * Creates the table provider.
+ *
+ * @param dataList the data list
+ * g
+ * @return the resource references table provider
+ */
+ @Override
+ protected ResourceReferencesTableProvider createTableProvider(List dataList) {
+ return ResourceReferencesTableProvider.getELTableProvider(dataList);
+ };
+
+
+ /**
+ * Gets the entity.
+ *
+ * @return the entity
+ */
+ @Override
+ protected String getEntity() {
+ return (file != null) ? "VPEElReference" :
"VPEElReferenceExt";
+ }
+
+ /**c
+ * Gets the reference list.
+ *
+ * @return the reference list
+ */
+ @Override
+ protected ResourceReferenceList getReferenceList() {
+ return ELReferenceList.getInstance();
+ }
+
+ /**
+ * @see AbstractResourceReferencesComposite#createGroupLabel()
+ */
+ @Override
+ protected String createGroupLabel() {
+ return Messages.SUBSTITUTED_EL_EXPRESSIONS;
+ }
+
+
+ @Override
+ protected void add(int index) {
+ // TODO Auto-generated method stub
+
+ }
+
+
+ @Override
+ protected void edit(int index) {
+ // TODO Auto-generated method stub
+
+ }
+
+
+
+}
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ElVariablesComposite.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,90 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.common.el.ui;
+
+import java.util.List;
+
+import org.jboss.tools.common.el.global.GlobalELReferenceList;
+import org.jboss.tools.common.resref.core.ResourceReference;
+import org.jboss.tools.common.resref.core.ResourceReferenceList;
+import org.jboss.tools.common.resref.ui.AbstractResourceReferencesComposite;
+import org.jboss.tools.common.resref.ui.BaseAddReferenceSupport;
+import org.jboss.tools.common.resref.ui.ResourceReferencesTableProvider;
+
+
+/**
+ * Composite class for the global el variables.
+ * @author Evgenij Stherbin
+ *
+ */
+public class GlobalElVariablesComposite extends AbstractResourceReferencesComposite {
+
+ /**
+ * @see
org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#createGroupLabel()
+ */
+ @Override
+ protected String createGroupLabel() {
+ return "";
+ }
+
+ /**
+ * @see
org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#createTableProvider(java.util.List)
+ */
+ @Override
+ protected ResourceReferencesTableProvider createTableProvider(List dataList) {
+ return ResourceReferencesTableProvider.getGlobalELTableProvider(dataList);
+ }
+
+ /**
+ * @see
org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#getEntity()
+ */
+ @Override
+ protected String getEntity() {
+ return (file != null) ? "VPEGlobalElReference" :
"VPEGlobalElReferenceExt";
+ }
+
+ /**
+ * @see
org.jboss.tools.common.resref.core.AbstractResourceReferencesComposite#getReferenceList()
+ */
+ @Override
+ protected ResourceReferenceList getReferenceList() {
+ return GlobalELReferenceList.getInstance();
+ }
+
+ @Override
+ protected ResourceReference getDefaultResourceReference() {
+ ResourceReference rf = new ResourceReference("",
ResourceReference.GLOBAL_SCOPE);
+ rf.setGlobal(true);
+ return rf;
+ }
+
+ @Override
+ protected void add(int index) {
+ ResourceReference defaultRef = getDefaultResourceReference();
+
+ boolean ok = BaseAddReferenceSupport.add(file, defaultRef, getReferenceArray(),
getEntity());
+ if(!ok) return;
+ dataList.add(defaultRef);
+ update();
+ table.setSelection(dataList.size() - 1);
+ }
+
+ @Override
+ protected void edit(int index) {
+ if(index < 0) return;
+ ResourceReference defaultRef = getReferenceArray()[index];
+ boolean ok = BaseAddReferenceSupport.edit(file, defaultRef, getReferenceArray(),
getEntity());
+ if(!ok) return;
+ update();
+ }
+
+}
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/GlobalElVariablesComposite.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Messages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Messages.java
(rev 0)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Messages.java 2008-09-04
23:15:41 UTC (rev 10076)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.common.el.ui;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @author eskimo
+ *
+ */
+public class Messages {
+
+ /**
+ * The resource bundle name.
+ * */
+ private static final String BUNDLE_NAME =
"org.jboss.tools.common.el.ui.messages";//$NON-NLS-1$
+
+ static {
+ // load message values from bundle file
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ /**
+ * The Constructor.
+ */
+ private Messages(){}
+
+ public static String SUBSTITUTED_EL_EXPRESSIONS;
+
+}
Property changes on:
trunk/common/plugins/org.jboss.tools.common.el.ui/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain