Closed mainrs closed 8 years ago
I haven't found out yet why this warning gets generated, but application.xml should be generated in the META-INF/platform folder of your JAR anyway. Please double-check if it's there.
Ye it is. But the menus still aren't displayed. The only menu that is visible is the "window" menu
Please post the application.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://www.drombler.org/schema/acp/application" xmlns:ns5="http://www.drombler.org/schema/acp/dockings" xmlns:ns2="http://www.drombler.org/schema/acp/actions" xmlns:ns4="http://www.drombler.org/schema/acp/toolBars" xmlns:ns3="http://www.drombler.org/schema/acp/menus">
<extensions>
<ns2:actions>
<ns2:action id="platform.exit" category="core">
<ns2:displayName>Quit Voices</ns2:displayName>
<ns2:accelerator>Shortcut+Q</ns2:accelerator>
<ns2:listenerClass>de.zerotask.voices.actions.internal.ExitAction</ns2:listenerClass>
</ns2:action>
<ns2:action id="file.import" category="file">
<ns2:displayName>Import</ns2:displayName>
<ns2:accelerator>Shortcut+Shift+O</ns2:accelerator>
<ns2:icon>import</ns2:icon>
<ns2:listenerClass>de.zerotask.voices.actions.internal.ImportAction</ns2:listenerClass>
</ns2:action>
<ns2:action id="file.new" category="file">
<ns2:displayName>New Profile</ns2:displayName>
<ns2:accelerator>Shortcut+N</ns2:accelerator>
<ns2:icon>new</ns2:icon>
<ns2:listenerClass>de.zerotask.voices.actions.internal.NewAction</ns2:listenerClass>
</ns2:action>
<ns2:action id="export" category="file">
<ns2:displayName>Export</ns2:displayName>
<ns2:accelerator>Shortcut+E</ns2:accelerator>
<ns2:icon>export</ns2:icon>
<ns2:listenerClass>de.zerotask.voices.actions.internal.ExportAction</ns2:listenerClass>
</ns2:action>
<ns3:menus>
<ns3:menu id="File">
<ns3:displayName>File</ns3:displayName>
<ns3:position>10</ns3:position>
<ns3:package>de.zerotask.voices.actions.internal</ns3:package>
</ns3:menu>
<ns3:menuEntry actionId="platform.exit">
<ns3:path>File</ns3:path>
<ns3:position>9900</ns3:position>
</ns3:menuEntry>
<ns3:menuEntry actionId="file.new">
<ns3:path>menu.file</ns3:path>
<ns3:position>1</ns3:position>
</ns3:menuEntry>
<ns3:menuEntry actionId="export">
<ns3:path>File</ns3:path>
<ns3:position>9000</ns3:position>
</ns3:menuEntry>
</ns3:menus>
<ns5:dockings>
<ns5:viewDocking id="de.zerotask.voices.actions.impl.LeftTestPane">
<ns5:areaId>left</ns5:areaId>
<ns5:icon>left-test-pane.png</ns5:icon>
<ns5:state>DOCKED</ns5:state>
<ns5:dockableClass>de.zerotask.voices.actions.impl.LeftTestPane</ns5:dockableClass>
<ns5:position>10</ns5:position>
<ns5:displayName>%displayName</ns5:displayName>
<ns5:accelerator>Shortcut+3</ns5:accelerator>
<ns5:menuEntry>
<ns5:position>40</ns5:position>
</ns5:menuEntry>
</ns5:viewDocking>
<ns5:viewDocking id="de.zerotask.voices.actions.impl.BottomTestPane">
<ns5:areaId>bottom</ns5:areaId>
<ns5:icon>bottom-test-pane.png</ns5:icon>
<ns5:state>DOCKED</ns5:state>
<ns5:dockableClass>de.zerotask.voices.actions.impl.BottomTestPane</ns5:dockableClass>
<ns5:position>10</ns5:position>
<ns5:displayName>%displayName</ns5:displayName>
<ns5:accelerator>Shortcut+2</ns5:accelerator>
<ns5:menuEntry>
<ns5:position>30</ns5:position>
</ns5:menuEntry>
</ns5:viewDocking>
<ns5:viewDocking id="de.zerotask.voices.actions.impl.RightTestPane">
<ns5:areaId>right</ns5:areaId>
<ns5:icon>right-test-pane.png</ns5:icon>
<ns5:state>DOCKED</ns5:state>
<ns5:dockableClass>de.zerotask.voices.actions.impl.RightTestPane</ns5:dockableClass>
<ns5:position>10</ns5:position>
<ns5:displayName>%RightTestPane.displayName</ns5:displayName>
<ns5:accelerator>Shortcut+4</ns5:accelerator>
<ns5:menuEntry>
<ns5:path>Other</ns5:path>
<ns5:position>40</ns5:position>
</ns5:menuEntry>
<ns5:resourceBundleBaseName>Bundle</ns5:resourceBundleBaseName>
</ns5:viewDocking>
<ns5:viewDocking id="de.zerotask.voices.actions.impl.TopTestPane">
<ns5:areaId>top</ns5:areaId>
<ns5:icon>top-test-pane.png</ns5:icon>
<ns5:state>DOCKED</ns5:state>
<ns5:dockableClass>de.zerotask.voices.actions.impl.TopTestPane</ns5:dockableClass>
<ns5:position>10</ns5:position>
<ns5:displayName>%displayName</ns5:displayName>
<ns5:accelerator>Shortcut+1</ns5:accelerator>
<ns5:menuEntry>
<ns5:position>20</ns5:position>
</ns5:menuEntry>
</ns5:viewDocking>
<ns5:editorDocking id="de.zerotask.voices.actions.impl.SampleEditorPane">
<ns5:areaId>center</ns5:areaId>
<ns5:icon>sample.png</ns5:icon>
<ns5:state>DOCKED</ns5:state>
<ns5:dockableClass>de.zerotask.voices.actions.impl.SampleEditorPane</ns5:dockableClass>
</ns5:editorDocking>
</ns5:dockings>
</extensions>
</application>
The Docking Panes are literally copy pasted into the project. The File menu is not the default one, it is mine, as well as the platform.exit action.
Did you also remove the drombler-fx-core-standard-desktop-classic dependency? What exactly gets shown and what doesn't? Could you provide a SSCCE?
The path <ns3:path>menu.file</ns3:path>
of the menu entry for the action file.new seems to be wrong (I guess it should be "File"). But it shouldn't stop everything.
I can bundle the netbeans project thought. I am running on OS X and removed the dependency. I think something is wrong with netbeans. I re-imported the project into eclipse and run it from there. Apparently there were no issues. The only thing that I changed was the maven goals from 'clean install' to 'clean package', avoiding the distribution into my maven repo. I have no idea why but maven kept thinking that none of my bundles have changed and didn't rebuild them.
Have you configured NetBeans to use an external Maven installation? I found the embedded Maven of various IDEs to behave strangely at times.
I think it used the internal. Just switched to the external, works perfectly and smooth now. Sorry *blame*
Oh man, I am frustrating now. I deleted the entire maven directory, even created a new repository at a completely new location (in my personal documents) and still, every time I start the application (it doesn't matter if I start it over the terminal or in my IDE), I can't get rid of the save actions. The only thing that I want is a raw application skeleton that contains the dockable views and that can simply be configured with the Action and MenuEntry annotations. I uploaded the maven project on dropbox.It is a SSCCE (just the sample project with the unwanted stuff removed from it and a small self made bundle). I know that I am really annoying but I have seriously no idea what I have done wrong. So my goal is to remove the acp-standard-action bundle. I am pretty sure I removed all dependencies to this bundle in each of the poms. It shouldn't be listed there. But the application will still contain them. Even after (!) I manually delete them from the bundle folder. Update: Deleting the acp-standard-actions-bundle before launching the application after packaging it will prevent the initialization of any (!) default menus (the save ones), toolbars and even custom menus. Still, that doesn't explain why maven is constantly deploying the acp-standard-actions-bundle... I am so sad right now.
I think it's a bug. Sorry about that. drombler-fx-core-application has a runtime dependency to drombler-acp-core-standard-action. You can see that if in NetBeans you hover the mouse over drombler-acp-core-standard-action in the Runtime Dependencies section of your application project. I guess it was because of the ExitAction which once was in that package and which requires the File menu. But I think even then it shouldn't have had this dependency.
Work-around: exclude the dependency
<dependency>
<!-- Configures the provided content of the JavaFX Application. -->
<groupId>org.drombler.fx</groupId>
<artifactId>drombler-fx-core-application</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.drombler.acp</groupId>
<artifactId>drombler-acp-core-standard-action</artifactId>
</exclusion>
</exclusions>
</dependency>
Thank you! I was so frustrated :)
This issue should be fixed with: Pull Request https://github.com/Drombler/drombler-fx/pull/123
I have no idea why I get this error. Every time I select the 'Clean and Build' item of the -all maven project, the output shows this line:
No processor claimed any of these annotations: org.drombler.acp.core.action.Action,org.drombler.acp.core.action.MenuEntry,org.drombler.acp.core.action.Menu
It just doesn't process the annotations. I simply added a new menu "File" (I removed the cap-standard-action) in the package-info.java file. I created a dummy action that extends `ÀbstractFXAction``and added the @Action and @MenuEntry annotations but the menu just doesn't appear.