diff --git a/sdk/jme3-gui/README.md b/sdk/jme3-gui/README.md
new file mode 100644
index 000000000..4ae49b7f3
--- /dev/null
+++ b/sdk/jme3-gui/README.md
@@ -0,0 +1,6 @@
+# Nifty Editor
+
+This project is the result of 2014 summer of code. It's the integration of Nifty-Editor on JMonkeyEngine sdk.
+
+## Icons
+Icons provided by [Yusuke Kamiyamane](http://p.yusukekamiyamane.com/). Licensed under a Creative Commons Attribution 3.0 License.
diff --git a/sdk/jme3-gui/build.xml b/sdk/jme3-gui/build.xml
index f7d03ec94..a5c92cb19 100644
--- a/sdk/jme3-gui/build.xml
+++ b/sdk/jme3-gui/build.xml
@@ -1,8 +1,8 @@
-
-
-
-
-
- Builds, tests, and runs the project com.jme3.gde.gui.
-
-
+
+
+
+
+
+ Builds, tests, and runs the project com.jme3.gde.gui.
+
+
diff --git a/sdk/jme3-gui/manifest.mf b/sdk/jme3-gui/manifest.mf
index 27ba6cf5c..38c508804 100644
--- a/sdk/jme3-gui/manifest.mf
+++ b/sdk/jme3-gui/manifest.mf
@@ -1,6 +1,6 @@
-Manifest-Version: 1.0
-OpenIDE-Module: com.jme3.gde.gui/1
-OpenIDE-Module-Implementation-Version: 0
-OpenIDE-Module-Layer: com/jme3/gde/gui/layer.xml
-OpenIDE-Module-Localizing-Bundle: com/jme3/gde/gui/Bundle.properties
-
+Manifest-Version: 1.0
+OpenIDE-Module: com.jme3.gde.gui/3
+OpenIDE-Module-Implementation-Version: 0
+OpenIDE-Module-Layer: com/jme3/gde/gui/layer.xml
+OpenIDE-Module-Localizing-Bundle: com/jme3/gde/gui/Bundle.properties
+
diff --git a/sdk/jme3-gui/nbproject/build-impl.xml b/sdk/jme3-gui/nbproject/build-impl.xml
index 307e07b68..e5b9c7898 100644
--- a/sdk/jme3-gui/nbproject/build-impl.xml
+++ b/sdk/jme3-gui/nbproject/build-impl.xml
@@ -1,45 +1,45 @@
-
-
-
-
-
-
-
-
-
-
-
-
- You must set 'suite.dir' to point to your containing module suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ You must set 'suite.dir' to point to your containing module suite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/jme3-gui/nbproject/genfiles.properties b/sdk/jme3-gui/nbproject/genfiles.properties
index b2b0fab9d..99333ca57 100644
--- a/sdk/jme3-gui/nbproject/genfiles.properties
+++ b/sdk/jme3-gui/nbproject/genfiles.properties
@@ -1,3 +1,4 @@
+<<<<<<< HEAD
build.xml.data.CRC32=971927a9
build.xml.script.CRC32=a0136781
build.xml.stylesheet.CRC32=a56c6a5b@2.66.1
@@ -6,3 +7,13 @@ build.xml.stylesheet.CRC32=a56c6a5b@2.66.1
nbproject/build-impl.xml.data.CRC32=971927a9
nbproject/build-impl.xml.script.CRC32=55a34aaf
nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.66.1
+=======
+build.xml.data.CRC32=d998e9a1
+build.xml.script.CRC32=a0136781
+build.xml.stylesheet.CRC32=a56c6a5b@2.56.1
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=d998e9a1
+nbproject/build-impl.xml.script.CRC32=55a34aaf
+nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.56.1
+>>>>>>> experimental
diff --git a/sdk/jme3-gui/release/modules/ext/Nifty-Editor0.5.7.jar b/sdk/jme3-gui/release/modules/ext/Nifty-Editor0.5.7.jar
new file mode 100644
index 000000000..c22e77625
Binary files /dev/null and b/sdk/jme3-gui/release/modules/ext/Nifty-Editor0.5.7.jar differ
diff --git a/sdk/jme3-gui/release/modules/ext/Nifty-Editor0.5.9.jar b/sdk/jme3-gui/release/modules/ext/Nifty-Editor0.5.9.jar
new file mode 100644
index 000000000..0747d52ea
Binary files /dev/null and b/sdk/jme3-gui/release/modules/ext/Nifty-Editor0.5.9.jar differ
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/Bundle.properties b/sdk/jme3-gui/src/com/jme3/gde/gui/Bundle.properties
index 91fe01a5b..be0d84773 100644
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/Bundle.properties
+++ b/sdk/jme3-gui/src/com/jme3/gde/gui/Bundle.properties
@@ -1,7 +1,8 @@
LBL_NiftyGui_loader_name=NiftyGui Files
OpenIDE-Module-Display-Category=jMonkeyEngine
OpenIDE-Module-Long-Description=\
- This plugin adds NiftyGUI XML file support
+ This plugin adds NiftyGUI XML file support , with and easy visual desing interface . \
+ Icon pack provided by http://p.yusukekamiyamane.com/ Licensed under a Creative Commons Attribution 3.0 License.
OpenIDE-Module-Name=NiftyGUI Support
OpenIDE-Module-Short-Description=Provides NiftyGUI Support
Services/MIMEResolver/NiftyGuiResolver.xml=NiftyGui Files
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java
index 98c57c631..32a62ff5e 100644
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java
+++ b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java
@@ -1,89 +1,149 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-package com.jme3.gde.gui;
-
-import com.jme3.gde.core.assets.ProjectAssetManager;
-import com.jme3.gde.gui.multiview.PreviewView;
-import java.io.IOException;
-import org.netbeans.api.project.Project;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.modules.xml.multiview.DesignMultiViewDesc;
-import org.netbeans.modules.xml.multiview.XmlMultiViewDataObject;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataNode;
-import org.openide.loaders.DataObjectExistsException;
-import org.openide.loaders.MultiFileLoader;
-import org.openide.nodes.Node;
-import org.openide.nodes.Children;
-import org.openide.util.Lookup;
-import org.openide.util.lookup.AbstractLookup;
-import org.openide.util.lookup.InstanceContent;
-import org.openide.util.lookup.ProxyLookup;
-
-public class NiftyGuiDataObject extends XmlMultiViewDataObject {
-
- private static final int TYPE_TOOLBAR = 0;
- protected final Lookup lookup;
- protected final InstanceContent lookupContents = new InstanceContent();
-
- public NiftyGuiDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
- super(pf, loader);
- lookup = new ProxyLookup(getCookieSet().getLookup(), new AbstractLookup(getLookupContents()));
- findAssetManager();
- }
-
- protected void findAssetManager() {
- FileObject file = getPrimaryFile();
- ProjectManager pm = ProjectManager.getDefault();
- while (file != null) {
- if (file.isFolder() && pm.isProject(file)) {
- try {
- Project project = ProjectManager.getDefault().findProject(file);
- if (project != null) {
- ProjectAssetManager mgr = project.getLookup().lookup(ProjectAssetManager.class);
- if (mgr != null) {
- getLookupContents().add(mgr);
- return;
- }
- }
- } catch (IOException ex) {
- } catch (IllegalArgumentException ex) {
- }
- }
- file = file.getParent();
- }
- }
-
- @Override
- public Lookup getLookup() {
- return lookup;
- }
-
- public InstanceContent getLookupContents() {
- return lookupContents;
- }
-
- @Override
- protected Node createNodeDelegate() {
- DataNode node = new DataNode(this, Children.LEAF, getLookup());
- node.setIconBaseWithExtension("com/jme3/gde/gui/Computer_File_043.gif");
- return node;
- }
-
- @Override
- protected DesignMultiViewDesc[] getMultiViewDesc() {
- if (getLookup().lookup(ProjectAssetManager.class) == null) {
- return new DesignMultiViewDesc[]{};
- } else {
-
- return new DesignMultiViewDesc[]{new PreviewView(this, TYPE_TOOLBAR)};
- }
- }
-
- @Override
- protected String getPrefixMark() {
- return "Nifty";
- }
-}
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.jme3.gde.gui;
+
+import com.jme3.gde.core.assets.ProjectAssetManager;
+import jada.ngeditor.controller.CommandProcessor;
+import jada.ngeditor.controller.GUIEditor;
+import java.io.IOException;
+import org.netbeans.api.project.Project;
+import org.netbeans.api.project.ProjectManager;
+import org.netbeans.core.spi.multiview.MultiViewElement;
+import org.netbeans.core.spi.multiview.text.MultiViewEditorElement;
+import org.openide.awt.ActionID;
+import org.openide.awt.ActionReference;
+import org.openide.awt.ActionReferences;
+import org.openide.filesystems.FileObject;
+import org.openide.filesystems.MIMEResolver;
+import org.openide.loaders.DataNode;
+import org.openide.loaders.DataObject;
+import org.openide.loaders.DataObjectExistsException;
+import org.openide.loaders.MultiDataObject;
+import org.openide.loaders.MultiFileLoader;
+import org.openide.nodes.Children;
+import org.openide.nodes.Node;
+import org.openide.util.Lookup;
+import org.openide.util.NbBundle.Messages;
+import org.openide.windows.TopComponent;
+
+@Messages({
+ "LBL_NiftyGui_LOADER=Files of NiftyGui"
+})
+@MIMEResolver.Registration(
+ displayName = "#LBL_NiftyGui_LOADER",
+ resource = "NiftyGuiResolver.xml")
+@DataObject.Registration(
+ mimeType = "text/x-niftygui+xml",
+ iconBase = "com/jme3/gde/gui/multiview/icons/gui-icon.png",
+ displayName = "#LBL_NiftyGui_LOADER",
+ position = 300)
+@ActionReferences({
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "System", id = "org.openide.actions.OpenAction"),
+ position = 100,
+ separatorAfter = 200),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "Edit", id = "org.openide.actions.CutAction"),
+ position = 300),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "Edit", id = "org.openide.actions.CopyAction"),
+ position = 400,
+ separatorAfter = 500),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "Edit", id = "org.openide.actions.DeleteAction"),
+ position = 600),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "System", id = "org.openide.actions.RenameAction"),
+ position = 700,
+ separatorAfter = 800),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "System", id = "org.openide.actions.SaveAsTemplateAction"),
+ position = 900,
+ separatorAfter = 1000),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "System", id = "org.openide.actions.FileSystemAction"),
+ position = 1100,
+ separatorAfter = 1200),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "System", id = "org.openide.actions.ToolsAction"),
+ position = 1300),
+ @ActionReference(
+ path = "Loaders/text/x-niftygui+xml/Actions",
+ id =
+ @ActionID(category = "System", id = "org.openide.actions.PropertiesAction"),
+ position = 1400)
+})
+public class NiftyGuiDataObject extends MultiDataObject {
+
+ public NiftyGuiDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
+ super(pf, loader);
+ registerEditor("text/x-niftygui+xml", true);
+ findAssetManager();
+ this.getCookieSet().assign(GUIEditor.class, CommandProcessor.getInstance().getGuiEditor());
+ }
+
+ protected final void findAssetManager() {
+ FileObject file = getPrimaryFile();
+ ProjectManager pm = ProjectManager.getDefault();
+ while (file != null) {
+ if (file.isFolder() && pm.isProject(file)) {
+ try {
+ Project project = ProjectManager.getDefault().findProject(file);
+ if (project != null) {
+ ProjectAssetManager mgr = project.getLookup().lookup(ProjectAssetManager.class);
+ if (mgr != null) {
+ this.getCookieSet().assign(mgr.getClass(),mgr);
+ return;
+ }
+ }
+ } catch (IOException ex) {
+ } catch (IllegalArgumentException ex) {
+ }
+ }
+ file = file.getParent();
+ }
+ }
+
+ @Override
+ protected Node createNodeDelegate() {
+ DataNode node = new DataNode(this, Children.LEAF, getLookup());
+ node.setIconBaseWithExtension("com/jme3/gde/gui/multiview/icons/gui-icon.png");
+ return node;
+ }
+
+ @Override
+ protected int associateLookup() {
+ return 1;
+ }
+
+ @MultiViewElement.Registration(
+ displayName = "#LBL_NiftyGui_EDITOR",
+ iconBase = "com/jme3/gde/gui/multiview/icons/gui-icon.png",
+ mimeType = "text/x-niftygui+xml",
+ persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
+ preferredID = "NiftyGui",
+ position = 1000)
+ @Messages("LBL_NiftyGui_EDITOR=XML")
+ public static MultiViewEditorElement createEditor(Lookup lkp) {
+ final MultiViewEditorElement multiViewEditorElement = new MultiViewEditorElement(lkp);
+ return multiViewEditorElement;
+ }
+}
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiResolver.xml b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiResolver.xml
index cab60462a..4076cc28c 100644
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiResolver.xml
+++ b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiResolver.xml
@@ -1,8 +1,4 @@
-
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/examples/01-button.xml b/sdk/jme3-gui/src/com/jme3/gde/gui/examples/01-button.xml
deleted file mode 100644
index e961a97d7..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/examples/01-button.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/examples/buttonstyle.xml b/sdk/jme3-gui/src/com/jme3/gde/gui/examples/buttonstyle.xml
new file mode 100644
index 000000000..788171282
--- /dev/null
+++ b/sdk/jme3-gui/src/com/jme3/gde/gui/examples/buttonstyle.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/layer.xml b/sdk/jme3-gui/src/com/jme3/gde/gui/layer.xml
index d83cea77c..9bba55c07 100644
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/layer.xml
+++ b/sdk/jme3-gui/src/com/jme3/gde/gui/layer.xml
@@ -1,154 +1,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/Bundle.properties b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/Bundle.properties
deleted file mode 100644
index 7a6ba8e9c..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/Bundle.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-
-PreviewPanel.jLabel1.text=jLabel1
-ErrorPanel.jLabel1.text=jLabel1
-ErrorPanel.jLabel2.text=\ Errors
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/ErrorPanel.form b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/ErrorPanel.form
deleted file mode 100644
index ae4ae89ae..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/ErrorPanel.form
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/ErrorPanel.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/ErrorPanel.java
deleted file mode 100644
index 94a62d5a4..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/ErrorPanel.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-/*
- * ErrorPanel.java
- *
- * Created on 23 janv. 2012, 22:19:24
- */
-package com.jme3.gde.gui.multiview;
-
-import java.awt.Component;
-import javax.swing.DefaultListCellRenderer;
-import javax.swing.DefaultListModel;
-import javax.swing.ImageIcon;
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.SwingConstants;
-
-/**
- *
- * @author Nehon
- */
-public class ErrorPanel extends java.awt.Panel {
-
- private DefaultListModel errors = new DefaultListModel();
- private static ImageIcon fatalImage = null, nonFatalImage = null;
-
- /** Creates new form ErrorPanel */
- public ErrorPanel() {
- initComponents();
- jList1.setCellRenderer(new DefaultListCellRenderer() {
-
- @Override
- public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
- super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
- if (value instanceof JLabel) {
- setIcon(((JLabel) value).getIcon());
- setText(((JLabel) value).getText());
- }
- return this;
- }
- });
- }
-
- private static ImageIcon getFatalErrorIcon() {
- if (fatalImage == null) {
- fatalImage = new ImageIcon(ErrorPanel.class.getResource("/com/jme3/gde/gui/multiview/icons/error.png")); //NOI18N
- }
- return fatalImage;
- }
-
- private static ImageIcon getNonfatalErrorIcon() {
- if (nonFatalImage == null) {
- nonFatalImage = new ImageIcon(ErrorPanel.class.getResource("/com/jme3/gde/gui/multiview/icons/warning.png")); //NOI18N
- }
- return nonFatalImage;
- }
-
- public void addError(String error) {
- errors.addElement(new JLabel(
- error,
- getFatalErrorIcon(),
- SwingConstants.LEFT));
-
- }
-
- public void addWarning(String error) {
- errors.addElement(new JLabel(
- error,
- getNonfatalErrorIcon(),
- SwingConstants.LEFT));
-
- }
-
- public void clear(){
- errors.clear();
- }
-
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // //GEN-BEGIN:initComponents
- private void initComponents() {
-
- jLabel1 = new javax.swing.JLabel();
- jScrollPane1 = new javax.swing.JScrollPane();
- jList1 = new javax.swing.JList();
- jLabel2 = new javax.swing.JLabel();
-
- jLabel1.setText(org.openide.util.NbBundle.getMessage(ErrorPanel.class, "ErrorPanel.jLabel1.text")); // NOI18N
-
- setLayout(new java.awt.BorderLayout());
-
- jList1.setModel(errors);
- jScrollPane1.setViewportView(jList1);
-
- add(jScrollPane1, java.awt.BorderLayout.CENTER);
-
- jLabel2.setBackground(new java.awt.Color(200, 200, 200));
- jLabel2.setText(org.openide.util.NbBundle.getMessage(ErrorPanel.class, "ErrorPanel.jLabel2.text")); // NOI18N
- add(jLabel2, java.awt.BorderLayout.NORTH);
- }// //GEN-END:initComponents
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JList jList1;
- private javax.swing.JScrollPane jScrollPane1;
- // End of variables declaration//GEN-END:variables
-}
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/MouseInputEvent.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/MouseInputEvent.java
deleted file mode 100644
index 71a37d433..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/MouseInputEvent.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-package com.jme3.gde.gui.multiview;
-
-/**
- *
- * @author normenhansen
- */
-public class MouseInputEvent {
- int x;
- int y;
- int button;
- int huh;
- boolean pressed;
-
- public MouseInputEvent(int x, int y, int button, int huh, boolean pressed) {
- this.x = x;
- this.y = y;
- this.button = button;
- this.huh = huh;
- this.pressed = pressed;
- }
-
-}
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyFileChildren.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyFileChildren.java
deleted file mode 100644
index ee70aa1d8..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyFileChildren.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-package com.jme3.gde.gui.multiview;
-
-import java.util.LinkedList;
-import java.util.List;
-import org.openide.nodes.Children;
-import org.openide.nodes.Node;
-import org.w3c.dom.Element;
-
-/**
- *
- * @author normenhansen
- */
-public class NiftyFileChildren extends Children.Keys {
-
- Element xmlNode;
-
- public NiftyFileChildren(Element xmlNode) {
- this.xmlNode = xmlNode;
- }
-
- @Override
- protected void addNotify() {
- super.addNotify();
- setKeys(createKeys());
- }
-
- protected List createKeys() {
- LinkedList ret = new LinkedList();
- Element curElement = XmlHelper.findFirstChildElement(xmlNode);
- while (curElement != null) {
- if (checkElement(curElement)) {
- ret.add(curElement);
- }
- curElement = XmlHelper.findNextSiblingElement(curElement);
- }
-
- return ret;
- }
-
- private boolean checkElement(Element curElement) {
- if (!"screen".equals(curElement.getTagName())) {
- return false;
- }
- return true;
- }
-
- @Override
- protected Node[] createNodes(Element key) {
- return new Node[]{new NiftyScreenNode(key.getAttribute("id"))};
- }
-}
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyFileNode.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyFileNode.java
deleted file mode 100644
index a3d15f188..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyFileNode.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-package com.jme3.gde.gui.multiview;
-
-import org.openide.nodes.AbstractNode;
-import org.w3c.dom.Element;
-
-/**
- *
- * @author normenhansen
- */
-public class NiftyFileNode extends AbstractNode{
-
- public NiftyFileNode(Element xmlNode) {
- super(new NiftyFileChildren(xmlNode));
- }
-
-
-}
diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java
deleted file mode 100644
index a76eec721..000000000
--- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * Copyright (c) 2009-2010 jMonkeyEngine
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package com.jme3.gde.gui.multiview;
-
-import com.jme3.asset.AssetInfo;
-import com.jme3.asset.AssetKey;
-import com.jme3.asset.AssetManager;
-import com.jme3.asset.AssetNotFoundException;
-import com.jme3.asset.DesktopAssetManager;
-import com.jme3.audio.AudioRenderer;
-import com.jme3.niftygui.RenderDeviceJme;
-import com.jme3.niftygui.SoundDeviceJme;
-import com.jme3.post.SceneProcessor;
-import com.jme3.renderer.RenderManager;
-import com.jme3.renderer.Renderer;
-import com.jme3.renderer.ViewPort;
-import com.jme3.renderer.queue.RenderQueue;
-import com.jme3.texture.FrameBuffer;
-import de.lessvoid.nifty.Nifty;
-import de.lessvoid.nifty.spi.input.InputSystem;
-import de.lessvoid.nifty.tools.TimeProvider;
-import de.lessvoid.nifty.tools.resourceloader.ResourceLocation;
-import java.io.InputStream;
-import java.net.URL;
-
-public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implements SceneProcessor {
-
- protected class ResourceLocationJmp implements ResourceLocation {
-
- public InputStream getResourceAsStream(String path) {
- AssetKey