Re: [oXygen-user] [OXYGEN-15680] Re: Custom action to generate simple dialog?

2024-06-12 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Scott,

Right. We do not have a special Author operation to show a message to 
the end user.


This operation could be used to open a web page if for example you want 
to present to the end user the information in a web browser:


https://www.oxygenxml.com/doc/versions/26.1/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__openinsystemappoperation

Regards,
Radu

Radu Coravu
Oxygen XML Editor

On 6/13/24 03:06, Scott Prentice wrote:
If you're interested, here's one way to do this. I'm sure there's a 
more elegant way and this is probably a bit if a hack, but it does 
what I need right now.


1. In. your framework's Document Type dialog, on the Author:Actions 
subtab, add an action to the framework, give it an ID and a Name.
2. In the Action dialog select this Operation: 
ro.sync.ecss.extensions.commons.operations.JSOperation

3. A 'script' argument will be added, leave the value empty.
4. Choose OK. (Leave the Document Type dialog up for now.)
5. Create a commons.js file in the root of your framework directory, 
with the following content ..


    function doOperation(){
        parentFrame = authorAccess.getParentFrame();
        javax.swing.JOptionPane.showMessageDialog(parentFrame, 
"MESSAGE HERE");

    }

6. In the Document Type dialog, on the Author:Menu subtab, add your 
new action to your menu (assuming one exists).

7. Choose OK, then OK.

Open a document in Author view that uses your framework. You should 
see the new menu item.


Clearly, if you're already using the commons.js file for something 
else, you'll need to pass in some parameter and tweak the JS code .. 
but this is a start.  :-)


Cheers,

Scott

On 6/12/24 1:32 PM, Scott Prentice wrote:


Hi,

Is there a built-in method for creating an action (to call from a 
toolbar or menu) that displays a simple dialog that contains 
informational text? I'd like to have an "About" dialog that's 
associated with a framework. I assume I can do this by creating a 
custom class, but wanted to see if there was an OOB option for this.


Thanks!

Scott




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Custom action to generate simple dialog?

2024-06-12 Thread Scott Prentice
If you're interested, here's one way to do this. I'm sure there's a more 
elegant way and this is probably a bit if a hack, but it does what I 
need right now.


1. In. your framework's Document Type dialog, on the Author:Actions 
subtab, add an action to the framework, give it an ID and a Name.
2. In the Action dialog select this Operation: 
ro.sync.ecss.extensions.commons.operations.JSOperation

3. A 'script' argument will be added, leave the value empty.
4. Choose OK. (Leave the Document Type dialog up for now.)
5. Create a commons.js file in the root of your framework directory, 
with the following content ..


    function doOperation(){
        parentFrame = authorAccess.getParentFrame();
        javax.swing.JOptionPane.showMessageDialog(parentFrame, "MESSAGE 
HERE");

    }

6. In the Document Type dialog, on the Author:Menu subtab, add your new 
action to your menu (assuming one exists).

7. Choose OK, then OK.

Open a document in Author view that uses your framework. You should see 
the new menu item.


Clearly, if you're already using the commons.js file for something else, 
you'll need to pass in some parameter and tweak the JS code .. but this 
is a start.  :-)


Cheers,

Scott


On 6/12/24 1:32 PM, Scott Prentice wrote:


Hi,

Is there a built-in method for creating an action (to call from a 
toolbar or menu) that displays a simple dialog that contains 
informational text? I'd like to have an "About" dialog that's 
associated with a framework. I assume I can do this by creating a 
custom class, but wanted to see if there was an OOB option for this.


Thanks!

Scott




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Custom action to generate simple dialog?

2024-06-12 Thread Scott Prentice

Hi,

Is there a built-in method for creating an action (to call from a 
toolbar or menu) that displays a simple dialog that contains 
informational text? I'd like to have an "About" dialog that's associated 
with a framework. I assume I can do this by creating a custom class, but 
wanted to see if there was an OOB option for this.


Thanks!

Scott


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] [ANN] Oxygen AI Positron Assistant 2.1 introduces GPT-4o to its list of models, along with new AI actions!

2024-06-12 Thread Alin Belu

Hi everyone,

We are proud to announce the release of *version 2.1* for *Oxygen AI 
Positron Assistant*, a powerful tool that helps users increase their 
productivity by providing support for using AI-generated content within 
Oxygen tools - Oxygen XML Editor/Author/Developer, Oxygen XML Web 
Author, and Oxygen Content Fusion.


Version 2.1 expands upon the enhancements of the previous version by 
adding the advanced multi-modal *GPT-4o* to the list of models to choose 
from. This model is quicker and more cost-effective compared to the 
GPT-4 Turbo model.


For the Enterprise version of Oxygen AI Positron Assistant, the 
Microsoft Azure OpenAI Service connector now supports *authentication 
using Microsoft Entra ID*, providing users with improved security and 
flexibility.


Processing content within the editor has gotten even more easier as any 
content selected in the main editor area is automatically passed as 
context for the conversation when directly initiating a new chat with 
the AI.


*New AI actions* have been introduced in this version, allowing users to 
generate, document, or explain specific code snippets, initiate a 
conversation with the AI regarding certain code snippets, and create 
alternate text for images.


Version 2.1 also introduces three *AI-powered XML refactoring actions* 
that enable users working with DITA XML topics to generate alternate 
text for images, generate missing short descriptions, and shorten 
existing short descriptions.


Furthermore, Oxygen XML Web Author users who integrate the /Oxygen AI 
Positron Assistant Enterprise for Web Author/ plugin now have the 
ability to filter the list of AI actions.


For more information, see: 
https://www.oxygenxml.com/ai_positron_assistant.html


As always, thank you for your support and don't forget that feedback is 
welcome!


Best regards,
Alin

--
Alin Belu
Oxygen XML Editor
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user