Skip to content

Instantly share code, notes, and snippets.

View RemcoSchellekensNS's full-sized avatar

Remco Schellekens RemcoSchellekensNS

View GitHub Profile
@RemcoSchellekensNS
RemcoSchellekensNS / IsolateSingleViewToModel.ajs
Created February 27, 2023 15:43
#jarchi script to isolate single view to a new model containing only view and referenced elements in that view
/*
+++++++++++++++ +++++
+++++++++++++++++ +++++
+++++ +++++ +++++
+++++ +++++ +++++
++++++++++++++++ ++++++++++++++++++
++++++++++++++++++ +++++++++++++++++
+++++ +++++ ++++++
+++++ +++++ ++++++
+++++ ++++++++++++++++++
@RemcoSchellekensNS
RemcoSchellekensNS / clipboard_example.ajs
Created February 27, 2023 15:37
#jarchi script example using clipboard for text exchange
/*
* New Archi Script
*/
// Places string on clipboard
function SetClipboardString(string) {
var Toolkit = Java.type("java.awt.Toolkit");
var Transferable = Java.type("java.awt.datatransfer.StringSelection");
@RemcoSchellekensNS
RemcoSchellekensNS / MessageDialogs_JFace.ajs
Created February 27, 2023 15:35
This #jarchi script shows alternative MessageDialog windows with more options using Java "jface" dialogs
/*
* Example message dialogs via jface
*
*/
var MessageDialog= Java.type('org.eclipse.jface.dialogs.MessageDialog');
// Standard Error Message, with "ok" button and error icon
MessageDialog.openError(shell,"Error","your errortext");