XML menu customization
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 1017
- Joined: Wed Nov 16, 2005 11:11 am
Re: XML menu customization
Post by alex_jitianu »
Hello,
I'm not sure where will those System.out logs end up in this situation. You might want to write to a file instead.
For debugging and faster tests I recommend following the procedure from oxygen-sample-eclipse-plugin/README.html, section How to build the project. After converting the project to an Plug-in Project you can run it as an Eclipse Application (from the contextual menu Run As->Eclipse Application). The Oxygen/Author plugin should also be installed in this Eclipse.
Another aspect worth checking is the dependency in oxygen-sample-eclipse-plugin/META-INF/MANIFEST.MF. If you are testing your plugin with an Oxygen Editor distribution make sure that Require-Bundle specifies com.oxygenxml.editor as dependency. If you are testing your plugin against an Oxygen Author distribution then the id is different: com.oxygenxml.author.
Best regards,
Alex
I'm not sure where will those System.out logs end up in this situation. You might want to write to a file instead.
For debugging and faster tests I recommend following the procedure from oxygen-sample-eclipse-plugin/README.html, section How to build the project. After converting the project to an Plug-in Project you can run it as an Eclipse Application (from the contextual menu Run As->Eclipse Application). The Oxygen/Author plugin should also be installed in this Eclipse.
Another aspect worth checking is the dependency in oxygen-sample-eclipse-plugin/META-INF/MANIFEST.MF. If you are testing your plugin with an Oxygen Editor distribution make sure that Require-Bundle specifies com.oxygenxml.editor as dependency. If you are testing your plugin against an Oxygen Author distribution then the id is different: com.oxygenxml.author.
Best regards,
Alex
-
- Posts: 37
- Joined: Mon Jul 14, 2014 9:48 am
Re: XML menu customization
Hi,
I have oXygen author in Eclipse and I have checked com.oxygenxml.author in manifest file it is there
When I try to run this as Eclipse application it is not launching Eclipse rather i am getting below errors:
Can you please tell me what I should do check this?
Regards,
Navaneetha
I have oXygen author in Eclipse and I have checked com.oxygenxml.author in manifest file it is there
When I try to run this as Eclipse application it is not launching Eclipse rather i am getting below errors:
Code: Select all
org.osgi.framework.BundleException: Could not resolve module: ContextualMenu [3]
Unresolved requirement: Require-Bundle: org.eclipse.ui
Could not resolve module: com.oxygenxml.author [13]
Unresolved requirement: Require-Bundle: org.eclipse.compare
Regards,
Navaneetha
-
- Posts: 1017
- Joined: Wed Nov 16, 2005 11:11 am
Re: XML menu customization
Post by alex_jitianu »
Hello,
The content of META-INF/MANIFEST.MF should look like this:
On the Package Explorer view, contextual menu, select Run as->Run Configurations. Select the Eclipse Application category and select New from the contextual menu. On the new configuration go to tab Plug-ins and in the Launch with combo select "plug-ins selected below only". Check that you are seeing and that are selected the plugins: com.oxygenxml.sdksamples.eclipse.plugin, com.oxygenxml.author. Click Run and it should work correctly.
Best regards,
Alex
The content of META-INF/MANIFEST.MF should look like this:
Code: Select all
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Require-Bundle: org.eclipse.ui,
org.eclipse.ui.workbench.texteditor,
org.eclipse.core.runtime.compatibility,
com.oxygenxml.author,
org.eclipse.ui.views
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Auto-Generated-Export-Package: AutoReplaced
Export-Package: com.oxygenxml.sdksamples.eclipse,
com.oxygenxml.sdksamples.eclipse.action
Bundle-Name: oXygen Sample Eclipse Extension
Bundle-SymbolicName: com.oxygenxml.sdksamples.eclipse.plugin;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.oxygenxml.sdksamples.eclipse.SamplePlugin
Bundle-Vendor: Syncro
Plugin-Class: com.oxygenxml.sdksamples.eclipse.SamplePlugin
Bundle-ActivationPolicy: lazy
Best regards,
Alex
-
- Posts: 37
- Joined: Mon Jul 14, 2014 9:48 am
Re: XML menu customization
Hi Alex,
I have followed the steps which you have told.
When I select Run as 'Eclipse Application' I am getting the below error:
Can you please what I should do to resolve this?
Thanks & Regards,
Navaneetha
I have followed the steps which you have told.
When I select Run as 'Eclipse Application' I am getting the below error:
Code: Select all
!ENTRY com.oxygenxml.author 4 0 2015-01-12 14:51:01.858
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.oxygenxml.author [12]
Unresolved requirement: Require-Bundle: org.eclipse.compare
Thanks & Regards,
Navaneetha
-
- Posts: 1017
- Joined: Wed Nov 16, 2005 11:11 am
Re: XML menu customization
Post by alex_jitianu »
Hi,
Oxugen requires the Eclipse Platform XML Compare plugin. Depending on which Eclipse distribution you are using this plugin should be already present inside the workbench.
On the Package Explorer view, contextual menu, select Run as->Run Configurations. Select the Eclipse Application you have configured to run the sample. Go to tab Plug-ins and in the Launch with combo select "plug-ins selected below only". Check that you are seeing org.eclipse.compare and that it is selected. If you are not seeing it then you should install and use an Eclipse distribution that has this plugin, for Example the Eclipse EE package.
Best regards,
Alex
Oxugen requires the Eclipse Platform XML Compare plugin. Depending on which Eclipse distribution you are using this plugin should be already present inside the workbench.
On the Package Explorer view, contextual menu, select Run as->Run Configurations. Select the Eclipse Application you have configured to run the sample. Go to tab Plug-ins and in the Launch with combo select "plug-ins selected below only". Check that you are seeing org.eclipse.compare and that it is selected. If you are not seeing it then you should install and use an Eclipse distribution that has this plugin, for Example the Eclipse EE package.
Best regards,
Alex
-
- Posts: 157
- Joined: Mon Aug 18, 2014 4:11 pm
Re: XML menu customization
Hi Alex,
We have done the setup for context menu customization of oxygen eclipse. Now we are able to run the application as eclipse application, but we are not getting the required result.
Please find the below steps we have followed :
1. In oxygen-sample-eclipse-plugin, added com.oxygenxml.sdksamples.eclipse pakage with "SampleStartup.java" and "SamplePlugin.java".
SamplePlugin.java content is the existing one only. We didn't change anything in that.
SampleStartup.java content is below :
2. We added extension point in plugin.xml as you mentioned.
3. Manifest content we kept the same which you have shared.
4. We ran the plugin as Eclipse application by following the method which you have suggested(this eclipse contains the oxygen author plugin and the plugin jar file). It is successfully launching, but we are not able to get the menu id s in the output file, neither the output file gets created.
5. We have also tried the same by keeping SampleStartup.java content as the one which you shared (For printing the ids in the console)
Please let us know the way forward.
Regards,
Shabeer
We have done the setup for context menu customization of oxygen eclipse. Now we are able to run the application as eclipse application, but we are not getting the required result.
Please find the below steps we have followed :
1. In oxygen-sample-eclipse-plugin, added com.oxygenxml.sdksamples.eclipse pakage with "SampleStartup.java" and "SamplePlugin.java".
SamplePlugin.java content is the existing one only. We didn't change anything in that.
SampleStartup.java content is below :
Code: Select all
package com.oxygenxml.sdksamples.eclipse;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import org.eclipse.jface.action.ActionContributionItem;
import org.eclipse.jface.action.IContributionItem;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.IStartup;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import ro.sync.ecss.extensions.api.AuthorAccess;
import ro.sync.ecss.extensions.api.structure.AuthorPopupMenuCustomizer;
import ro.sync.exml.workspace.api.PluginWorkspace;
import ro.sync.exml.workspace.api.PluginWorkspaceProvider;
import ro.sync.exml.workspace.api.editor.WSEditor;
import ro.sync.exml.workspace.api.editor.page.WSEditorPage;
import ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPage;
import ro.sync.exml.workspace.api.listeners.WSEditorListener;
public class SampleStartup implements IStartup {
private AuthorPopupMenuCustomizer popUpCustomizer = new AuthorPopupMenuCustomizer() {
@Override
public void customizePopUpMenu(Object popUp, AuthorAccess authorAccess) {
IMenuManager popManager = (IMenuManager) popUp;
iterate(popManager, null);
}
private void iterate(IMenuManager popManager, String level) {
IContributionItem[] items = popManager.getItems();
FileOutputStream fos = null;
try {
fos = new FileOutputStream("C:\\Users\\shabeer\\Desktop\\out.txt", true);
for (int i = 0; i < items.length; i++) {
IContributionItem iContributionItem = items[i];
if (iContributionItem instanceof MenuManager) {
MenuManager submenu = (MenuManager) iContributionItem;
String s="Text '" + submenu.getMenuText() + "' ID='"+ submenu.getId() + "' " + "\n" ;;
fos.write(s.getBytes());
iterate((IMenuManager) iContributionItem, level + " ");
} else if (iContributionItem instanceof ActionContributionItem) {
ActionContributionItem action = (ActionContributionItem) iContributionItem;
String s="level '" + iContributionItem.getId() + "' ID='"+ action.getAction().getActionDefinitionId() + "' " + action.getAction().getText()+ "\n" ;;
fos.write(s.getBytes());
} else {
String s= iContributionItem.getId() + "-" + iContributionItem.getClass();
fos.write(s.getBytes());
}
}
}
catch (Exception e) {
e.printStackTrace();
} finally {
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
};
private void customizeContextualMenu(WSEditor editorAccess) {
WSEditorPage currentPage = editorAccess.getCurrentPage();
if (currentPage instanceof WSAuthorEditorPage) {
// Just in case the user switches between the text and author page
// multiple times, we need to remove any previously added listener.
((WSAuthorEditorPage) currentPage).removePopUpMenuCustomizer(popUpCustomizer);
((WSAuthorEditorPage) currentPage).addPopUpMenuCustomizer(popUpCustomizer);
}
}
@Override
public void earlyStartup() {
final IWorkbench workbench = PlatformUI.getWorkbench();
workbench.getDisplay().asyncExec(new Runnable() {
public void run() {
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
if (window != null) {
PluginWorkspace pluginWorkspace = PluginWorkspaceProvider.getPluginWorkspace();
URL[] allEditorLocations = pluginWorkspace.getAllEditorLocations(PluginWorkspace.MAIN_EDITING_AREA);
if (allEditorLocations != null) {
for (int i = 0; i < allEditorLocations.length; i++) {
WSEditor editorAccess = pluginWorkspace.getEditorAccess(allEditorLocations[i], PluginWorkspace.MAIN_EDITING_AREA);
customizeContextualMenu(editorAccess);
}
}
window.getPartService().addPartListener(new IPartListener() {
@Override
public void partOpened(IWorkbenchPart part) {
if (part instanceof WSEditor) {
final WSEditor editorAccess = (WSEditor) part;
customizeContextualMenu(editorAccess);
// Just in case the editor is not open in the author page, we need a listener.
editorAccess.addEditorListener(new WSEditorListener() {
@Override
public void editorPageChanged() {
customizeContextualMenu(editorAccess);
}
});
}
}
@Override
public void partDeactivated(IWorkbenchPart part) {}
@Override
public void partClosed(IWorkbenchPart part) {}
@Override
public void partBroughtToTop(IWorkbenchPart part) {}
@Override
public void partActivated(IWorkbenchPart part) {}
});
}
}
});
}
}
Code: Select all
<extension point="org.eclipse.ui.startup">
<startup class="com.oxygenxml.sdksamples.eclipse.SampleStartup"/>
</extension>
4. We ran the plugin as Eclipse application by following the method which you have suggested(this eclipse contains the oxygen author plugin and the plugin jar file). It is successfully launching, but we are not able to get the menu id s in the output file, neither the output file gets created.
5. We have also tried the same by keeping SampleStartup.java content as the one which you shared (For printing the ids in the console)
Please let us know the way forward.
Regards,
Shabeer
-
- Posts: 1017
- Joined: Wed Nov 16, 2005 11:11 am
Re: XML menu customization
Post by alex_jitianu »
Hello Shabeer,
I've followed the same procedure as you did and in my case the output was generated. Are you saying that yo've checked the MANIFEST.MF and it has a dependency on the com.oxygenxml.author plugin? When running the Eclipse application you usually get a lot of output in the *Console* view. Can you send me the log? Actually all System.out.println() calls we'll get there too so you could use them now for debugging. Does the plugin gets loaded at all (is the earlyStartup() method called)?
Best regards,
Alex
I've followed the same procedure as you did and in my case the output was generated. Are you saying that yo've checked the MANIFEST.MF and it has a dependency on the com.oxygenxml.author plugin? When running the Eclipse application you usually get a lot of output in the *Console* view. Can you send me the log? Actually all System.out.println() calls we'll get there too so you could use them now for debugging. Does the plugin gets loaded at all (is the earlyStartup() method called)?
Best regards,
Alex
-
- Posts: 157
- Joined: Mon Aug 18, 2014 4:11 pm
Re: XML menu customization
Hi Alex,
Now we are using the same code which you provided to print the context menu IDs in the console (using system.out).
Please see the manifest I am using,
When running the Eclipse application you usually get a lot of output in the *Console* view. Can you send me the log?
Please let us know why we are not getting the console we require. If possible, please share us the IDs of contextual menu which you could generate using your plugin.
Regards,
Shabeer
Now we are using the same code which you provided to print the context menu IDs in the console (using system.out).
Yes, it is there in Manifest.mf.. Are you saying that yo've checked the MANIFEST.MF and it has a dependency on the com.oxygenxml.author plugin?
Please see the manifest I am using,
Code: Select all
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Require-Bundle: org.eclipse.ui,
org.eclipse.ui.workbench.texteditor,
org.eclipse.core.runtime.compatibility,
com.oxygenxml.author,
org.eclipse.ui.views,
org.eclipse.jface
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Auto-Generated-Export-Package: AutoReplaced
Export-Package: com.oxygenxml.sdksamples.eclipse
Bundle-Name: oXygen Sample Eclipse Extension
Bundle-SymbolicName: com.oxygenxml.sdksamples.eclipse.plugin;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.oxygenxml.sdksamples.eclipse.SamplePlugin
Bundle-Vendor: Syncro
Code: Select all
!SESSION 2015-01-21 12:25:41.829 -----------------------------------------------
eclipse.buildId=4.4.1.M20140925-0400
java.version=1.7.0_67
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data D:\Lunar_workspace_BACKUP/../runtime-New_configuration(3) -dev file:D:/Lunar_workspace_BACKUP/.metadata/.plugins/org.eclipse.pde.core/New_configuration (3)/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog
!ENTRY org.eclipse.recommenders.apidocs.rcp 4 0 2015-01-21 12:25:43.882
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.recommenders.apidocs.rcp [336]
Unresolved requirement: Require-Bundle: org.eclipse.recommenders.apidocs; bundle-version="2.0.0"
-> Bundle-SymbolicName: org.eclipse.recommenders.apidocs; bundle-version="2.1.9.v20140917-1240"
org.eclipse.recommenders.apidocs [335]
Unresolved requirement: Require-Bundle: org.eclipse.recommenders.models
-> Bundle-SymbolicName: org.eclipse.recommenders.models; bundle-version="2.1.9.v20140917-1240"
org.eclipse.recommenders.models [344]
Unresolved requirement: Import-Package: org.apache.maven.repository.internal; version="[3.1.0,3.2.0)"
-> Export-Package: org.apache.maven.repository.internal; bundle-version="3.1.0.v20140706-2237"; bundle-symbolic-name="org.eclipse.aether.maven"; version="3.1.0"; uses:="com.google.inject,javax.inject,org.eclipse.aether,org.eclipse.aether.artifact,org.eclipse.aether.deployment,org.eclipse.aether.impl,org.eclipse.aether.installation,org.eclipse.aether.repository,org.eclipse.aether.resolution,org.eclipse.aether.spi.locator,org.eclipse.aether.spi.log"
org.eclipse.aether.maven [51]
Unresolved requirement: Import-Package: org.eclipse.aether; version="[0.9.1,1.1.0)"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.recommenders.models 4 0 2015-01-21 12:25:43.884
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.recommenders.models [344]
Unresolved requirement: Import-Package: org.apache.maven.repository.internal; version="[3.1.0,3.2.0)"
-> Export-Package: org.apache.maven.repository.internal; bundle-version="3.1.0.v20140706-2237"; bundle-symbolic-name="org.eclipse.aether.maven"; version="3.1.0"; uses:="com.google.inject,javax.inject,org.eclipse.aether,org.eclipse.aether.artifact,org.eclipse.aether.deployment,org.eclipse.aether.impl,org.eclipse.aether.installation,org.eclipse.aether.repository,org.eclipse.aether.resolution,org.eclipse.aether.spi.locator,org.eclipse.aether.spi.log"
org.eclipse.aether.maven [51]
Unresolved requirement: Import-Package: org.eclipse.aether; version="[0.9.1,1.1.0)"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.core.net 1 0 2015-01-21 12:25:57.638
!ENTRY org.eclipse.core.net 1 0 2015-01-21 12:25:57.645
12:26:06,911 1 ERROR [ main ] ro.sync.exml.editor.persistance.patcher.b - java.lang.StringIndexOutOfBoundsException: String index out of range: -2
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(Unknown Source)
at ro.sync.exml.editor.persistance.patcher.b.f(Unknown Source)
at ro.sync.exml.editor.persistance.patcher.b.c(Unknown Source)
at ro.sync.exml.editor.persistance.b.d(Unknown Source)
at ro.sync.exml.editor.DocumentTypeRepository.getDocumentTypeDescriptors(Unknown Source)
at ro.sync.exml.editor.DocumentTypeRepository.getDocumentEnabledTypeDescriptors(Unknown Source)
at ro.sync.xml.b.c.h(Unknown Source)
at ro.sync.xml.b.c.b(Unknown Source)
at ro.sync.xml.b.b.getCatalogFiles(Unknown Source)
at org.apache.xml.resolver.Catalog.loadSystemCatalogs(Unknown Source)
at ro.sync.xml.b.c.getPrivateCatalog(Unknown Source)
at ro.sync.xml.b.b.getCatalog(Unknown Source)
at org.apache.xml.resolver.tools.CatalogResolverXerces.initializeCatalogs(Unknown Source)
at org.apache.xml.resolver.tools.CatalogResolverXerces.<init>(Unknown Source)
at org.apache.xml.resolver.tools.CatalogResolver.<init>(Unknown Source)
at ro.sync.xml.b.g.<init>(Unknown Source)
at ro.sync.xml.b.d.o(Unknown Source)
at ro.sync.xml.b.d.n(Unknown Source)
at ro.sync.xml.b.n.b(Unknown Source)
at ro.sync.xml.b.n.resolveEntity(Unknown Source)
at ro.sync.exml.editor.cc$_b.resolveEntity(Unknown Source)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.ditang.relaxng.defaults.RelaxDefaultsParserConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at ro.sync.exml.editor.cc.p(Unknown Source)
at ro.sync.exml.editor.cc.m(Unknown Source)
at ro.sync.exml.editor.cc.k(Unknown Source)
at ro.sync.exml.editor.xmleditor.db.vtf(Unknown Source)
at ro.sync.exml.editor.xmleditor.db.utf(Unknown Source)
at ro.sync.exml.editor.xmleditor.db.arf(Unknown Source)
at com.oxygenxml.editor.editors.xml.AbstractXMLTextEditor.prettyPrintOnOpen(Unknown Source)
at com.oxygenxml.editor.editors.OxygenBaseEditor.init(Unknown Source)
at com.oxygenxml.editor.editors.ub.init(Unknown Source)
at com.oxygenxml.editor.editors.xml.AbstractXMLTextEditor.init(Unknown Source)
at com.oxygenxml.editor.editors.xml.XMLTextEditor.init(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:239)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:213)
at com.oxygenxml.editor.editors.jb.dsg(Unknown Source)
at com.oxygenxml.editor.editors.jb.createPages(Unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:362)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:141)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:327)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:869)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:337)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:127)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:983)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:662)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:766)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:737)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:731)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:715)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:94)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4734)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:218)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:488)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:454)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:694)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:387)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1134)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3210)
at org.eclipse.ui.internal.WorkbenchPage.access$23(WorkbenchPage.java:3125)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:3107)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3102)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3066)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3047)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1139)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:253)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:237)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Jan 21, 2015 12:26:15 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
12:26:21,354 14444 ERROR [ AutomaticallyValidation ] ro.sync.exml.n.b.cb - Errors when create transformer : [[SystemID: jar:file:/D:/SOFTWARES/eclipse-java-luna-SR1-win32-x86_64/eclipse/dropins/oxygenxml.author_16.0/plugins/com.oxygenxml.author_16.0.0.v2014070913/lib/oxygenAuthorEclipse.jar!/builtin/oXygenSchematronDispatcher.xsl
Severity: error
Line: -1
Column: -1
EndLine: -1
EndColumn: -1
Length: -1
Offset: -1
Message: PermGen space]]
12:26:22,501 15591 ERROR [ AutomaticallyValidation ] ro.sync.exml.editor.wc - Automatically validation thread stopped because java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ro.sync.ecss.component.validation.c.c(Unknown Source)
at com.oxygenxml.editor.editors.author.e.c.tkp(Unknown Source)
at com.oxygenxml.editor.editors.ub.updateErrors(Unknown Source)
at ro.sync.exml.editor.validate.p.t(Unknown Source)
Error while logging event loop exception:
Error while logging event loop exception:
!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-01-21 12:26:29.961
!MESSAGE Error disposing widget for : org.eclipse.e4.ui.model.application.ui.menu.impl.MenuImpl null
!STACK 0
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:4422)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.SWT.error(SWT.java:4327)
at org.eclipse.swt.graphics.GC.setForeground(GC.java:4426)
at org.eclipse.swt.custom.CTabFolderRenderer.drawBackground(CTabFolderRenderer.java:702)
at org.eclipse.swt.custom.CTabFolderRenderer.drawBackground(CTabFolderRenderer.java:629)
at org.eclipse.swt.custom.CTabFolder.updateBkImages(CTabFolder.java:3800)
at org.eclipse.swt.custom.CTabFolder.setButtonBounds(CTabFolder.java:2535)
at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3705)
at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3640)
at org.eclipse.swt.custom.CTabFolder.onResize(CTabFolder.java:2034)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:290)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Control.sendResize(Control.java:2950)
at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:977)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1026)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3104)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3100)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3167)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:318)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:263)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:306)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:306)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:180)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
at org.eclipse.swt.widgets.Composite.sendResize(Composite.java:981)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1026)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3104)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3100)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:204)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1701)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4685)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5492)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4698)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1465)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3143)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1020)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3104)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3100)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3167)
at org.eclipse.swt.custom.StackLayout.layout(StackLayout.java:123)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1701)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4685)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5492)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4698)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1465)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3143)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1020)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3104)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3100)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3167)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:318)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:263)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:306)
at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:180)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1701)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4685)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5492)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4698)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1465)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3143)
at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1020)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3104)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3100)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:204)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1701)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4685)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:79)
at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5492)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4698)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
at org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method)
at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:950)
at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:916)
at org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:1127)
at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1705)
at org.eclipse.swt.widgets.Canvas.WM_SIZE(Canvas.java:462)
at org.eclipse.swt.widgets.Decorations.WM_SIZE(Decorations.java:1810)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4685)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:498)
at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5492)
at org.eclipse.swt.widgets.Canvas.WM_WINDOWPOSCHANGED(Canvas.java:468)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4698)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.SetMenu(Native Method)
at org.eclipse.swt.widgets.Decorations.setMenuBar(Decorations.java:1174)
at org.eclipse.swt.widgets.Menu.releaseParent(Menu.java:1186)
at org.eclipse.swt.widgets.Widget.release(Widget.java:824)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:454)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.disposeWidget(SWTPartRenderer.java:174)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:933)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$3(PartRenderingEngine.java:862)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$8.run(PartRenderingEngine.java:857)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:841)
at org.eclipse.ui.internal.WorkbenchWindow$1.handleEvent(WorkbenchWindow.java:319)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4734)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:218)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl.setWidget(UIElementImpl.java:261)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.unbindWidget(SWTPartRenderer.java:149)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer$1.widgetDisposed(SWTPartRenderer.java:137)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Widget.release(Widget.java:816)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:454)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:447)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:715)
at org.eclipse.swt.widgets.Display.release(Display.java:3811)
at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Yes, the plugin is loaded. To test this I have added CustomActionBarContributorCustomizer.java in the plugin and wrote code to remove some XML menu items. After running the plugin as Eclipse application, in the new eclipse window the changes applied to the XML menu are reflected. But we don't know how to check whether earlyStartup() method is called or not.Does the plugin gets loaded at all (is the earlyStartup() method called)?
Please let us know why we are not getting the console we require. If possible, please share us the IDs of contextual menu which you could generate using your plugin.
Regards,
Shabeer
-
- Posts: 1017
- Joined: Wed Nov 16, 2005 11:11 am
Re: XML menu customization
Post by alex_jitianu »
Hi Shabeer,
I've noticed an java.lang.OutOfMemoryError: PermGen space error so the first thing you should do is to edit the configuration , go to Arguments and add to the VM arguments: -XX:MaxPermSize=300m .
I also see a lot of org.osgi.framework.BundleException complaining about various packages. I'm not sure on the implications they might have... You probably have some other plugins loaded that required those bundles.
here is what output I've got for a DITA topic:
From what I see you have extended the DITA framework. Can you send us the *.framework file on the support list to have a look at it?
Best regards,
Alex
I've noticed an java.lang.OutOfMemoryError: PermGen space error so the first thing you should do is to edit the configuration , go to Arguments and add to the VM arguments: -XX:MaxPermSize=300m .
I also see a lot of org.osgi.framework.BundleException complaining about various packages. I'm not sure on the implications they might have... You probably have some other plugins loaded that required those bundles.
here is what output I've got for a DITA topic:
Code: Select all
Edit Attributes, ID= 'null' defID='com.oxygenxml.editor.editAttributes'
null-class org.eclipse.jface.action.SeparatorPaste, ID= 'null' defID='null'
Paste as XML, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.Separator&Paste special, ID='Paste special'
Paste as content reference, ID= 'null' defID='com.oxygenxml.author.extension.paste.content.reference'
Paste as content key reference, ID= 'null' defID='com.oxygenxml.author.extension.paste.content.key.reference'
null-class org.eclipse.jface.action.Separator Paste as link, ID= 'null' defID='com.oxygenxml.author.extension.paste.reference'
Paste as link (keyref), ID= 'null' defID='com.oxygenxml.author.extension.paste.key.reference'
null-class org.eclipse.jface.action.Separator&Table, ID='Table'
null-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.Separator&Insert, ID='Insert'
Insert Paragraph, ID= 'null' defID='com.oxygenxml.author.extension.paragraph'
Insert Topic, ID= 'null' defID='com.oxygenxml.author.extension.insert.topic'
Insert Image, ID= 'null' defID='com.oxygenxml.author.extension.insert.image'
Insert Equation, ID= 'null' defID='com.oxygenxml.author.extension.insert.equation'
Insert Table, ID= 'null' defID='com.oxygenxml.author.extension.insert.table'
&Link, ID='Link'
Cross Reference, ID= 'null' defID='com.oxygenxml.author.extension.insert.cross.reference'
Key Reference, ID= 'null' defID='com.oxygenxml.author.extension.insert.key.reference'
File Reference, ID= 'null' defID='com.oxygenxml.author.extension.insert.file.reference'
Web Link, ID= 'null' defID='com.oxygenxml.author.extension.insert.url.reference'
Related Link to Topic, ID= 'null' defID='com.oxygenxml.author.extension.insert.related.link.2.topic'
Related Link to File, ID= 'null' defID='com.oxygenxml.author.extension.insert.related.link.2.file'
Related Link to Web Page, ID= 'null' defID='com.oxygenxml.author.extension.insert.related.link.2.web.page'
null-class org.eclipse.jface.action.Separator&Reuse, ID='Reuse'
Insert Content Reference, ID= 'null' defID='com.oxygenxml.author.extension.insert.conref'
Insert Content Key Reference, ID= 'null' defID='com.oxygenxml.author.extension.insert.conkeyref'
null-class org.eclipse.jface.action.Separator Add/Edit Content Reference, ID= 'null' defID='com.oxygenxml.author.extension.add_edit_content_reference'
Replace Reference with Content, ID= 'null' defID='com.oxygenxml.author.extension.conref.replace'
Remove Content Reference, ID= 'null' defID='com.oxygenxml.author.extension.remove_content_reference'
null-class org.eclipse.jface.action.Separator Create Reusable Component, ID= 'null' defID='com.oxygenxml.author.extension.create_reusable_component'
Insert Reusable Component, ID= 'null' defID='com.oxygenxml.author.extension.insert_reusable_component'
null-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.SeparatorGenerate IDs, ID= 'null' defID='com.oxygenxml.author.extension.generate.ids'
null-class org.eclipse.jface.action.SeparatorSearch References, ID= 'null' defID='com.oxygenxml.author.extension.search.references'
null-class org.eclipse.jface.action.SeparatorStyle Guide, ID= 'null' defID='com.oxygenxml.author.extension.styleguide.context'
Browse reference manual..., ID= 'null' defID='com.oxygenxml.author.extension.show.DITA.documentation'
null-class org.eclipse.jface.action.Separatornull-class org.eclipse.jface.action.SeparatorEdit Profiling Attributes..., ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator&Select, ID='null'
Element, ID= 'null' defID='null'
Content, ID= 'null' defID='null'
Parent, ID= 'null' defID='null'
&Text, ID='null'
To Lower Case, ID= 'null' defID='null'
To Upper Case, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Capitalize Sentences, ID= 'null' defID='null'
Capitalize Words, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Count Words, ID= 'null' defID='null'
&Refactoring, ID='null'
Toggle Comment, ID= 'null' defID='null'
Move Up, ID= 'null' defID='null'
Move Down, ID= 'null' defID='null'
Split Element, ID= 'null' defID='null'
Join Elements, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Surround with Tags..., ID= 'null' defID='null'
Surround with, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Rename Element, ID= 'null' defID='null'
Delete Element Tags, ID= 'null' defID='null'
Remove Text, ID= 'null' defID='null'
Remove All Markup, ID= 'null' defID='null'
&Review, ID='null'
Track Changes, ID= 'null' defID='null'
Accept change(s), ID= 'null' defID='null'
Reject change(s), ID= 'null' defID='null'
Comment change, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Highlight, ID= 'null' defID='null'
&Colors, ID='null'
Yellow, ID= 'null' defID='null'
Light green, ID= 'null' defID='null'
Light cyan, ID= 'null' defID='null'
Pink, ID= 'null' defID='null'
Orange, ID= 'null' defID='null'
Magenta, ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator No color (erase), ID= 'null' defID='null'
Stop highlighting, ID= 'null' defID='null'
Remove highlight(s)..., ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Add Comment..., ID= 'null' defID='null'
Edit comment..., ID= 'null' defID='null'
Remove comment(s)..., ID= 'null' defID='null'
null-class org.eclipse.jface.action.Separator Manage reviews, ID= 'null' defID='null'
Insert Entity, ID= 'null' defID='null'
Open File at Caret, ID= 'null' defID='null'
&Folding, ID='null'
Toggle Fold, ID= 'null' defID='null'
Collapse Other Folds, ID= 'null' defID='null'
Collapse Child Folds, ID= 'null' defID='null'
Expand Child Folds, ID= 'null' defID='null'
Expand All, ID= 'null' defID='null'
null-class org.eclipse.jface.action.SeparatorOptions..., ID= 'null' defID='null'
Best regards,
Alex
-
- Posts: 37
- Joined: Mon Jul 14, 2014 9:48 am
Re: XML menu customization
Hi Team,
I have a query regarding Spell Checking in oXygen eclipse Author 16.1 version.
In Spell Checking -> Options, we have an option to set Automatic Spell Checking. For this, user have to manually select the check box "Automatic Spell Check". But we need that option to be enabled by default while opening eclipse oXygen.
Please let us know how we can achieve the same.
Thanks in advance!
Best Regards,
Navaneetha
I have a query regarding Spell Checking in oXygen eclipse Author 16.1 version.
In Spell Checking -> Options, we have an option to set Automatic Spell Checking. For this, user have to manually select the check box "Automatic Spell Check". But we need that option to be enabled by default while opening eclipse oXygen.
Please let us know how we can achieve the same.
Thanks in advance!
Best Regards,
Navaneetha
-
- Posts: 9510
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XML menu customization
Hi Navaneetha,
You would have two options:
1) We have a concept of Default options which could be set up when running Eclipse:
http://www.oxygenxml.com/doc/ug-editorE ... tions.html
2) When your Eclipse plugin starts you could call our API like this:
That would always impose your spell check options so ideally you would call that API only the first time your plugin is started.
Regards,
Radu
You would have two options:
1) We have a concept of Default options which could be set up when running Eclipse:
http://www.oxygenxml.com/doc/ug-editorE ... tions.html
2) When your Eclipse plugin starts you could call our API like this:
Code: Select all
ro.sync.azcheck.ui.SpellCheckOptions spellCheckOptions = new SpellCheckOptions();
spellCheckOptions.automaticSpellCheck = true;
PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty("spell.check.options", spellCheckOptions);
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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