/** * Set the make target list * * @param targetlist the (space separated) make target list */ public void setMakeTargets(String targetlist) { FileObject fo = getEntry().getFile(); try { fo.setAttribute(PROP_MAKE_TARGETS, targetlist); // This is a hack! How to refresh the property sheet so it shows the changed value???? // FIXUP !!!! if (sheetSet != null) { sheetSet.remove(PROP_MAKE_TARGETS); sheetSet.put(makeTargetsProperty); } // End hack } catch (IOException ex) { //String msg = MessageFormat.format(getString("MSG_CANT_SET_MAKE_TARGETS"), // NOI18N // new Object[]{FileUtil.toFile(fo).getPath()}); if (Boolean.getBoolean("netbeans.debug.exceptions")) { // NOI18N ex.printStackTrace(); } } }
@Override protected Sheet createSheet() { Sheet sheet = super.createSheet(); Sheet.Set set = sheet.get(BinaryExecSupport.PROP_EXECUTION); if (set == null) { set = new Sheet.Set(); set.setName(BinaryExecSupport.PROP_EXECUTION); set.setDisplayName(NbBundle.getBundle(CoreElfNode.class). getString("displayNameForExeElfNodeExecSheet")); // NOI18N set.setShortDescription(NbBundle.getBundle(CoreElfNode.class). getString("hintForExeElfNodeExecSheet")); // NOI18N BinaryExecSupport es = (getCookie(BinaryExecSupport.class)); if (es != null) { es.addProperties(set); } // Trick from org/apache/tools/ant/module/nodes/AntProjectNode.java // Get rid of Arguments property and the Execution property; // corefiles can only be debugged. set.remove(ExecutionSupport.PROP_FILE_PARAMS); set.remove(ExecutionSupport.PROP_EXECUTION); sheet.put(set); } return sheet; } }
public Sheet getGeneralSheet(MakeConfiguration conf) { Sheet sheet = new Sheet(); CompilerSet compilerSet = conf.getCompilerSet().getCompilerSet(); AbstractCompiler assemblerCompiler = compilerSet == null ? null : (AbstractCompiler) compilerSet.getTool(PredefinedToolKind.Assembler); Sheet.Set basicSet = getBasicSet(); basicSet.remove("StripSymbols"); // NOI18N sheet.put(basicSet); if (getMaster() != null) { sheet.put(getInputSet()); } Sheet.Set set4 = new Sheet.Set(); set4.setName("Tool"); // NOI18N set4.setDisplayName(getString("ToolTxt1")); set4.setShortDescription(getString("ToolHint1")); if (assemblerCompiler != null) { set4.put(new StringNodeProp(getTool(), assemblerCompiler.getName(), false, "Tool", getString("ToolTxt2"), getString("ToolHint2"))); // NOI18N } sheet.put(set4); String[] texts = new String[]{getString("AdditionalOptionsTxt1"), getString("AdditionalOptionsHint"), getString("AdditionalOptionsTxt2"), getString("AllOptionsTxt")}; Sheet.Set set2 = new Sheet.Set(); set2.setName("CommandLine"); // NOI18N set2.setDisplayName(getString("CommandLineTxt")); set2.setShortDescription(getString("CommandLineHint")); if (assemblerCompiler != null) { set2.put(new OptionsNodeProp(getCommandLineConfiguration(), null, this, assemblerCompiler, null, texts)); } sheet.put(set2); return sheet; }
/** Modifies the sheet set to contain name of property and name of * original object. */ private void modifySheetSet (Sheet.Set ss) { Property p = ss.remove (DataObject.PROP_NAME); if (p != null) { p = new PropertySupport.Name (this); ss.put (p); p = new Name (); ss.put (p); } }
/** Modifies the sheet set to contain name of property and name of * original object. */ private void modifySheetSet (Sheet.Set ss) { Property p = ss.remove (DataObject.PROP_NAME); if (p != null) { p = new PropertySupport.Name (this); ss.put (p); p = new Name (); ss.put (p); } }