Recent posts

#91
coArchi / Re: Switching Repositories
Last post by Jean-Baptiste Sarrodie - November 06, 2024, 10:49:19 AM
Hi,

The easiest option is to remove the model from the workspace and add it back using the new url.

Regards,

JB
#92
Hi,

Quote from: Phil Beauvoir on November 06, 2024, 10:33:34 AMUnfortunately, there's no way around this for backward compatibility when opening models prior to this change. The default is solid, we have to check for model version in order to set dashed for Grouping.

(Thinking out loud)

Instead of having the following values 0, 1 and 2 for "solid", "dashed" and "dotted" with default value being 0 (solid), could we have (for ArchiMate elements) -1, 0, 1 and 2 for "ArchiMate default", "solid", "dashed" and "dotted" with the default value being -1 (ArchiMate default). Then, each figure would decide what "ArchiMate default" means (solid for all but Grouping).

JB
#93
General Archi Discussion / Re: Line style for elements (d...
Last post by Phil Beauvoir - November 06, 2024, 10:33:34 AM
Quote from: Jean-Baptiste Sarrodie on November 06, 2024, 10:28:21 AMGrouping should by default use dashed line (ArchiMate default notation should always be Archi's default). I know this raises (again) the common issue of EMF default values, and I would rather try to avoid changing the internal XML version as this lead to lots of trouble for coArchi users. So if there's some way to add a specific rule for grouping without changing the version, I'm all for it.

Unfortunately, there's no way around this for backward compatibility when opening models prior to this change. The default is solid, we have to check for model version in order to set dashed for Grouping.
#94
Hi,

Quote from: Phil Beauvoir on November 04, 2024, 15:28:45 PMthe key thing here is not whether we support the request (we do) but to finalise the implementation details as set out in the issue. These are to do with whether to allow line styles for the Grouping figure and the icon-type figures.

As I have some issues commenting on GitHub, here are my 2cts on this:
- Agree that only solid, dashed and dotted should be implemented. This matches what we already have for visual connections.
- UI should be the same as for visual connections (see attached screenshot).
- This should not only apply to ArchiMate elements, but also to visual note, group, sticky and block).
- I would allow linestyle customization only for box notation.
- I would allow linestyle customization for all ArchiMate elements, including Grouping. Of course this can lead to some Grouping looking like visual group (and vice versa) but people can already create ArchiMate elements that use other element's icon through custom images, so let's assume users won't be (too) silly.
- Grouping should by default use dashed line (ArchiMate default notation should always be Archi's default). I know this raises (again) the common issue of EMF default values, and I would rather try to avoid changing the internal XML version as this lead to lots of trouble for coArchi users. So if there's some way to add a specific rule for grouping without changing the version, I'm all for it.

Regards,

JB


#95
General Archi Discussion / Re: Error (one-off) when creat...
Last post by Xiaoqi - November 06, 2024, 07:44:56 AM
Good to provide some hint, actually I haven't seen same error until now, one full day, along with my using Archi.
#96
General Archi Discussion / Re: Error (one-off) when creat...
Last post by Phil Beauvoir - November 06, 2024, 07:34:08 AM
Thanks, Xiaoqi. Looks like some asynchronous issue. I'll put a null check guard in at that point for the next version.

Phil
#97
General Archi Discussion / Re: Error (one-off) when creat...
Last post by Xiaoqi - November 06, 2024, 07:21:36 AM
Hi Phil,

Below I extract the detail from that timestamp:

!ENTRY org.eclipse.jface 4 2 2024-11-05 08:50:32.637
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException: Cannot invoke "org.eclipse.gef.GraphicalViewer.getControl()" because the return value of "com.archimatetool.editor.diagram.AbstractDiagramEditor.getGraphicalViewer()" is null
at com.archimatetool.editor.diagram.AbstractDiagramEditor.selectObjects(AbstractDiagramEditor.java:969)
at com.archimatetool.editor.diagram.ArchimateDiagramEditor.selectObjects(ArchimateDiagramEditor.java:155)
at com.archimatetool.editor.views.tree.TreeSelectionSynchroniser.selectionChanged(TreeSelectionSynchroniser.java:188)
at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:151)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:148)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)
at org.eclipse.jface.viewers.ColumnViewer.updateSelection(ColumnViewer.java:1055)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1664)
at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1091)
at com.archimatetool.editor.views.tree.TreeModelView.propertyChange(TreeModelView.java:758)
at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.archimatetool.editor.model.impl.EditorModelManager.firePropertyChange(EditorModelManager.java:755)
at com.archimatetool.editor.model.impl.EditorModelManager.registerModel(EditorModelManager.java:184)
at com.archimatetool.editor.model.impl.EditorModelManager.createNewModel(EditorModelManager.java:162)
at com.archimatetool.editor.actions.NewArchimateModelAction.run(NewArchimateModelAction.java:40)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:98)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:299)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:233)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:174)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:165)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:204)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:444)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:442)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:464)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4285)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1160)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4083)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3673)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:152)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at com.archimatetool.editor.Application.start(Application.java:85)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
at org.eclipse.equinox.launcher.Main.run(Main.java:1481)

For your checking, thanks.
Xiaoqi
#98
coArchi / Re: Switching Repositories
Last post by Xiaoqi - November 06, 2024, 07:17:42 AM
If I understand your "disconnect" meaning correctly, you just need to delete the model from local "Collaboration Workspace".
#99
coArchi / Switching Repositories
Last post by m_ott - November 05, 2024, 17:53:40 PM
Hello, I have been using Azure DevOps as the Git repo for a number of models but I am moving everything over to GitHub...how do I disconnect a model from the DevOps repo?  I have been searching and haven't found any guidance in the documentation, I appreciate any help.
#100
General Archi Discussion / Re: Error (one-off) when creat...
Last post by Phil Beauvoir - November 05, 2024, 08:06:07 AM
Hi Xiaoqi,

Attach the error trace in the error log if possible. This can be accessed in Archi by selecting the "About Archi" menu item. In the dialog box press the "Installation Details" button, then select the "Configuration" tab and press the "View Error Log" button.

Phil