public SystemAction[] getActions() { if (!isEnabledRefreshFolder()) { return NO_SYSTEM_ACTIONS; } else { if (SYSTEM_ACTIONS == null) { try { ClassLoader l = Lookup.getDefault().lookup(ClassLoader.class); if (l == null) { l = getClass().getClassLoader(); } Class<?> c = Class.forName("org.openide.actions.FileSystemRefreshAction", true, l); // NOI18N SystemAction ra = SharedClassObject.findObject(c.asSubclass(SystemAction.class), true); // initialize the SYSTEM_ACTIONS SYSTEM_ACTIONS = new SystemAction[] { ra }; } catch (Exception ex) { // ok, we are probably running in standalone mode and // classes needed to initialize the RefreshAction are // not available SYSTEM_ACTIONS = NO_SYSTEM_ACTIONS; } } return SYSTEM_ACTIONS; } }
public SystemAction[] getActions () { if (!isEnabledRefreshFolder ()) { return NO_SYSTEM_ACTIONS; } else { if (SYSTEM_ACTIONS == null) { try { ClassLoader l = (ClassLoader)org.openide.util.Lookup.getDefault().lookup (ClassLoader.class); if (l == null) l = getClass ().getClassLoader(); Class c = Class.forName ("org.openide.actions.FileSystemRefreshAction", true, l); // NOI18N SystemAction ra = (SystemAction) SharedClassObject.findObject (c, true); // initialize the SYSTEM_ACTIONS SYSTEM_ACTIONS = new SystemAction[] { ra }; } catch (Exception ex) { // ok, we are probably running in standalone mode and // classes needed to initialize the RefreshAction are // not available SYSTEM_ACTIONS = NO_SYSTEM_ACTIONS; } } return SYSTEM_ACTIONS; } }
public SystemAction[] getActions () { if (!isEnabledRefreshFolder ()) { return NO_SYSTEM_ACTIONS; } else { if (SYSTEM_ACTIONS == null) { try { ClassLoader l = (ClassLoader)org.openide.util.Lookup.getDefault().lookup (ClassLoader.class); if (l == null) l = getClass ().getClassLoader(); Class c = Class.forName ("org.openide.actions.FileSystemRefreshAction", true, l); // NOI18N SystemAction ra = (SystemAction) SharedClassObject.findObject (c, true); // initialize the SYSTEM_ACTIONS SYSTEM_ACTIONS = new SystemAction[] { ra }; } catch (Exception ex) { // ok, we are probably running in standalone mode and // classes needed to initialize the RefreshAction are // not available SYSTEM_ACTIONS = NO_SYSTEM_ACTIONS; } } return SYSTEM_ACTIONS; } }
public SystemAction[] getActions() { if (!afs().isEnabledRefreshFolder()) { return NO_SYSTEM_ACTIONS; } else { if (SYSTEM_ACTIONS == null) { try { ClassLoader l = Lookup.getDefault().lookup(ClassLoader.class); if (l == null) { l = getClass().getClassLoader(); } Class<?> c = Class.forName("org.openide.actions.FileSystemRefreshAction", true, l); // NOI18N SystemAction ra = SharedClassObject.findObject(c.asSubclass(SystemAction.class), true); // initialize the SYSTEM_ACTIONS SYSTEM_ACTIONS = new SystemAction[] { ra }; } catch (Exception ex) { // ok, we are probably running in standalone mode and // classes needed to initialize the RefreshAction are // not available SYSTEM_ACTIONS = NO_SYSTEM_ACTIONS; } } return SYSTEM_ACTIONS; } } }