|
@@ -4,7 +4,6 @@
|
|
*/
|
|
*/
|
|
package com.jme3.gde.blender.filetypes;
|
|
package com.jme3.gde.blender.filetypes;
|
|
|
|
|
|
-import com.jme3.gde.core.assets.SpatialAssetDataObject;
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import org.openide.awt.ActionID;
|
|
import org.openide.awt.ActionID;
|
|
import org.openide.awt.ActionReference;
|
|
import org.openide.awt.ActionReference;
|
|
@@ -20,65 +19,65 @@ import org.openide.util.NbBundle.Messages;
|
|
"LBL_Blender3ds_LOADER=3DS Files (via Blender)"
|
|
"LBL_Blender3ds_LOADER=3DS Files (via Blender)"
|
|
})
|
|
})
|
|
@MIMEResolver.ExtensionRegistration(
|
|
@MIMEResolver.ExtensionRegistration(
|
|
- displayName = "#LBL_Blender3ds_LOADER",
|
|
|
|
-mimeType = "application/x-3ds",
|
|
|
|
-extension = {"3ds", "3DS"})
|
|
|
|
|
|
+ displayName = "#LBL_Blender3ds_LOADER",
|
|
|
|
+ mimeType = "application/x-3ds",
|
|
|
|
+ extension = {"3ds", "3DS"})
|
|
@DataObject.Registration(
|
|
@DataObject.Registration(
|
|
- mimeType = "application/x-3ds",
|
|
|
|
-iconBase = "com/jme3/gde/blender/blender.png",
|
|
|
|
-displayName = "#LBL_Blender3ds_LOADER",
|
|
|
|
-position = 300)
|
|
|
|
|
|
+ mimeType = "application/x-3ds",
|
|
|
|
+ iconBase = "com/jme3/gde/blender/blender.png",
|
|
|
|
+ displayName = "#LBL_Blender3ds_LOADER",
|
|
|
|
+ position = 300)
|
|
@ActionReferences({
|
|
@ActionReferences({
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "System", id = "org.openide.actions.OpenAction"),
|
|
|
|
- position = 100,
|
|
|
|
- separatorAfter = 200),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "System", id = "org.openide.actions.OpenAction"),
|
|
|
|
+ position = 100,
|
|
|
|
+ separatorAfter = 200),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "Edit", id = "org.openide.actions.CutAction"),
|
|
|
|
- position = 300),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "Edit", id = "org.openide.actions.CutAction"),
|
|
|
|
+ position = 300),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "Edit", id = "org.openide.actions.CopyAction"),
|
|
|
|
- position = 400,
|
|
|
|
- separatorAfter = 500),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "Edit", id = "org.openide.actions.CopyAction"),
|
|
|
|
+ position = 400,
|
|
|
|
+ separatorAfter = 500),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "Edit", id = "org.openide.actions.DeleteAction"),
|
|
|
|
- position = 600),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "Edit", id = "org.openide.actions.DeleteAction"),
|
|
|
|
+ position = 600),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "System", id = "org.openide.actions.RenameAction"),
|
|
|
|
- position = 700,
|
|
|
|
- separatorAfter = 800),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "System", id = "org.openide.actions.RenameAction"),
|
|
|
|
+ position = 700,
|
|
|
|
+ separatorAfter = 800),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "System", id = "org.openide.actions.SaveAsTemplateAction"),
|
|
|
|
- position = 900,
|
|
|
|
- separatorAfter = 1000),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "System", id = "org.openide.actions.SaveAsTemplateAction"),
|
|
|
|
+ position = 900,
|
|
|
|
+ separatorAfter = 1000),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "System", id = "org.openide.actions.FileSystemAction"),
|
|
|
|
- position = 1100,
|
|
|
|
- separatorAfter = 1200),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "System", id = "org.openide.actions.FileSystemAction"),
|
|
|
|
+ position = 1100,
|
|
|
|
+ separatorAfter = 1200),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "System", id = "org.openide.actions.ToolsAction"),
|
|
|
|
- position = 1300),
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "System", id = "org.openide.actions.ToolsAction"),
|
|
|
|
+ position = 1300),
|
|
@ActionReference(
|
|
@ActionReference(
|
|
- path = "Loaders/application/x-3ds/Actions",
|
|
|
|
- id =
|
|
|
|
- @ActionID(category = "System", id = "org.openide.actions.PropertiesAction"),
|
|
|
|
- position = 1400)
|
|
|
|
|
|
+ path = "Loaders/application/x-3ds/Actions",
|
|
|
|
+ id =
|
|
|
|
+ @ActionID(category = "System", id = "org.openide.actions.PropertiesAction"),
|
|
|
|
+ position = 1400)
|
|
})
|
|
})
|
|
public class Blender3dsDataObject extends AbstractBlenderImportDataObject {
|
|
public class Blender3dsDataObject extends AbstractBlenderImportDataObject {
|
|
|
|
|