diff --git a/sdk/jme3-materialeditor/nbproject/genfiles.properties b/sdk/jme3-materialeditor/nbproject/genfiles.properties index fb940d6e6..d91716a4c 100644 --- a/sdk/jme3-materialeditor/nbproject/genfiles.properties +++ b/sdk/jme3-materialeditor/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=5702bc60 +build.xml.data.CRC32=7e92080c build.xml.script.CRC32=f284e28d -build.xml.stylesheet.CRC32=a56c6a5b@2.66.1 +build.xml.stylesheet.CRC32=a56c6a5b@2.67.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=5702bc60 +nbproject/build-impl.xml.data.CRC32=7e92080c nbproject/build-impl.xml.script.CRC32=56cee44d -nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.66.1 +nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67.1 diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/Bundle.properties b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/Bundle.properties index 3c1f7ca69..0db4e1348 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/Bundle.properties +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/Bundle.properties @@ -6,7 +6,6 @@ OpenIDE-Module-Short-Description=Provides support for editing jME3 material file Services/MIMEResolver/JMEMaterialDefinitionResolver.xml=MaterialDefinition Files Services/MIMEResolver/JMEMaterialResolver.xml=Material Files Templates/Other/JMEMaterialDefinitionTemplate.j3md=Empty MaterialDefinition file -Templates/Other/JMEMaterialTemplate.j3m=Empty Material file MaterialBrowser.okButton.text=Ok MaterialBrowser.cancelButton.text=Cancel MaterialBrowser.title=Material Browser diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialDataObject.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialDataObject.java index 603fe85ba..5b09cc9fc 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialDataObject.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialDataObject.java @@ -35,12 +35,19 @@ import com.jme3.gde.core.assets.AssetDataObject; import com.jme3.gde.materials.multiview.MaterialOpenSupport; import java.io.IOException; import org.openide.filesystems.FileObject; +import org.openide.filesystems.MIMEResolver; +import org.openide.loaders.DataObject; import org.openide.loaders.DataObjectExistsException; import org.openide.loaders.MultiFileLoader; import org.openide.nodes.CookieSet; import org.openide.nodes.Node; -import org.openide.text.DataEditorSupport; +@MIMEResolver.ExtensionRegistration( + displayName = "jME3 Material", + mimeType = "text/jme3material", + extension = {"j3m", "J3M"} +) +@DataObject.Registration(displayName = "jME3 Material", mimeType = "text/jme3material", iconBase = "com/jme3/gde/materials/jme-logo.png") public class JMEMaterialDataObject extends AssetDataObject { public JMEMaterialDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException { diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialResolver.xml b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialResolver.xml deleted file mode 100644 index 724feb47a..000000000 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/JMEMaterialResolver.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/layer.xml b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/layer.xml index 119b6ce11..113de22bd 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/layer.xml +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/layer.xml @@ -1,109 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/package-info.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/package-info.java new file mode 100644 index 000000000..86360b202 --- /dev/null +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/package-info.java @@ -0,0 +1,7 @@ +@TemplateRegistrations({ + @TemplateRegistration(folder = "Material", content = "Material.j3m", displayName = "Empty Material file") +}) +package com.jme3.gde.materials; + +import org.netbeans.api.templates.TemplateRegistration; +import org.netbeans.api.templates.TemplateRegistrations;