Add JComponent to oxygen by Framework
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Add JComponent to oxygen by Framework
Post by sebastienlavandier »
Hello,
We have create a customized oxygen view in a plugin, by using "WorkspaceAccessPluginExtension" + "addViewComponentCustomizer". In the customized view, we have used a Swing JPanel which contains some items.
public class S1000DPluginExtension implements WorkspaceAccessPluginExtension {
public void applicationStarted(final StandalonePluginWorkspace pluginWorkspace) {
pluginWorkspace.addMenuBarCustomizer(new S1000DMenuBarCustomizer());
try {
pluginWorkspace.addViewComponentCustomizer(new ViewComponentCustomizer() {
IllustrationsPanel illusPanel
public void customizeView(ViewInfo viewInfo) {
if ("Illustrations".equals(viewInfo.getViewID())) {
illusPanel = new IllustrationsPanel()
It works !
But now, we want create this Jpanel by using a framework, but we haven't found the solution.
How we can use addViewComponentCustomizer, .. by a framework ?
Do you think it's possible ?
Has anyone an idea?
thanks in advance
Regards.
Sébastien.L
We have create a customized oxygen view in a plugin, by using "WorkspaceAccessPluginExtension" + "addViewComponentCustomizer". In the customized view, we have used a Swing JPanel which contains some items.
public class S1000DPluginExtension implements WorkspaceAccessPluginExtension {
public void applicationStarted(final StandalonePluginWorkspace pluginWorkspace) {
pluginWorkspace.addMenuBarCustomizer(new S1000DMenuBarCustomizer());
try {
pluginWorkspace.addViewComponentCustomizer(new ViewComponentCustomizer() {
IllustrationsPanel illusPanel
public void customizeView(ViewInfo viewInfo) {
if ("Illustrations".equals(viewInfo.getViewID())) {
illusPanel = new IllustrationsPanel()
It works !
But now, we want create this Jpanel by using a framework, but we haven't found the solution.
How we can use addViewComponentCustomizer, .. by a framework ?
Do you think it's possible ?
Has anyone an idea?
thanks in advance
Regards.
Sébastien.L
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Add JComponent to oxygen by Framework
Hi Sébastien,
Only a WorkspaceAccessPluginExtension can add additional global views and toolbars to Oxygen + modify the main menu.
What would be the advantage for you to be able to customize a view from a framework? Could you elaborate on your usecase?
Regards,
Radu
Only a WorkspaceAccessPluginExtension can add additional global views and toolbars to Oxygen + modify the main menu.
What would be the advantage for you to be able to customize a view from a framework? Could you elaborate on your usecase?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Re: Add JComponent to oxygen by Framework
Post by sebastienlavandier »
Hi Radu,
When my application is started with a specifical xml document, my personnal view is activated and I can see the JPanel (which contain items) by my plugin. Next, I use "ExtensionsBundle" and "AuthorDnDListener" for use the drag and drop (by a framework).
It works too !
But now, I want only have a framework to do that.
It's not possible to add my JPanel by a framework ?
Best regards.
Sébastien.L
When my application is started with a specifical xml document, my personnal view is activated and I can see the JPanel (which contain items) by my plugin. Next, I use "ExtensionsBundle" and "AuthorDnDListener" for use the drag and drop (by a framework).
It works too !
But now, I want only have a framework to do that.
It's not possible to add my JPanel by a framework ?
Best regards.
Sébastien.L
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Add JComponent to oxygen by Framework
Hi Sébastien,
No, sorry, only a workspace access plugin extension can add a custom view.
So you will need to distribute to the clients both the custom plugin and the custom framework.
Regards,
Radu
No, sorry, only a workspace access plugin extension can add a custom view.
So you will need to distribute to the clients both the custom plugin and the custom framework.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Re: Add JComponent to oxygen by Framework
Post by sebastienlavandier »
Thank you very much for your help Radu
Bye
Bye
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service