protected void updateStore(IJavaProject[] checkedProjects) { if (fCustomButton.getSelection()) { fStore.setDocletName(fDocletTypeText.getText()); fStore.setDocletPath(fDocletText.getText()); fStore.setFromStandard(false); } if (fStandardButton.getSelection()) { fStore.setFromStandard(true); //the destination used in javadoc generation fStore.setDestination(fDestinationText.getText()); } fStore.setSourcepath(getSourcePath(checkedProjects)); fStore.setClasspath(getClassPath(checkedProjects)); fStore.setAccess(fVisibilitySelection); fStore.setSelectedElements(getSourceElements(checkedProjects)); ArrayList commands= new ArrayList(); commands.add(fJavadocCommandText.getText()); // must be first String[] items= fJavadocCommandText.getItems(); for (int i= 0; i < items.length; i++) { String curr= items[i]; if (!commands.contains(curr)) { commands.add(curr); } } fStore.setJavadocCommandHistory((String[]) commands.toArray(new String[commands.size()])); }
protected void updateStore() { IJavaProject[] checkedProjects= getCheckedProjects(); if (fCustomButton.getSelection()) { fStore.setDocletName(fDocletTypeText.getText()); fStore.setDocletPath(fDocletText.getText()); fStore.setFromStandard(false); } if (fStandardButton.getSelection()) { fStore.setFromStandard(true); //the destination used in javadoc generation fStore.setDestination(fDestinationText.getText()); } fStore.setSourcepath(getSourcePath(checkedProjects)); fStore.setClasspath(getClassPath(checkedProjects)); fStore.setAccess(fVisibilitySelection); fStore.setSelectedElements(getSourceElements(checkedProjects)); ArrayList<String> commands= new ArrayList<>(); commands.add(fJavadocCommandText.getText()); // must be first String[] items= fJavadocCommandText.getItems(); for (int i= 0; i < items.length; i++) { String curr= items[i]; if (!commands.contains(curr)) { commands.add(curr); } } fStore.setJavadocCommandHistory(commands.toArray(new String[commands.size()])); }
protected void updateStore() { IJavaProject[] checkedProjects= getCheckedProjects(); if (fCustomButton.getSelection()) { fStore.setDocletName(fDocletTypeText.getText()); fStore.setDocletPath(fDocletText.getText()); fStore.setFromStandard(false); } if (fStandardButton.getSelection()) { fStore.setFromStandard(true); //the destination used in javadoc generation fStore.setDestination(fDestinationText.getText()); } fStore.setSourcepath(getSourcePath(checkedProjects)); fStore.setClasspath(getClassPath(checkedProjects)); fStore.setAccess(fVisibilitySelection); fStore.setSelectedElements(getSourceElements(checkedProjects)); ArrayList<String> commands= new ArrayList<>(); commands.add(fJavadocCommandText.getText()); // must be first String[] items= fJavadocCommandText.getItems(); for (int i= 0; i < items.length; i++) { String curr= items[i]; if (!commands.contains(curr)) { commands.add(curr); } } fStore.setJavadocCommandHistory(commands.toArray(new String[commands.size()])); }