From c2b06761d00a05026f9df1ccd518d633a0e56b48 Mon Sep 17 00:00:00 2001 From: Tobias Ortmayr Date: Thu, 29 Aug 2024 16:15:05 +0200 Subject: [PATCH] Address review feedback --- .../dependency-reduced-pom.xml | 156 ------------------ .../eclipse/glsp/layout/ElkLayoutEngine.java | 3 +- 2 files changed, 1 insertion(+), 158 deletions(-) delete mode 100644 examples/org.eclipse.glsp.example.workflow/dependency-reduced-pom.xml diff --git a/examples/org.eclipse.glsp.example.workflow/dependency-reduced-pom.xml b/examples/org.eclipse.glsp.example.workflow/dependency-reduced-pom.xml deleted file mode 100644 index b650b922..00000000 --- a/examples/org.eclipse.glsp.example.workflow/dependency-reduced-pom.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - org.eclipse.glsp.parent - org.eclipse.glsp - 2.3.0-SNAPSHOT - ../../pom.xml - - 4.0.0 - org.eclipse.glsp.example - org.eclipse.glsp.example.workflow - ${package-type} - GLSP Workflow Server - https://www.eclipse.org/glsp - - - Eclipse GLSP Project - glsp-dev@eclipse.org - Eclipse GLSP - https://projects.eclipse.org/projects/ecd.glsp - - - - - Eclipse Public License - v 2.0 - http://www.eclipse.org/legal/epl-v20.html - repo - - - - scm:git@github.com:eclipse-glsp/glsp-server.git - scm:git@github.com:eclipse-glsp/glsp-server.git - https://github.com/eclipse-glsp/glsp-server - - - - m2 - - - - maven-deploy-plugin - ${maven.deploy.version} - - false - - - - org.codehaus.mojo - build-helper-maven-plugin - ${buildhelper.maven.version} - - - add-resource - generate-resources - - add-resource - - - - - model - model - - - - - - - - - - jar - - - - fatjar - - - - maven-shade-plugin - ${maven.shade.version} - - - package - - shade - - - - - - - org.eclipse.glsp.example.workflow.launch.WorkflowServerLauncher - - true - - - - - - jakarta.websocket:jakarta.websocket-api - javax.websocket:javax.websocket-api - log4j:log4j - - - - - *:* - - META-INF/MANIFEST.MF - META-INF/DEPENDENCIES - META-INF/ECLIPSE_* - META-INF/LICENSE* - META-INF/services/javax.servlet.ServletContainerInitializer - META-INF/services/jakarta.servlet.ServletContainerInitializer* - META-INF/services/org.eclipse.jetty.webapp.Configuration* - META-INF/services/org.eclipse.elk.core.data.ILayoutMetaDataProvider* - META-INF/versions/9/module-info.class - META-INF/NOTICE* - .options - .api_description - *.profile - *.html - about.* - about_files/* - plugin.xml - modeling32.png - systembundle.properties - profile.list - module-info.class - plugin.properties - **/*._trace - **/*.g - **/*.tokens - **/*.mwe2 - **/*.xtext - **/*.xtextbin - META-INF/*.SF - META-INF/*.RSA - META-INF/*.INF - - - - true - glsp - false - - - - - - - - eclipse-plugin - - diff --git a/plugins/org.eclipse.glsp.layout/src/org/eclipse/glsp/layout/ElkLayoutEngine.java b/plugins/org.eclipse.glsp.layout/src/org/eclipse/glsp/layout/ElkLayoutEngine.java index 5e349821..387ab2d4 100644 --- a/plugins/org.eclipse.glsp.layout/src/org/eclipse/glsp/layout/ElkLayoutEngine.java +++ b/plugins/org.eclipse.glsp.layout/src/org/eclipse/glsp/layout/ElkLayoutEngine.java @@ -273,8 +273,7 @@ protected void handleClientLayout(final GBoundsAware element, final GLayouting s */ protected void resolveReferences(final LayoutContext context) { // Per default a map will resize when 75% of its capacticy is filled. By dividing the expected size with the load - // factor - // we can create a map with enough capacity to avoid resizing + // factor we can create a map with enough capacity to avoid resizing int initialCapactiy = (int) Math.ceil(context.shapeMap.size() / 0.75); Map id2NodeMap = new HashMap<>(initialCapactiy);