/** * Notify filter capabilities listeners of changes * * @param filter the Capabilities object relating to filters */ public void notifyCapabilitiesFilterListeners(Capabilities filter) { for (Perspective p : getPerspectiveManager().getVisiblePerspectives()) { if (p instanceof Explorer.CapabilitiesFilterChangeListener) { ((Explorer.CapabilitiesFilterChangeListener) p) .capabilitiesFilterChanged(new Explorer.CapabilitiesFilterChangeEvent( this, filter)); } } }
/** * Notify filter capabilities listeners of changes * * @param filter the Capabilities object relating to filters */ public void notifyCapabilitiesFilterListeners(Capabilities filter) { for (Perspective p : getPerspectiveManager().getVisiblePerspectives()) { if (p instanceof Explorer.CapabilitiesFilterChangeListener) { ((Explorer.CapabilitiesFilterChangeListener) p) .capabilitiesFilterChanged(new Explorer.CapabilitiesFilterChangeEvent( this, filter)); } } }
/** * Execute the command * * @param commandArgs arguments to the command * @return null (no return value for this command) * @throws WekaException if a problem occurs */ @SuppressWarnings("unchecked") @Override public List<String> performCommand(Object... commandArgs) throws WekaException { if (m_mainPerspective == null) { throw new WekaException("This command cannot be applied in the " + "current graphical environment"); } List<Perspective> perspectives = m_mainPerspective.getMainApplication().getPerspectiveManager() .getVisiblePerspectives(); List<String> result = new ArrayList<>(); for (Perspective p : perspectives) { if (!p.getPerspectiveID() .equalsIgnoreCase(KFDefaults.MAIN_PERSPECTIVE_ID)) { result.add(p.getPerspectiveTitle()); } } return result; } }
/** * Execute the command * * @param commandArgs arguments to the command * @return null (no return value for this command) * @throws WekaException if a problem occurs */ @SuppressWarnings("unchecked") @Override public List<String> performCommand(Object... commandArgs) throws WekaException { if (m_mainPerspective == null) { throw new WekaException("This command cannot be applied in the " + "current graphical environment"); } List<Perspective> perspectives = m_mainPerspective.getMainApplication().getPerspectiveManager() .getVisiblePerspectives(); List<String> result = new ArrayList<>(); for (Perspective p : perspectives) { if (!p.getPerspectiveID() .equalsIgnoreCase(KFDefaults.MAIN_PERSPECTIVE_ID)) { result.add(p.getPerspectiveTitle()); } } return result; } }
new ArrayList<Perspective>(); List<Perspective> visiblePerspectives = getMainApplication().getPerspectiveManager().getVisiblePerspectives(); for (Perspective p : visiblePerspectives) { if (p.acceptsInstances()
new ArrayList<Perspective>(); List<Perspective> visiblePerspectives = getMainApplication().getPerspectiveManager().getVisiblePerspectives(); for (Perspective p : visiblePerspectives) { if (p.acceptsInstances()
List<Perspective> perspectives = m_mainPerspective.getMainApplication().getPerspectiveManager() .getVisiblePerspectives();
List<Perspective> perspectives = m_mainPerspective.getMainApplication().getPerspectiveManager() .getVisiblePerspectives();
.getPerspectiveManager().getVisiblePerspectives(); if (perspectives.size() > 0 && step.getStepManager().getManagedStep() instanceof Loader) {
.getPerspectiveManager().getVisiblePerspectives(); if (perspectives.size() > 0 && step.getStepManager().getManagedStep() instanceof Loader) {
List<Perspective> perspectiveList = getMainApplication().getPerspectiveManager() .getVisiblePerspectives(); for (Perspective p : perspectiveList) { if (p.acceptsInstances()
List<Perspective> perspectiveList = getMainApplication().getPerspectiveManager() .getVisiblePerspectives(); for (Perspective p : perspectiveList) { if (p.acceptsInstances()
getMainApplication().getPerspectiveManager().getVisiblePerspectives(); for (Perspective p : visiblePerspectives) { if (!p.okToBeActive() && p.acceptsInstances()) {
getMainApplication().getPerspectiveManager().getVisiblePerspectives(); for (Perspective p : visiblePerspectives) { if (!p.okToBeActive() && p.acceptsInstances()) {