JBoss Tools SVN: r4243 - in trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: preferences and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-10-16 11:17:41 -0400 (Tue, 16 Oct 2007)
New Revision: 4243
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
JBIDE-982
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2007-10-16 15:12:12 UTC (rev 4242)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2007-10-16 15:17:41 UTC (rev 4243)
@@ -203,6 +203,8 @@
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_ADD;
+ public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_REMOVE;
+
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_ALREADY_EXISTS;
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_AN_INSTANCEOF_OF_LIST;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2007-10-16 15:12:12 UTC (rev 4242)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2007-10-16 15:17:41 UTC (rev 4243)
@@ -16,6 +16,7 @@
SEAM_VIEW_LAYOUT_ACTION_GROUP_FLAT=Flat
SEAM_VIEW_LAYOUT_ACTION_GROUP_NODE=Node
SEAM_RUNTIME_LIST_FIELD_EDITOR_ADD=Add
+SEAM_RUNTIME_LIST_FIELD_EDITOR_REMOVE=Remove
SEAM_INSTALL_WIZARD_PAGE_WAR=war
SEAM_INSTALL_WIZARD_PAGE_EAR=ear
SEAM_INSTALL_WIZARD_PAGE_CONNECTION_PROFILE=Connection profile:
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2007-10-16 15:12:12 UTC (rev 4242)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencePage.java 2007-10-16 15:17:41 UTC (rev 4243)
@@ -98,6 +98,9 @@
for (SeamRuntime rt : seamRuntimes.getAddedSeamRuntimes()) {
SeamRuntimeManager.getInstance().addRuntime(rt);
}
+ for (SeamRuntime rt : seamRuntimes.getRemoved()) {
+ SeamRuntimeManager.getInstance().removeRuntime(rt);
+ }
if(initialDefault != null && seamRuntimes.getDefaultSeamRuntime() != initialDefault) {
initialDefault.setDefault(false);
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-10-16 15:12:12 UTC (rev 4242)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-10-16 15:17:41 UTC (rev 4243)
@@ -18,6 +18,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;
@@ -30,11 +31,13 @@
import org.eclipse.jface.viewers.CheckboxTableViewer;
import org.eclipse.jface.viewers.ICheckStateListener;
import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
@@ -70,6 +73,7 @@
Composite root = null;
Button rmBtn = null;
Button addBtn = null;
+ Button removeBtn = null;
/**
* @param name
* @param label
@@ -158,7 +162,18 @@
addBtn.setLayoutData(gd);
addBtn.addSelectionListener(this);
-
+
+ removeBtn = new Button(buttons,SWT.PUSH);
+ removeBtn.setEnabled(false);
+ removeBtn.setText(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_REMOVE);
+ gd = new GridData(GridData.FILL_HORIZONTAL,GridData.CENTER,false,false);
+ gd.horizontalAlignment = GridData.FILL;
+ gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING;
+ gd.widthHint = 50;
+
+ removeBtn.setLayoutData(gd);
+ removeBtn.addSelectionListener(this);
+
/*rmBtn = new Button(buttons,SWT.PUSH);
rmBtn.setText("Remove");
gd = new GridData(GridData.FILL_HORIZONTAL,GridData.CENTER,false,false);
@@ -478,6 +493,11 @@
* @param firstElement
*/
public void selectionChanged(SeamRuntime selection) {
+ if(selection == null) {
+ removeBtn.setEnabled(false);
+ } else {
+ removeBtn.setEnabled(true);
+ }
if(selection==null
|| selection == SeamRuntimeManager.getInstance().getDefaultRuntime()) {
} else {
@@ -498,6 +518,22 @@
WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wiz);
dialog.open();
tableView.refresh();
+ } else if(e.widget == removeBtn) {
+ ISelection s = tableView.getSelection();
+ if(s == null || s.isEmpty() || !(s instanceof IStructuredSelection)) return;
+ IStructuredSelection ss = (IStructuredSelection)s;
+ Iterator<?> i = ss.iterator();
+ while(i.hasNext()) {
+ Object o = i.next();
+ if(o instanceof SeamRuntime) {
+ removed.add((SeamRuntime)o);
+ if(added.contains(o)) {
+ added.remove(o);
+ }
+ ((List)getValue()).remove(o);
+ }
+ }
+ tableView.refresh();
}
}
}
17 years, 3 months
JBoss Tools SVN: r4242 - branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 11:12:12 -0400 (Tue, 16 Oct 2007)
New Revision: 4242
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/about.html
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/plugin.xml
Log:
Sync before merge with HEAD
Modified: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/about.html
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/about.html 2007-10-16 15:12:08 UTC (rev 4241)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/about.html 2007-10-16 15:12:12 UTC (rev 4242)
@@ -1,16 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
+
<head>
<title>About</title>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
</head>
<BODY lang="EN-US">
+
<H3>About This Content</H3>
-<P>May 8, 2007</P>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
<H3>License</H3>
-<P>TBD: License and link here</P>
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
</BODY>
</HTML>
\ No newline at end of file
Modified: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/plugin.xml
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/plugin.xml 2007-10-16 15:12:08 UTC (rev 4241)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/plugin.xml 2007-10-16 15:12:12 UTC (rev 4242)
@@ -5,7 +5,7 @@
point="org.jboss.tools.vpe.templates">
<templates
default="false"
- name="Otrix"
+ name="Tomahawk"
path="templates/vpe-templates-tomahawk.xml"/>
</extension>
17 years, 3 months
JBoss Tools SVN: r4241 - branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.facelets.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 11:12:08 -0400 (Tue, 16 Oct 2007)
New Revision: 4241
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/about.html
Log:
Sync before merge with HEAD
Modified: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/about.html
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/about.html 2007-10-16 15:12:03 UTC (rev 4240)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/about.html 2007-10-16 15:12:08 UTC (rev 4241)
@@ -1,16 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
+
<head>
<title>About</title>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
</head>
<BODY lang="EN-US">
+
<H3>About This Content</H3>
-<P>May 8, 2007</P>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
<H3>License</H3>
-<P>TBD: License and link here</P>
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
</BODY>
</HTML>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r4240 - branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.seam.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 11:12:03 -0400 (Tue, 16 Oct 2007)
New Revision: 4240
Added:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.seam/about.html
Log:
Sync before merge with HEAD
Added: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.seam/about.html
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.seam/about.html (rev 0)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.seam/about.html 2007-10-16 15:12:03 UTC (rev 4240)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
+</BODY>
+</HTML>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r4239 - branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 11:11:59 -0400 (Tue, 16 Oct 2007)
New Revision: 4239
Added:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/about.html
Log:
Sync before merge with HEAD
Added: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/about.html
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/about.html (rev 0)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/about.html 2007-10-16 15:11:59 UTC (rev 4239)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
+</BODY>
+</HTML>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r4238 - branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 11:11:55 -0400 (Tue, 16 Oct 2007)
New Revision: 4238
Added:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/about.html
Log:
Sync before merge with HEAD
Added: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/about.html
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/about.html (rev 0)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/about.html 2007-10-16 15:11:55 UTC (rev 4238)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
+</BODY>
+</HTML>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r4237 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-10-16 11:10:57 -0400 (Tue, 16 Oct 2007)
New Revision: 4237
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
Log:
http://jira.jboss.org/jira/browse/JBIDE-1100 "Target Runtime cannot be empty", null);" shown as warning in wizard
Issue is fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2007-10-16 14:37:58 UTC (rev 4236)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2007-10-16 15:10:57 UTC (rev 4237)
@@ -37,5 +37,5 @@
ERROR_JBOSS_AS_TARGET_SERVER_UNKNOWN=Unknown Target Server
ERROR_JBOSS_AS_TARGET_SERVER_NO_SERVERS_DEFINED=There are no available Target Service for selected Target Runtime
ERROR_JBOSS_AS_TARGET_SERVER_INCOMPATIBLE=Target Server is incompatible with Target Runtime selected
-ERROR_JBOSS_AS_TARGET_RUNTIME_IS_EMPTY=Target Runtime cannot be empty", null);
+ERROR_JBOSS_AS_TARGET_RUNTIME_IS_EMPTY=Target Runtime cannot be empty
ERROR_JBOSS_AS_TARGET_RUNTIME_UNKNOWN=Unknown Target Runtime
17 years, 3 months
JBoss Tools SVN: r4236 - branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 10:37:58 -0400 (Tue, 16 Oct 2007)
New Revision: 4236
Added:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/LargeImageDescriptor.java
Log:
Sync before merge with HEAD
Added: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/LargeImageDescriptor.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/LargeImageDescriptor.java (rev 0)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/LargeImageDescriptor.java 2007-10-16 14:37:58 UTC (rev 4236)
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * 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.vpe.ui.palette.model;
+
+import java.util.Hashtable;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.graphics.Device;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.ImageData;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.icons.impl.LargeReferencedIcons;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class LargeImageDescriptor extends ImageDescriptor {
+ private static Hashtable<String,Image> imageCache = new Hashtable<String,Image>();
+ LargeReferencedIcons xicon = new LargeReferencedIcons();
+ XModelObject object;
+
+ public LargeImageDescriptor(XModelObject object) {
+ this.object = object;
+ }
+
+ public ImageData getImageData() {
+ return createImage().getImageData();
+ }
+
+ public Image createImage(boolean returnMissingImageOnError, Device device) {
+ int code = xicon.getHash(object);
+ if (code == 0) return null;
+ String key = "" + code;
+ Image img = (Image)imageCache.get(key);
+ if (img != null) return img;
+ img = xicon.getImage(object);
+ if (img != null) imageCache.put(key, img);
+ return img;
+ }
+}
17 years, 3 months
JBoss Tools SVN: r4235 - in branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe: src/org/jboss/tools/vpe and 21 other directories.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 10:37:17 -0400 (Tue, 16 Oct 2007)
New Revision: 4235
Removed:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/css/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/composite/
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/menu/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/dnd/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/resize/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/package.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/package.html
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/about.html
Log:
Sync before merge with HEAD
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/about.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/about.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/about.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,16 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
+
<head>
<title>About</title>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
</head>
<BODY lang="EN-US">
+
<H3>About This Content</H3>
-<P>May 8, 2007</P>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
<H3>License</H3>
-<P>TBD: License and link here</P>
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
</BODY>
</HTML>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.bundle package</title>
-</head>
-<body bgcolor="white">
-VPE resource bundle handler
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.context package</title>
-</head>
-<body bgcolor="white">
-VPE page context classes
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/css/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/css/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/css/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.css package</title>
-</head>
-<body bgcolor="white">
-VPE CSS support classes
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/dnd/context/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.dnd.context package</title>
-</head>
-<body bgcolor="white">
-VPE drop wizard context
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.mapping package</title>
-</head>
-<body bgcolor="white">
-VPE mapping engine
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/menu/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/menu/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/menu/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.menu package</title>
-</head>
-<body bgcolor="white">
-VPE context menu
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.mozilla package</title>
-</head>
-<body bgcolor="white">
-VPE Mozilla Composite
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor package</title>
-</head>
-<body bgcolor="white">
-VPE part
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/preferences/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.preferences package</title>
-</head>
-<body bgcolor="white">
-VPE preferences
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.selection package</title>
-</head>
-<body bgcolor="white">
-VPE selection handler
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/dnd/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/dnd/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/dnd/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.template.dnd package</title>
-</head>
-<body bgcolor="white">
-VPE DnD support
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.template.expression package</title>
-</head>
-<body bgcolor="white">
-VPE transformation engine expressions
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.template package</title>
-</head>
-<body bgcolor="white">
-VPE transformation engine
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/resize/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/resize/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/resize/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.template.resize package</title>
-</head>
-<body bgcolor="white">
-VPE resizer
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/textformating/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.template.textformatting package</title>
-</head>
-<body bgcolor="white">
-VPE text formatting
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.toolbar.format.css package</title>
-</head>
-<body bgcolor="white">
-VPE text formatting CSS support
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/handler/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.toolbar.format.handler package</title>
-</head>
-<body bgcolor="white">
-VPE text formatting handler
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.toolbar.format package</title>
-</head>
-<body bgcolor="white">
-VPE toolbar format actions
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.tollbar package</title>
-</head>
-<body bgcolor="white">
-VPE text formatting toolbar
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe.editor.util package</title>
-</head>
-<body bgcolor="white">
-VPE utils
-</body>
-</html>
\ No newline at end of file
Deleted: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/package.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/package.html 2007-10-16 14:36:55 UTC (rev 4234)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/package.html 2007-10-16 14:37:17 UTC (rev 4235)
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<title>org.jboss.tools.vpe package</title>
-</head>
-<body bgcolor="white">
-Visual Page Editor plug-in.
-</body>
-</html>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r4234 - in branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette: src/org/jboss/tools/vpe/ui/palette and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-16 10:36:55 -0400 (Tue, 16 Oct 2007)
New Revision: 4234
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/about.html
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteItem.java
Log:
Sync before merge with HEAD
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/about.html
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/about.html 2007-10-16 14:34:22 UTC (rev 4233)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/about.html 2007-10-16 14:36:55 UTC (rev 4234)
@@ -1,16 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
+
<head>
<title>About</title>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
</head>
<BODY lang="EN-US">
+
<H3>About This Content</H3>
-<P>May 8, 2007</P>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
<H3>License</H3>
-<P>TBD: License and link here</P>
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
</BODY>
</HTML>
\ No newline at end of file
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java 2007-10-16 14:34:22 UTC (rev 4233)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/PaletteDragSourceListener.java 2007-10-16 14:36:55 UTC (rev 4234)
@@ -20,6 +20,7 @@
import org.jboss.tools.common.meta.action.XActionInvoker;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.plugin.ModelPlugin;
+import org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper;
import org.jboss.tools.vpe.ui.palette.model.PaletteItem;
public class PaletteDragSourceListener extends DragSourceAdapter {
@@ -52,7 +53,29 @@
}
public void dragSetData(DragSourceEvent event) {
if (TextTransfer.getInstance().isSupportedType(event.dataType)) {
+ List list = ((PaletteViewer)viewer).getSelectedEditParts();
+ XModelObject object = (list.size() == 0) ? null : getObject(list.get(0));
+ if(object != null) {
+ String[] d = new String[2];
+ d[0] = object.getAttributeValue("start text");
+ if(d[0] == null) d[0] = "";
+ d[1] = object.getAttributeValue("end text");
+ if(d[1] == null) d[1] = "";
+
+ String defaultPrefix = object.getAttributeValue("default prefix");
+ String tag = object.getAttributeValue("name");
+ if(defaultPrefix == null) {
+ defaultPrefix = object.getParent().getAttributeValue("default prefix");
+ }
+ if(defaultPrefix != null && tag != null) {
+ PaletteInsertHelper.applyPrefix(d, "", tag, "xxx", defaultPrefix);
+ }
+ int i = d[0].indexOf('|');
+ if(i >= 0) d[0] = d[0].substring(0, i) + d[0].substring(i + 1);
+ event.data = d[0] + d[1];
+ } else {
event.data = "data"; //$NON-NLS-1$
+ }
} else {
/// event.data = new String[] {"model object"};
event.data = "model object"; //$NON-NLS-1$
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteItem.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteItem.java 2007-10-16 14:34:22 UTC (rev 4233)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteItem.java 2007-10-16 14:36:55 UTC (rev 4234)
@@ -37,7 +37,7 @@
setLabel("" + xobject.getModelEntity().getRenderer().getTitle(xobject)); //$NON-NLS-1$
XModelObjectImageDescriptor icon = new XModelObjectImageDescriptor(xobject);
setSmallIcon(icon);
- setLargeIcon(icon);
+ setLargeIcon(new LargeImageDescriptor(xobject));
String description = xobject.getAttributeValue("description"); //$NON-NLS-1$
///XModelObjectLoaderUtil.loadFromXMLAttribute(xobject.getAttributeValue("description"));
this.description = (description != null && description.trim().length() > 0) ? description : null;
17 years, 3 months