You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/05/09 08:55:30 UTC

[GitHub] JaroslavTulach closed pull request #392: form: Fix compile error under Java 9, method cannot be applied to types

JaroslavTulach closed pull request #392: form: Fix compile error under Java 9, method cannot be applied to types
URL: https://github.com/apache/incubator-netbeans/pull/392
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/form/src/org/netbeans/modules/form/layoutsupport/griddesigner/GridDesigner.java b/form/src/org/netbeans/modules/form/layoutsupport/griddesigner/GridDesigner.java
index 90efdc16c..493aec7e7 100644
--- a/form/src/org/netbeans/modules/form/layoutsupport/griddesigner/GridDesigner.java
+++ b/form/src/org/netbeans/modules/form/layoutsupport/griddesigner/GridDesigner.java
@@ -264,7 +264,8 @@ private void setupUndoRedoShortcut(boolean undo, Action ourAction) {
         KeyStroke ks = null;
         FileObject undoRedoFO = FileUtil.getConfigFile(undo ? "Menu/Edit/org-openide-actions-UndoAction.shadow" : "Menu/Edit/org-openide-actions-RedoAction.shadow"); // NOI18N
         if (undoRedoFO != null) {
-            ContextAwareAction undoRedoAction = SystemAction.get(undo ? org.openide.actions.UndoAction.class : org.openide.actions.RedoAction.class);
+            Class<? extends SystemAction> undoClass = undo ? org.openide.actions.UndoAction.class : org.openide.actions.RedoAction.class;
+            ContextAwareAction undoRedoAction = (ContextAwareAction)SystemAction.get(undoClass);
             Action a = undoRedoAction.createContextAwareInstance(Lookup.EMPTY);
             AcceleratorBinding.setAccelerator(a, undoRedoFO);
             Object ksObj = a.getValue(Action.ACCELERATOR_KEY);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists