@Override @Nullable public Object getData(@NonNls final String dataId) { if (myDataProvider != null) { final Object value = myDataProvider.getData(dataId); if (value != null) return value; } if (SwitchProvider.KEY.getName().equals(dataId) && myOwnSwitchProvider) { return this; } if (QuickActionProvider.KEY.getName().equals(dataId)) { return this; } return NAVIGATION_ACTIONS_KEY.is(dataId) ? this : null; }
@Override public Object getData(@NonNls String dataId) { if (SwitchProvider.KEY.getName().equals(dataId)) { return myContentUI; } if (QuickActionProvider.KEY.getName().equals(dataId)) { return myContentUI; } if (RunnerContentUi.KEY.getName().equals(dataId)) { return myContentUI; } final DataProvider provider = DataManager.getDataProvider(this); return provider != null ? provider.getData(dataId) : null; }
@Override @Nullable public Object getData(@Nonnull @NonNls final Key<?> dataId) { if (myDataProvider != null) { final Object value = myDataProvider.getData(dataId); if (value != null) return value; } if (SwitchProvider.KEY == dataId && myOwnSwitchProvider) { return this; } if (QuickActionProvider.KEY == dataId) { return this; } return NAVIGATION_ACTIONS_KEY == dataId ? this : null; }
@Nullable @Override public Object getData(@NonNls String dataId) { if (SwitchProvider.KEY.is(dataId) || QuickActionProvider.KEY.is(dataId) || RunnerContentUi.KEY.is(dataId)) { return myContentUI; } return null; }
@Nullable @Override public Object getData(@Nonnull @NonNls Key dataId) { if (SwitchProvider.KEY == dataId || QuickActionProvider.KEY == dataId || RunnerContentUi.KEY == dataId) { return myContentUI; } return null; }
@Nullable public Object getData(@NonNls String dataId) { return QuickActionProvider.KEY.is(dataId) && myProvideQuickActions ? this : null; }
@Nullable public Object getData(@Nonnull Key<?> dataId) { return QuickActionProvider.KEY == dataId && myProvideQuickActions ? this : null; }