Search found 1008 matches

by alex_jitianu
Fri Jan 09, 2015 10:56 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hello, The content of META-INF/MANIFEST.MF should look like this: 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-RequiredExecutionEnvironmen...
by alex_jitianu
Fri Jan 09, 2015 10:45 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing oxygen eclipse
Replies: 21
Views: 8371

Re: Customizing oxygen eclipse

Hi Shabeer,

Please try this:

Code: Select all


if (iAction != null && "Validate/Custom_validation".equals(iAction.getId())) {
iterator.remove();
}
Best regards,
Alex
by alex_jitianu
Thu Jan 08, 2015 5:08 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing oxygen eclipse
Replies: 21
Views: 8371

Re: Customizing oxygen eclipse

Hi Shabeer, Unfortunately that item lacks an ID. I can't really say why... You'll have to rely on the iAction.getText(). The text of this item is Validate/Custom_validation . I'll register an issue to add an ID for this item and you will get notified when we do it. This way you will be able to updat...
by alex_jitianu
Thu Jan 08, 2015 1:32 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing oxygen eclipse
Replies: 21
Views: 8371

Re: Customizing oxygen eclipse

Hello, Using Oxygen extensions points you can only customize menus that are contributed by Oxygen. The Run menu is contributed by a different Eclipse plugin. I think you should read about the Eclipse Rich Client Platform and how to create Rich Client Applications with it. The idea is that you are de...
by alex_jitianu
Thu Jan 08, 2015 1:22 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

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...
by alex_jitianu
Wed Jan 07, 2015 5:14 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Modify Link Action
Replies: 0
Views: 3361

Re: Modify Link Action

Hi, I suspect that there is an href attribute there, that contains the topicName#sectionName value, right? You can get it and set it back like this: int caretOffset = authorAccess.getEditorAccess().getCaretOffset(); AuthorNode xrefNode = authorAccess.getDocumentController().getNodeAtOffset(caretOffs...
by alex_jitianu
Tue Jan 06, 2015 3:15 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Creating dialog boxes in eclipse oxygen plug-in
Replies: 15
Views: 14152

Re: Creating dialog boxes in eclipse oxygen plug-in

Hi Shabeer,

The setShellStyle(style) method is from org.eclipse.jface.dialogs.Dialog. If you don't have access to JFace and you can't use it then perhaps you could use org.eclipse.swt.widgets.Dialog instead.

Best regards,
Alex
by alex_jitianu
Tue Jan 06, 2015 1:02 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hello, Personally I have no experience working with "Plug-in Menu Spy" so I can't really tell you anything about that. You can get get the IDs of the sub-menus and actions added in the contextual menu with a code like the one below (it prints them to the output console). After seeing the I...
by alex_jitianu
Tue Jan 06, 2015 10:31 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hello, The id that will identify the Generate IDs action at this point is Author/generate.ids . Another thing to consider is that this particular action is an author action. That means it can also be removed from the document type/framework configuration dialog . Select tab Author , then Contextual ...
by alex_jitianu
Mon Jan 05, 2015 4:51 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Creating dialog boxes in eclipse oxygen plug-in
Replies: 15
Views: 14152

Re: Creating dialog boxes in eclipse oxygen plug-in

Hi Shabeer, One thing that I don't understand is why are you creating a new shell? shlInsertExter = new Shell( display , SWT.CLOSE | SWT.TITLE | SWT.CENTER | SWT.APPLICATION_MODAL); Just create a dialog over the Shell obtained from our API. If we refer to the ResizableDialog code I've given you earl...
by alex_jitianu
Mon Jan 05, 2015 4:42 pm
Forum: Feature Request
Topic: Integrate with Rest Services
Replies: 3
Views: 3012

Re: Integrate with Rest Services

Hello, I got the chance to look at the plugin package you sent on the support list. The package is not correct. Please make sure to create it using the Run as->Maven install action from the project contextual menu in Eclipse. The package is created inside the target folder and it's named in this man...
by alex_jitianu
Mon Jan 05, 2015 4:15 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Inserting a new Action
Replies: 3
Views: 2372

Re: Inserting a new Action

Hello, From what I understand you want these actions to be disabled in the context of a metadata element, right? And we are talking about author actions, correct? If an author action is not available in a given context then it will not be present in the contextual menu. You have to open the Action c...
by alex_jitianu
Mon Jan 05, 2015 4:06 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hello, Unfortunately the extension point com.oxygenxml.editor.actionBarContributorCustomizer doesn't yet allow you to do this but the good news is that it will, starting with version 17.0. Until version 17.0 is out there is another way to do this. You should start with the sample Eclipse plugin proj...
by alex_jitianu
Mon Jan 05, 2015 10:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hello Navaneetha,

Which distribution of Oxygen you want to customize? The Eclipse plugin or the Standalone distribution?

Best regards,
Alex
by alex_jitianu
Tue Dec 30, 2014 3:39 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Creating dialog boxes in eclipse oxygen plug-in
Replies: 15
Views: 14152

Re: Creating dialog boxes in eclipse oxygen plug-in

Hi Shabeer, 1. The behavior you are describing is the default behavior for a modal dialog. The modality of an instance may be specified using style bits. The modality style bits are used to determine whether input is blocked for other shells on the display. The PRIMARY_MODAL style allows an instance...
by alex_jitianu
Tue Dec 30, 2014 10:17 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to create new DITA task / topic templates in Author
Replies: 1
Views: 2014

Re: How to create new DITA task / topic templates in Author

Hello, Each template is basically a file where the file name represents the template title and the file content is the template content. As far as DITA is concerned, by default, these templates are located inside ${oxygenInstallDir}/frameworks/dita/templates . You can add more templates(files) at th...
by alex_jitianu
Mon Dec 29, 2014 3:07 pm
Forum: Common Problems
Topic: Oxygen Author Component performance
Replies: 7
Views: 3276

Re: Oxygen Author Component performance

Hi Alex, 1. The best idea would be to use a profiler tool to identify the execution hotspots, for example JProfiler. In JProfiler you can also see the time a thread spends waiting for an I/O operation (which might also be a cause for the latency). JProfiler for example can also connect to a running ...
by alex_jitianu
Mon Dec 29, 2014 11:59 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Creating dialog boxes in eclipse oxygen plug-in
Replies: 15
Views: 14152

Re: Creating dialog boxes in eclipse oxygen plug-in

Hi Shabeer, 1. So you need a modal dialog to block user interaction in the editor behind it. In Oxygen we normally use org.eclipse.jface.dialogs.Dialog with the SWT.APPLICATION_MODAL flag. Like this: public class ResizableDialog extends Dialog { /** * Resizable dialog. * * @param parentShell The par...
by alex_jitianu
Mon Dec 22, 2014 10:58 am
Forum: Other Issues
Topic: Automatic ID Generation
Replies: 7
Views: 5113

Re: Automatic ID Generation

Hello Eddie, First of all I want to clarify one aspect. If you decide that the Java API is the only solution for a given problem that doesn't mean that your users will have to use the API. A developer will use the API to create a customization and the customization will then be deployed to the users...
by alex_jitianu
Mon Dec 22, 2014 10:02 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hi Shabeer, The only thing wrong that I saw was that MANIFEST.MF declared dependencies on both of the author ( com.oxygenxml.author ) and oxygen( com.oxygenxml.editor ) distribution. After removing com.oxygenxml.editor from the Require-Bundle entry the plugin was loaded and the XML menu was not pres...
by alex_jitianu
Fri Dec 19, 2014 4:31 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hi Shabeer,

I can see nothing wrong with what you've described. Can you send me the oxygen-sample-eclipse-plugin-0.0.1-SNAPSHOT.jar package on support@oxygenxml.com so I can test it myself?

Best regards,
Alex
by alex_jitianu
Thu Dec 18, 2014 4:41 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hi Shabber, If you are using the Author distribution then the extension point ID is a little different (I'm sorry for noticing this aspect sooner): <extension point="com.oxygenxml.author.actionBarContributorCustomizer"> <implementation class="com.sdk.samples.customizations.eclipse.Cus...
by alex_jitianu
Thu Dec 18, 2014 1:03 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hello Shabeer, 2. First of all, I removed all other packages from the "oxygen-sample-eclipse-plugin" If you take a look inside /oxygen-sample-eclipse-plugin/META-INF/MANIFEST.MF you will see that it is dependent on the structure of your packages. For once I think that you need to keep the ...
by alex_jitianu
Thu Dec 18, 2014 9:53 am
Forum: SDK-API, Frameworks - Document Types
Topic: Custom URL Chooser Issue
Replies: 2
Views: 2160

Re: Custom URL Chooser Issue

Hello, The properties dialog is a non modal dialog. It also has a custom behavior to automatically hide when it loses focus to a component outside its hierarchy. I think that's what is happening in your case. You should be able to fix it by using the focused window as the parent for your dialog: Win...
by alex_jitianu
Wed Dec 17, 2014 3:04 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to provide complex dynamic map templates?
Replies: 8
Views: 3788

Re: How to provide complex dynamic map templates?

Hi Frank,

Yes, you've understood it correctly. I've misinterpreted your previous post... Sorry about that!

Best regards,
Alex
by alex_jitianu
Wed Dec 17, 2014 10:51 am
Forum: Other Issues
Topic: Automatic ID Generation
Replies: 7
Views: 5113

Re: Automatic ID Generation

Hello Eddie, In case of newly created topics all you have to do is change the used template: ${oxygenInstallDir}/frameworks/dita/templates/Topic.dita . You can change the editor variables used for the id attribute, for example let only the ${id} part. Alternatively you can use a custom editor variab...
by alex_jitianu
Wed Dec 17, 2014 9:59 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: XML menu customization
Replies: 25
Views: 16569

Re: XML menu customization

Hi Shabeer, I see that I have an inconsistency in my samples, the implementation given in plugin.xml is not the same with the sample class. Just to clarify it. In oxygen-sample-eclipse-plugin/plugin.xml you add an extension point like this: <extension point="com.oxygenxml.editor.actionBarContri...
by alex_jitianu
Tue Dec 16, 2014 5:17 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to provide complex dynamic map templates?
Replies: 8
Views: 3788

Re: How to provide complex dynamic map templates?

Hi Frank, Oxygen is available both as Standalone version and as an Eclipse plugin. It looks like you are interested in the Eclipse plugin customization, right? The solution I've described works for both distributions but the API differs. For Eclipse you must create your own plugin that will contribu...
by alex_jitianu
Tue Dec 16, 2014 1:40 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Creating dialog boxes in eclipse oxygen plug-in
Replies: 15
Views: 14152

Re: Creating dialog boxes in eclipse oxygen plug-in

Hello Shabeer,

Run maven install and afterwards copy target/oxygen-sample-eclipse-plugin-17.0-SNAPSHOT.jar inside Eclipse's dropins folder.

Best regards,
Alex
by alex_jitianu
Fri Dec 12, 2014 11:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to provide complex dynamic map templates?
Replies: 8
Views: 3788

Re: How to provide complex dynamic map templates?

Hello Frank, 1. You can already use custom editor variables inside document templates. You can either define them in Preferences or you can resolve them through the API . One aspect that is worth mentioning is that variables that refer to the file locations (like ${cfn}) will be handled only when yo...