/** * Returns the panel identifier. * * @return the panel identifier */ @Override public String getPanelId() { return panel.getPanelId(); }
@Override public String toString() { return "Panel{" + "className='" + className + '\'' + ", osConstraints=" + osConstraints + ", panelid='" + getPanelId() + '\'' + ", condition='" + condition + '\'' + ", validator count='" + validators.size() + '\'' + ", helps=" + helps + '\'' + ", affected variables count='" + affectedVariableNames.size() + '\'' + '}'; } }
private void debugConditions(Panel nextpanelmetadata, Panel lastpanelmetadata) { conditionhistoryrenderer.clearState(); updateChangedConditions( "changed after panel switch" + (lastpanelmetadata == null ? "" : " from " + lastpanelmetadata.getPanelId()) + " to " + nextpanelmetadata.getPanelId()); }
/** * Builds the resource name for a specific panel id. * * @param resourceNamePrefix The resource name prefix. * @param panel The panel providing a specific id. * @return The specific resource name or {@code null}, if the panel does not * have an identifier. */ static String buildSpecificResourceName(String resourceNamePrefix, Panel panel) { if (null != panel) { if (panel.hasPanelId()) { return resourceNamePrefix + '.' + panel.getPanelId(); } } return null; }
(lastpanelmetadata!=null?"new after panel " + lastpanelmetadata.getPanelId():"new on first panel ")); variableshistory.put(key, variableHistory); changes = true; (lastpanelmetadata!=null?"changed value after panel " + lastpanelmetadata.getPanelId():"changed value on first panel ")); changes = true; changedvariables.put(key, currentvalue);
@Override public boolean generateOptions(InstallData installData, Options options) { final String name = InstallData.INSTALL_PATH; options.add(name, installData.getInstallPath()); options.addEmptyLine(name); options.putComment(name, Arrays.asList(getPanel().getPanelId())); return true; }
@Override public boolean generateOptions(InstallData installData, Options options) { final String name =JDKPathPanelHelper.JDK_PATH; options.add(name, installData.getVariable(name)); options.addEmptyLine(name); options.putComment(name, Arrays.asList(getPanel().getPanelId())); return true; }
String panelId = getMetadata().getPanelId(); Class<?> clazz = this.getClass();
@Override public void addPanel(Panel panel) { sendMsg("Adding panel: " + panel.getPanelId() + " :: Classname : " + panel.getClassName()); panelList.add(panel); // serialized to keep order/variables correct PanelMerge mergeable = pathResolver.getPanelMerge(panel.getClassName()); mergeManager.addResourceToMerge(mergeable); }
String panelId = panel.getPanelId(); String key = (panelId != null) ? panelId : panel.getClassName(); if (!ids.add(key))
if (panel != null) panelId = getPanel().getPanelId();
private URL loadHTMLInfoContent() { Resources resources = getResources(); if (getMetadata() != null && getMetadata().getPanelId() != null) { try { String panelSpecificResName = panelResourcePrefixStr + '.' + this.getMetadata().getPanelId(); String panelspecificResContent = resources.getString(panelSpecificResName, null); if (panelspecificResContent != null) { panelResourceNameStr = panelSpecificResName; } } catch (Exception e) { // Those ones can be skipped } } try { return resources.getURL(panelResourceNameStr); } catch (Exception ex) { ex.printStackTrace(); } return null; }
@Override public boolean generateOptions(InstallData installData, Options options) { boolean commented = false; for (ConsoleField field : fields) { String name = field.getVariable(); if (name != null) { options.put(name, installData.getVariable(name)); if (!commented) { options.addEmptyLine(name); options.putComment(name, Arrays.asList(panel.getPanelId())); commented = true; } } } return true; }
/** * Creates an empty root element prepared for adding auto-installation records for this panel. * * @return IXMLElement The prepared panel record XML */ public final IXMLElement createPanelRootRecord() { IXMLElement panelRoot = new XMLElementImpl(panel.getClassName(), installData.getInstallationRecord()); String panelId = panel.getPanelId(); if (panelId != null) { panelRoot.setAttribute(AutomatedInstallData.AUTOINSTALL_PANELROOT_ATTR_ID, panelId); } return panelRoot; }
String searchkey = getMetadata().getPanelId() + DELIMITER + "headline"; if (getMetadata().hasPanelId() && installData.getMessages().getMessages().containsKey(searchkey)) headline = getString(getMetadata().getPanelId() + DELIMITER + "headline");
/** * Returns the specification for the supplied panel. * * @param panel the panel * @return the corresponding specification * @throws IzPackException if there is no specification for the panel */ public IXMLElement getPanelSpec(Panel panel) { String panelId = panel.getPanelId(); List<IXMLElement> panels = config.getRoot().getChildrenNamed(PANEL); IXMLElement result = null; for (IXMLElement spec : panels) { String id = spec.getAttribute(PANEL_IDENTIFIER); if (id != null && panelId != null && panelId.equals(id)) { // use the current element as spec result = spec; break; } } if (result == null) { throw new IzPackException("No user input specification with " + PANEL_IDENTIFIER + "=" + panelId); } return result; }
@Override public void addPanelCondition(Panel panel, Condition newCondition) { String panelId = panel.getPanelId(); String panelCondString = panel.getCondition(); if (panelCondString != null) { Condition panelCondition = getCondition(panelCondString); if (panelCondition == null) { throw new IzPackException("Condition '" + panelCondString + "' of panel '" + panel.getPanelId() + "'" + "cannot be evaluated"); } AndCondition andCondition = new AndCondition(this); andCondition.setId(andCondition.toString()); andCondition.addOperands(newCondition); andCondition.addOperands(panelCondition); newCondition = andCondition; } addCondition(newCondition); panel.setCondition(newCondition.getId()); this.panelConditions.put(panelId, newCondition.getId()); }
if( logger.isLoggable(Level.FINE)) logger.fine("Unblocked variables on panel '" + futurePanel.getPanelId() +"': " + createListAsString(blockedNames)); if( logger.isLoggable(Level.FINE)) logger.fine("Blocked variables on panel '" + newPanel.getPanelId() +"': " + createListAsString(blockedNames));
logger.fine("Unblocked variables on panel '" + panel.getPanelId() +"': " + createListAsString(installData.getVariables().getBlockedVariableNames(panel))); if (logger.isLoggable(Level.FINE)) logger.fine("Blocked variables on panel '" + panel.getPanelId() +"': " + createListAsString(variables));
String panelId = panel.getPanelId(); try