Author: svasilyev
Date: 2007-10-16 12:35:21 -0400 (Tue, 16 Oct 2007)
New Revision: 4259
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/VpeSelectionController.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe/ve/
trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html
Removed:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/MozillaSupports.java
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/
Log:
Sync with jbosstools_xulrunner branch
Property changes on: trunk/vpe/plugins/org.jboss.tools.vpe
___________________________________________________________________
Name: svn:ignore
- bin
+ bin
.options
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
(rev 0)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java 2007-10-16
16:35:21 UTC (rev 4259)
@@ -0,0 +1,190 @@
+/*******************************************************************************
+
+* 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.vpe.dnd;
+
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.mozilla.EditorDomEventListener;
+import org.jboss.tools.vpe.editor.mozilla.MozillaDropInfo;
+import org.mozilla.interfaces.nsIComponentManager;
+import org.mozilla.interfaces.nsIDOMEvent;
+import org.mozilla.interfaces.nsIDOMMouseEvent;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDragService;
+import org.mozilla.interfaces.nsIServiceManager;
+import org.mozilla.interfaces.nsISupportsArray;
+import org.mozilla.interfaces.nsISupportsString;
+import org.mozilla.interfaces.nsITransferable;
+import org.mozilla.xpcom.Mozilla;
+
+/**
+ * @author Max Areshkau
+ *
+ *Class which response for drag and drop functionality
+ */
+public class VpeDnD {
+
+ private static final String CID_DRAGSERVICE =
"(a)mozilla.org/widget/dragservice;1";
+ private static final String CID_TRANSFERABLE =
"(a)mozilla.org/widget/transferable;1";
+ private static final String CID_SUPPORTSSTRING =
"(a)mozilla.org/supports-string;1";
+
+ private static final String CID_SUPPORTSARRAY =
"(a)mozilla.org/supports-array;1";
+
+ /**
+ * service manager */
+ private nsIServiceManager serviceManager;
+
+ /**
+ * component manager
+ */
+ private nsIComponentManager componentManager;
+
+ /**
+ * drag service
+ */
+ private nsIDragService dragService;
+
+
+ /**
+ * Starts drag session
+ * @param dragetElement
+ */
+ public void startDragSession(nsIDOMEvent domEvent) {
+ nsISupportsArray transArray = (nsISupportsArray) getComponentManager()
+ .createInstanceByContractID(CID_SUPPORTSARRAY, null,
+ nsISupportsArray.NS_ISUPPORTSARRAY_IID);
+ transArray.appendElement(createTransferable());
+ getDragService().invokeDragSession((nsIDOMNode)
domEvent.getTarget().queryInterface(nsIDOMNode.NS_IDOMNODE_IID), transArray, null,
+ nsIDragService.DRAGDROP_ACTION_MOVE
+ | nsIDragService.DRAGDROP_ACTION_COPY
+ | nsIDragService.DRAGDROP_ACTION_LINK);
+
+ domEvent.stopPropagation();
+ domEvent.preventDefault();
+
+ }
+
+ /**
+ * Creates transferable object to start drag session
+ *
+ * @return transferable object
+ */
+ private nsITransferable createTransferable() {
+
+ nsITransferable iTransferable = (nsITransferable) getComponentManager()
+ .createInstanceByContractID(CID_TRANSFERABLE, null,
+ nsITransferable.NS_ITRANSFERABLE_IID);
+ nsISupportsString transferData = (nsISupportsString) getComponentManager()
+ .createInstanceByContractID(CID_SUPPORTSSTRING, null,
+ nsISupportsString.NS_ISUPPORTSSTRING_IID);
+ String data="vpe-element";
+ transferData.setData(data);
+ iTransferable.setTransferData(VpeController.MODEL_FLAVOR, transferData,
data.length());
+ iTransferable.setTransferData("text/plain", transferData, data.length());
+ iTransferable.setTransferData("text/unicode", transferData,data.length()*2);
+ iTransferable.setTransferData("text/html", transferData, data.length()*2);
+ iTransferable.setTransferData("text/xml", transferData, data.length()*2);
+ iTransferable.setTransferData("text/rtf", transferData, data.length()*2);
+ iTransferable.setTransferData("text/enriched", transferData,
data.length()*2);
+ iTransferable.setTransferData("text/richtext", transferData,
data.length()*2);
+ iTransferable.setTransferData("text/t140", transferData, data.length()*2);
+
+ return iTransferable;
+ }
+ /**
+ * @return the componentManager
+ */
+ public nsIComponentManager getComponentManager() {
+
+ if(componentManager==null) {
+
+ componentManager = Mozilla.getInstance()
+ .getComponentManager();
+ }
+ return componentManager;
+ }
+
+ /**
+ * @return the serviceManager
+ */
+ public nsIServiceManager getServiceManager() {
+
+ if(serviceManager==null) {
+ serviceManager = Mozilla.getInstance()
+ .getServiceManager();
+ }
+ return serviceManager;
+ }
+
+ /**
+ * @return the dragService
+ */
+ public nsIDragService getDragService() {
+
+ if(dragService==null) {
+ dragService = (nsIDragService) getServiceManager()
+ .getServiceByContractID(CID_DRAGSERVICE,
+ nsIDragService.NS_IDRAGSERVICE_IID);
+ }
+ return dragService;
+ }
+ /**
+ * Calls when drag over event ocure
+ * @param event
+ */
+ public void dragOver(nsIDOMEvent event, EditorDomEventListener editorDomEventListener)
{
+ boolean canDrop = false;
+
+ nsIDOMMouseEvent mouseEvent = (nsIDOMMouseEvent)
event.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID);
+ //in this condition early was check for xulelement
+ if (editorDomEventListener != null) {
+ if
(getDragService().getCurrentSession().isDataFlavorSupported(VpeController.MODEL_FLAVOR))
{
+
+ MozillaDropInfo info;
+
+ if(getDragService().getCurrentSession().getSourceNode()==null){
+ //external drag
+ info = editorDomEventListener.canExternalDrop(mouseEvent,
VpeController.MODEL_FLAVOR, "");
+ } else {
+ //internal drag
+ info = editorDomEventListener.canInnerDrop(mouseEvent);
+ }
+ if (info != null) {
+ canDrop = info.canDrop();
+ }
+ }
+ }
+ //sets possability to drop current element here
+ getDragService().getCurrentSession().setCanDrop(canDrop);
+ mouseEvent.preventDefault();
+ mouseEvent.stopPropagation();
+
+ }
+ /**
+ * Drop Event handler
+ * @param domEvent
+ * @param editorDomEventListener
+ */
+ public void dragDrop(nsIDOMEvent domEvent, EditorDomEventListener
editorDomEventListener) {
+
+ if(editorDomEventListener!=null) {
+
+ if(getDragService().getCurrentSession().getSourceDocument()==null) {
+ //in this case it's is external drag
+ editorDomEventListener.externalDrop((nsIDOMMouseEvent)domEvent.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID),
VpeController.MODEL_FLAVOR, "");
+ } else {
+ // in this case it's is an internal drag
+ editorDomEventListener.innerDrop((nsIDOMMouseEvent)domEvent.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID));
+ }
+ }
+ }
+
+}
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/VpeSelectionController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/VpeSelectionController.java
(rev 0)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/selection/VpeSelectionController.java 2007-10-16
16:35:21 UTC (rev 4259)
@@ -0,0 +1,52 @@
+/*******************************************************************************
+
+* 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.vpe.editor.selection;
+
+import org.mozilla.interfaces.nsISelection;
+
+/**
+ * @author Maxim Areshkau
+ * Class which replace nsISelectionController functionality
+ */
+public class VpeSelectionController {
+
+ private nsISelection selection;
+
+ /**
+ * @param selection
+ */
+ public VpeSelectionController(nsISelection selection) {
+ this.selection = selection;
+ }
+
+ /**
+ * type - not used in
+ * @return the selection
+ */
+ public nsISelection getSelection(long type) {
+ return selection;
+ }
+
+ /**
+ * @param selection the selection to set
+ */
+ public void setSelection(nsISelection selection) {
+ this.selection = selection;
+ }
+
+ //method stub just because it is exist in nsISelectionController
+ public void setCaretEnabled(boolean value){
+ }
+ //method stub just because it is exist in nsISelectionController
+ public void setSelectionFlags(short selectionFlags){
+ }
+}
Deleted:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/MozillaSupports.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/MozillaSupports.java 2007-10-16
16:30:17 UTC (rev 4258)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/MozillaSupports.java 2007-10-16
16:35:21 UTC (rev 4259)
@@ -1,89 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.vpe.editor.util;
-
-import org.jboss.tools.vpe.mozilla.internal.swt.xpl.nsID;
-import org.jboss.tools.vpe.mozilla.internal.swt.xpl.nsIDOMNode;
-import org.jboss.tools.vpe.mozilla.internal.swt.xpl.nsISupports;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-
-public class MozillaSupports {
-
- public static void addRef(Object obj) {
- if (obj instanceof nsISupports) {
- ((nsISupports) obj).AddRef();
- }
- }
-
- public static void release(Object obj) {
- if (obj instanceof nsISupports) {
- ((nsISupports) obj).Release();
- }
- }
-
- public static void release(Object obj0, Object obj1) {
- release(obj0);
- release(obj1);
- }
-
- public static void release(Object obj0, Object obj1, Object obj2) {
- release(obj0);
- release(obj1);
- release(obj2);
- }
-
- public static int getRefCount(Object obj) {
- if (obj instanceof nsISupports) {
- return ((nsISupports) obj).getRefCount();
- }
- return 0;
- }
-
- public static int getAddress(Object obj) {
- if (obj instanceof nsISupports) {
- return ((nsISupports) obj).getAddress();
- }
- return 0;
- }
-
- public static int getChildCount(Node node) {
- int count = 0;
- NodeList children = node.getChildNodes();
- if (children != null) {
- count = children.getLength();
- release(children);
- }
- return count;
- }
-
- public static Node getChildNode(Node node, int index) {
- Node child = null;
- NodeList children = node.getChildNodes();
- if (children != null && index >= 0 && index <
children.getLength()) {
- child = children.item(index);
- release(children);
- }
- return child;
- }
-
- public static int getOffset(Node node) {
- return ((nsIDOMNode)node).getOffset();
- }
-
- public static int queryInterface(Object obj, nsID uuid) {
- if (obj instanceof nsISupports) {
- return ((nsISupports) obj).queryInterface(uuid);
- }
- return 0;
- }
-}
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java
(rev 0)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeDebugUtil.java 2007-10-16
16:35:21 UTC (rev 4259)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+
+* 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.vpe.editor.util;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.vpe.VpeDebug;
+
+/**
+ * @author Max Areshkau (mareshkau(a)exadel.com)
+ *
+ *Class created to print debug info
+ */
+public class VpeDebugUtil {
+
+ private static final SimpleDateFormat formatter = new SimpleDateFormat();
+ static {
+ formatter.applyPattern("hh:mm:ss.SSS");
+ }
+ /**
+ * Prints debug info on console
+ * @param msg
+ */
+ public static void debugInfo(String msg) {
+
+ if(Platform.inDebugMode()) {
+
+ System.out.print(formatter.format(new Date())+":"+ msg);
+ }
+ }
+ /**
+ *
+ */
+ public static void debugVPEDnDEvents(String msg) {
+ if(VpeDebug.PRINT_VISUAL_DRAGDROP_EVENT) {
+
+ System.out.println(formatter.format(new Date())+":"+ msg);
+ }
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
(rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2007-10-16 16:35:21 UTC
(rev 4259)
@@ -0,0 +1,330 @@
+/*
+ * The contents of this file are subject to the Netscape Public
+ * License Version 1.1 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at
http://www.mozilla.org/NPL/
+ *
+ * Software distributed under the License is distributed on an "AS
+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * rights and limitations under the License.
+ *
+ * The Original Code is Mozilla Communicator client code, released
+ * March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is Netscape
+ * Communications Corporation. Portions created by Netscape are
+ * Copyright (C) 1998-1999 Netscape Communications Corporation. All
+ * Rights Reserved.
+ *
+ * Contributor(s):
+ */
+
+/* Styles to alter look of things in the Editor content window
+ * that should NOT be removed when we display in completely WYSIWYG
+ * "Browser Preview" mode.
+ * Anything that should change, like appearance of table borders
+ * and Named Anchors, should be placed in EditorContent.css instead of here.
+*/
+
+/* Primary cursor is text I-beam */
+
+a:link {
+ cursor: text;
+}
+
+/* Use default arrow over objects with size that
+ are selected when clicked on.
+ Override the browser's pointer cursor over links
+*/
+
+img, img[usemap], area,
+object, object[usemap],
+applet, hr, button, input, isindex, textarea, select,
+a:link img, a:visited img, a:active img,
+a[name]:empty {
+ cursor: default;
+}
+
+a:visited, a:active {
+ cursor: text;
+ color : inherit;
+}
+
+a:link img, a:visited img {
+ -moz-user-input: none;
+}
+
+a:link {
+ text-decoration: underline -moz-anchor-decoration;
+ color: -moz-hyperlinktext;
+}
+
+input, button, textarea {
+ -moz-user-select: all !important;
+ -moz-user-input: auto !important;
+ -moz-user-focus: none !important;
+}
+
+select, input[disabled], input[type="checkbox"], input[type="radio"],
input[type="file"] {
+ -moz-user-select: all !important;
+ -moz-user-input: auto !important;
+ -moz-user-focus: none !important;
+}
+
+isindex[prompt]
+{
+ -moz-user-select: none !important;
+ -moz-user-input: none !important;
+ -moz-user-focus: none !important;
+}
+
+input[type="hidden"] {
+ border: 1px solid black !important;
+ visibility: visible !important;
+}
+
+/*
+label {
+ -moz-user-select: all !important;
+}
+*/
+
+::-moz-display-comboboxcontrol-frame {
+ -moz-user-select: text !important;
+}
+
+option {
+ -moz-user-select: text !important;
+}
+
+#mozToc.readonly {
+ -moz-user-select: all !important;
+ -moz-user-input: none !important;
+}
+
+span[\_moz_anonclass="mozResizer"] {
+ width: 5px;
+ height: 5px;
+ position: absolute;
+ border: 1px black solid;
+ background-color: white;
+ -moz-user-select: none;
+ z-index: 2147483646;
+}
+
+span[\_moz_anonclass="mozResizer"][\_moz_activated],
+span[\_moz_anonclass="mozResizer"]:hover {
+ background-color: black;
+}
+
+span[\_moz_anonclass="mozResizer"].hidden,
+span[\_moz_anonclass="mozResizingShadow"].hidden,
+img[\_moz_anonclass="mozResizingShadow"].hidden,
+span[\_moz_anonclass="mozGrabber"].hidden,
+span[\_moz_anonclass="mozResizingInfo"].hidden,
+a[\_moz_anonclass="mozTableRemoveRow"].hidden,
+a[\_moz_anonclass="mozTableRemoveColumn"].hidden {
+ display: none !important;
+}
+
+span[\_moz_anonclass="mozResizer"][anonlocation="nw"] {
+ cursor: nw-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="n"] {
+ cursor: n-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="ne"] {
+ cursor: ne-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="w"] {
+ cursor: w-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="e"] {
+ cursor: e-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="sw"] {
+ cursor: sw-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="s"] {
+ cursor: s-resize;
+}
+span[\_moz_anonclass="mozResizer"][anonlocation="se"] {
+ cursor: se-resize;
+}
+
+span[\_moz_anonclass="mozResizingShadow"],
+img[\_moz_anonclass="mozResizingShadow"] {
+ -moz-outline: thin dashed black;
+ -moz-user-select: none;
+ -moz-opacity: 0.5;
+ position: absolute;
+ z-index: 2147483647;
+}
+
+span[\_moz_anonclass="mozResizingInfo"] {
+ font-family: sans-serif;
+ font-size: x-small;
+ color: black;
+ background-color: #d0d0d0;
+ border: ridge 2px #d0d0d0;
+ padding: 2px;
+ position: absolute;
+ z-index: 2147483647;
+}
+
+*[\_moz_abspos] {
+ -moz-outline: silver ridge 2px;
+ z-index: 2147483645 !important;
+}
+*[\_moz_abspos="white"] {
+ background-color: white !important;
+}
+*[\_moz_abspos="black"] {
+ background-color: black !important;
+}
+
+span[\_moz_anonclass="mozGrabber"] {
+ -moz-outline: ridge 2px silver;
+ padding: 2px;
+ position: absolute;
+ width: 12px;
+ height: 12px;
+ background-image: url("resource:/res/grabber.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none;
+ cursor: move;
+}
+
+a[\_moz_anonclass="mozTableAddColumnBefore"] {
+ position: absolute;
+ z-index: 2147483647;
+ text-decoration: none !important;
+ border: none 0px !important;
+ width: 4px;
+ height: 8px;
+ background-image: url("resource:/res/table-add-column-before.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none !important;
+ -moz-user-focus: none !important;
+}
+
+a[\_moz_anonclass="mozTableAddColumnBefore"]:hover {
+ background-image: url("resource:/res/table-add-column-before-hover.gif");
+}
+
+a[\_moz_anonclass="mozTableAddColumnBefore"]:active {
+ background-image: url("resource:/res/table-add-column-before-active.gif");
+}
+
+a[\_moz_anonclass="mozTableAddColumnAfter"] {
+ position: absolute;
+ z-index: 2147483647;
+ text-decoration: none !important;
+ border: none 0px !important;
+ width: 4px;
+ height: 8px;
+ background-image: url("resource:/res/table-add-column-after.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none !important;
+ -moz-user-focus: none !important;
+}
+
+a[\_moz_anonclass="mozTableAddColumnAfter"]:hover {
+ background-image: url("resource:/res/table-add-column-after-hover.gif");
+}
+
+a[\_moz_anonclass="mozTableAddColumnAfter"]:active {
+ background-image: url("resource:/res/table-add-column-after-active.gif");
+}
+
+a[\_moz_anonclass="mozTableRemoveColumn"] {
+ position: absolute;
+ z-index: 2147483647;
+ text-decoration: none !important;
+ border: none 0px !important;
+ width: 8px;
+ height: 8px;
+ background-image: url("resource:/res/table-remove-column.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none !important;
+ -moz-user-focus: none !important;
+}
+
+a[\_moz_anonclass="mozTableRemoveColumn"]:hover {
+ background-image: url("resource:/res/table-remove-column-hover.gif");
+}
+
+a[\_moz_anonclass="mozTableRemoveColumn"]:active {
+ background-image: url("resource:/res/table-remove-column-active.gif");
+}
+
+a[\_moz_anonclass="mozTableAddRowBefore"] {
+ position: absolute;
+ z-index: 2147483647;
+ text-decoration: none !important;
+ border: none 0px !important;
+ width: 8px;
+ height: 4px;
+ background-image: url("resource:/res/table-add-row-before.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none !important;
+ -moz-user-focus: none !important;
+}
+
+a[\_moz_anonclass="mozTableAddRowBefore"]:hover {
+ background-image: url("resource:/res/table-add-row-before-hover.gif");
+}
+
+a[\_moz_anonclass="mozTableAddRowBefore"]:active {
+ background-image: url("resource:/res/table-add-row-before-active.gif");
+}
+
+a[\_moz_anonclass="mozTableAddRowAfter"] {
+ position: absolute;
+ z-index: 2147483647;
+ text-decoration: none !important;
+ border: none 0px !important;
+ width: 8px;
+ height: 4px;
+ background-image: url("resource:/res/table-add-row-after.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none !important;
+ -moz-user-focus: none !important;
+}
+
+a[\_moz_anonclass="mozTableAddRowAfter"]:hover {
+ background-image: url("resource:/res/table-add-row-after-hover.gif");
+}
+
+a[\_moz_anonclass="mozTableAddRowAfter"]:active {
+ background-image: url("resource:/res/table-add-row-after-active.gif");
+}
+
+a[\_moz_anonclass="mozTableRemoveRow"] {
+ position: absolute;
+ z-index: 2147483647;
+ text-decoration: none !important;
+ border: none 0px !important;
+ width: 8px;
+ height: 8px;
+ background-image: url("resource:/res/table-remove-row.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ -moz-user-select: none !important;
+ -moz-user-focus: none !important;
+}
+
+a[\_moz_anonclass="mozTableRemoveRow"]:hover {
+ background-image: url("resource:/res/table-remove-row-hover.gif");
+}
+
+a[\_moz_anonclass="mozTableRemoveRow"]:active {
+ background-image: url("resource:/res/table-remove-row-active.gif");
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/init.html 2007-10-16 16:35:21 UTC (rev 4259)
@@ -0,0 +1,68 @@
+<html>
+
+<head>
+ <title>Test Page</title>
+ <script src="mozileLoader.js"
type="text/javascript"></script>
+ <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
+
+ <link href="EditorOverride.css" rel="stylesheet"
type="text/css">
+
+<style type="text/css" vpe="yes">
+<!--
+ .__any__tag__block {
+ display:block;
+ border: 1px solid black;
+ margin: 1px 1px 1px 1px;
+ padding: 2px 1px 1px 1px;
+ }
+ .__any__tag__caption {
+ color:#006727;
+ font-size: 12px;
+ padding: 0px 2px 0px 2px;
+ -moz-user-modify: read-only;
+ }
+ .__any__tag__inline {
+ display: inline;
+ border: 1px solid black;
+ margin: 2px 1px 1px 1px;
+ }
+ .__any__tag__none {
+ display: none;
+ }
+
+ #__content__area__ {
+ width:100%;
+ height:100%;
+ min-height:50px;
+ margin:0px;
+ padding:0px;
+ -moz-user-modify: read-write;
+ -moz-user-input: enabled;
+ -moz-user-select: normal;
+ }
+ .__button__tag {
+ background-color: buttonface;
+ padding: 2px 9px 2px 9px;
+ text-align: center;
+ border: 2px outset threedface;
+ font-family: "MS Sans Serif";
+ font-size: 13.3333px;
+ line-height:1.85;
+ }
+ .__input__tag {
+ background-color: window;
+ text-align: left;
+ border: 2px inset threedface;
+ font-family: "MS Sans Serif";
+ font-size: 13.3333px;
+ line-height:1.6;
+ -moz-user-select: normal;
+ }
+-->
+</style>
+</head>
+
+
+<body id="__content__area__"></body>
+
+</html>