rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
} else if (p.peekNextToken("hair")) { p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading hair curves: %s ... ", name); p.checkNextToken("segments"); api.parameter("segments", p.getNextInt()); p.checkNextToken("width"); api.parameter("width", p.getNextFloat()); p.checkNextToken("points...
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
|| e.getSource() == partialMatchedComplexWordCheckBox || e.getSource() == partialMatchedMatchedWordBox) {
|| e.getSource() == partialMatchedComplexWordCheckBox || e.getSource() == partialMatchedMatchedWordBox || e.getSource() == perfectMatchedIsSystemAddedWordCheckBox) {
public void actionPerformed(ActionEvent e) { if (e.getSource() == perfectMatchedWordJList || e.getSource() == partialMatchedWordJList) { perfectMatchedWordJList.repaint(); partialMatchedWordJList.repaint(); } else if (e.getSource() == addAsSameConceptRadioButton) { sav...
} else if (e.getSource() == perfectMatchedShowOnlyRelatedComplexWordsCheckBox) {
} else if (e.getSource() == partialMatchedShowOnlyRelatedComplexWordsCheckBox) {
public void actionPerformed(ActionEvent e) { if (e.getSource() == perfectMatchedWordJList || e.getSource() == partialMatchedWordJList) { perfectMatchedWordJList.repaint(); partialMatchedWordJList.repaint(); } else if (e.getSource() == addAsSameConceptRadioButton) { sav...
if (perfectMatchedShowOnlyRelatedComplexWordsCheckBox.isSelected()) {
if (partialMatchedShowOnlyRelatedComplexWordsCheckBox.isSelected()) {
public void actionPerformed(ActionEvent e) { if (e.getSource() == perfectMatchedWordJList || e.getSource() == partialMatchedWordJList) { perfectMatchedWordJList.repaint(); partialMatchedWordJList.repaint(); } else if (e.getSource() == addAsSameConceptRadioButton) { sav...
return getPartialMatchedWordCnt() + getPerfectMatchedWordCnt();
return getPartialMatchedWordCnt() + getPerfectMatchedWordCnt() + getSystemAddedPerfectMatchedWordCnt();
public int getMatchedWordCnt() { return getPartialMatchedWordCnt() + getPerfectMatchedWordCnt(); }
partialMatchedAmbiguityCntCheckBox = new JCheckBox(Translator .getString("DisambiguationPanel.DisambiguationCount"), true);
partialMatchedAmbiguityCntCheckBox = new JCheckBox(Translator.getString("DisambiguationPanel.SenseCount"), true);
private JPanel getPartialMatchedWordListPanel() { partialMatchedWordJList = new JList(); partialMatchedWordJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); partialMatchedWordJList.addListSelectionListener(this); JScrollPane partialMatchedWordListScroll = new JScrollPane(parti...
panel.add(partialMatchedFilterPanel, BorderLayout.SOUTH);
panel.add(partialMatchedOptionPanel, BorderLayout.SOUTH);
private JPanel getPartialMatchedWordListPanel() { partialMatchedWordJList = new JList(); partialMatchedWordJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); partialMatchedWordJList.addListSelectionListener(this); JScrollPane partialMatchedWordListScroll = new JScrollPane(parti...
public int getPerfectMatchedWordCnt() {
public int getPerfectMatchedWordCnt(boolean isSystemAdded) {
public int getPerfectMatchedWordCnt() { if (perfectMatchedWordModelSet == null) { return 0; } return perfectMatchedWordModelSet.size(); }
return perfectMatchedWordModelSet.size();
int num = 0; for (InputWordModel iwModel : perfectMatchedWordModelSet) { if (isSystemAdded) { if (iwModel.isSystemAdded()) { num++; } } else { if (!iwModel.isSystemAdded()) { num++; } } } return num;
public int getPerfectMatchedWordCnt() { if (perfectMatchedWordModelSet == null) { return 0; } return perfectMatchedWordModelSet.size(); }
perfectMatchedAmbiguityCntCheckBox = new JCheckBox(Translator .getString("DisambiguationPanel.DisambiguationCount"), true); perfectMatchedAmbiguityCntCheckBox.addActionListener(this); perfectMatchedShowOnlyRelatedComplexWordsCheckBox = new JCheckBox(Translator .getString("DisambiguationPanel.ShowOnlyCorrespondComplexWo...
perfectMatchedAmbiguityCntCheckBox = new JCheckBox(Translator.getString("DisambiguationPanel.SenseCount"), true); perfectMatchedAmbiguityCntCheckBox.addActionListener(this);
private JPanel getPerfectMatchedWordListPanel() { perfectMatchedWordJList = new JList(); perfectMatchedWordJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); perfectMatchedWordJList.addListSelectionListener(this); JScrollPane perfectMatchedWordListScroll = new JScrollPane(perfe...
perfectMatchedFilterPanel.add(perfectMatchedAmbiguityCntCheckBox); perfectMatchedFilterPanel.add(perfectMatchedShowOnlyRelatedComplexWordsCheckBox);
perfectMatchedFilterPanel.add(perfectMatchedAmbiguityCntCheckBox); perfectMatchedFilterPanel.add(perfectMatchedIsSystemAddedWordCheckBox);
private JPanel getPerfectMatchedWordListPanel() { perfectMatchedWordJList = new JList(); perfectMatchedWordJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); perfectMatchedWordJList.addListSelectionListener(this); JScrollPane perfectMatchedWordListScroll = new JScrollPane(perfe...
buf.append(iwModel.getWord() + "\n");
if (!iwModel.isSystemAdded()) { buf.append(iwModel.getWord() + "\n"); }
public void saveInputWordSet(File file) { if (inputWordModelSet == null) { return; } try { OutputStream os = new FileOutputStream(file); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "SJIS")); StringBuffer buf = new StringBuffer(); fo...
if (perfectMatchedShowOnlyRelatedComplexWordsCheckBox.isSelected()) {
if (partialMatchedShowOnlyRelatedComplexWordsCheckBox.isSelected()) {
private void showOnlyRelatedComplexWords() { if (perfectMatchedShowOnlyRelatedComplexWordsCheckBox.isSelected()) { InputWordModel targetIWModel = (InputWordModel) perfectMatchedWordJList.getSelectedValue(); if (targetIWModel == null) { return; } Set searchedPartialMatchedWord...
wordListTabbedPane.repaint();
private void showOnlyRelatedComplexWords() { if (perfectMatchedShowOnlyRelatedComplexWordsCheckBox.isSelected()) { InputWordModel targetIWModel = (InputWordModel) perfectMatchedWordJList.getSelectedValue(); if (targetIWModel == null) { return; } Set searchedPartialMatchedWord...
public boolean build(AggregateTraceable primitives) {
public boolean build(PrimitiveList primitives) {
public boolean build(AggregateTraceable primitives) { this.primitives = primitives; return primitives.numPrimitives() == 1; }
return primitives.numPrimitives() == 1;
return primitives.getNumPrimitives() == 1;
public boolean build(AggregateTraceable primitives) { this.primitives = primitives; return primitives.numPrimitives() == 1; }
bounds.include(primitives.getObjectBound(0, 0), primitives.getObjectBound(0, 2), primitives.getObjectBound(0, 4)); bounds.include(primitives.getObjectBound(0, 1), primitives.getObjectBound(0, 3), primitives.getObjectBound(0, 5));
bounds.include(primitives.getPrimitiveBound(0, 0), primitives.getPrimitiveBound(0, 2), primitives.getPrimitiveBound(0, 4)); bounds.include(primitives.getPrimitiveBound(0, 1), primitives.getPrimitiveBound(0, 3), primitives.getPrimitiveBound(0, 5));
public BoundingBox getBounds() { BoundingBox bounds = new BoundingBox(); bounds.include(primitives.getObjectBound(0, 0), primitives.getObjectBound(0, 2), primitives.getObjectBound(0, 4)); bounds.include(primitives.getObjectBound(0, 1), primitives.getObjectBound(0, 3), primitives.getObjectBound(...
public void intersect(Ray r, Instance parent, IntersectionState istate) { primitives.intersectPrimitive(r, parent, 0, istate);
public void intersect(Ray r, IntersectionState istate) { primitives.intersectPrimitive(r, 0, istate);
public void intersect(Ray r, Instance parent, IntersectionState istate) { primitives.intersectPrimitive(r, parent, 0, istate); }
iwModel.setIsSystemAdded(true);
public void initDataWithDB(Set<String> iwSet, DODDLEProject p) { project = p; wordSet = iwSet; inputWordModelSet = new TreeSet<InputWordModel>(); undefinedWordSet = new TreeSet<String>(); wordConceptSetMap = new HashMap<String, Set<Concept>>(); TransactionRunner runner = ne...
iwModel.setIsSystemAdded(true);
public void doWork() throws Exception { DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(wordSet.size()); Set<String> matchedWordSet = new HashSet<String>(); for (String word : wordSet) { InputW...
protected void setZipEntry( ZipEntry entry )
protected void setZipEntry( final ZipEntry entry )
protected void setZipEntry( ZipEntry entry ) { if ( entry == null || this.entry != null ) { return; } if ( entry.isDirectory() ) type = FileType.FOLDER; else type = FileType.FILE; this.entry = entry; }
if ( entry == null || this.entry != null )
if ( this.entry != null )
protected void setZipEntry( ZipEntry entry ) { if ( entry == null || this.entry != null ) { return; } if ( entry.isDirectory() ) type = FileType.FOLDER; else type = FileType.FILE; this.entry = entry; }
if ( entry.isDirectory() )
if ( entry == null || entry.isDirectory() ) {
protected void setZipEntry( ZipEntry entry ) { if ( entry == null || this.entry != null ) { return; } if ( entry.isDirectory() ) type = FileType.FOLDER; else type = FileType.FILE; this.entry = entry; }
}
protected void setZipEntry( ZipEntry entry ) { if ( entry == null || this.entry != null ) { return; } if ( entry.isDirectory() ) type = FileType.FOLDER; else type = FileType.FILE; this.entry = entry; }
final String message = REZ.getString( "get-type.error", getName() ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider.smb/get-type.error", getName() );
protected FileType doGetType() throws Exception { // Need to check whether parent exists or not, because SmbFile.exists() // throws an exception if it does not // TODO - patch jCIFS? FileObject parent = getParent(); if ( parent != null && !parent.exists() ) { ...
fileSystems.remove(fs.getCacheKey());
if (fs.getCacheKey() != null) { fileSystems.remove(fs.getCacheKey()); }
public void closeFileSystem(final FileSystem filesystem) { AbstractFileSystem fs = (AbstractFileSystem) filesystem; synchronized (fileSystems) { fileSystems.remove(fs.getCacheKey()); } removeComponent(fs); fs.close(); }
protected AbstractTestSuite(final ProviderTestConfig providerConfig, final String prefix, final boolean nested) throws Exception
public AbstractTestSuite(final ProviderTestConfig providerConfig) throws Exception
protected AbstractTestSuite(final ProviderTestConfig providerConfig, final String prefix, final boolean nested) throws Exception { super(new TestSuite()); testSuite = (TestSuite) fTest; this.providerConfig = providerConfig;...
super(new TestSuite()); testSuite = (TestSuite) fTest; this.providerConfig = providerConfig; this.prefix = prefix; addBaseTests(); if (!nested) { }
this(providerConfig, "", false);
protected AbstractTestSuite(final ProviderTestConfig providerConfig, final String prefix, final boolean nested) throws Exception { super(new TestSuite()); testSuite = (TestSuite) fTest; this.providerConfig = providerConfig;...
public void setContextClassloader(String options) {
public void setContextClassloader(String classLoaderManagementOption) {
public void setContextClassloader(String options) { // transform "-" into "_" (for service-provider) if (options == null) throw new IllegalArgumentException("non-null argument required"); this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(options.replace("-", "_")).intValue(); }
if (options == null)
if (classLoaderManagementOption == null)
public void setContextClassloader(String options) { // transform "-" into "_" (for service-provider) if (options == null) throw new IllegalArgumentException("non-null argument required"); this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(options.replace("-", "_")).intValue(); }
this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(options.replace("-", "_")).intValue();
this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(classLoaderManagementOption.replace("-", "_")).intValue();
public void setContextClassloader(String options) { // transform "-" into "_" (for service-provider) if (options == null) throw new IllegalArgumentException("non-null argument required"); this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(options.replace("-", "_")).intValue(); }
throw new IllegalStateException("Invalid syntax for filter: " + getFilterStringForServiceLookup(), e);
throw (IllegalStateException)new IllegalStateException("Invalid syntax for filter: " + getFilterStringForServiceLookup()).initCause(e);
protected Listener(Object unavailableService) { this.unavailableService = unavailableService; try { filter = FrameworkUtil.createFilter(getFilterStringForServiceLookup()); } catch (InvalidSyntaxException e) { throw new IllegalStateException("Invalid syntax for filter: " + getFilterStringForServiceLookup...
throw new IllegalArgumentException("Filter string '" + getFilter()
throw (IllegalArgumentException)new IllegalArgumentException("Filter string '" + getFilter()
public void afterPropertiesSet() throws Exception { if (this.bundleContext == null) { throw new IllegalArgumentException("Required bundleContext property was not set"); } if (getInterface() == null) { throw new IllegalArgumentException("Required serviceType property was not set"); } if (getFilter() != null) {...
+ ex.getMessage(), ex);
+ ex.getMessage()).initCause(ex);
public void afterPropertiesSet() throws Exception { if (this.bundleContext == null) { throw new IllegalArgumentException("Required bundleContext property was not set"); } if (getInterface() == null) { throw new IllegalArgumentException("Required serviceType property was not set"); } if (getFilter() != null) {...
sb.append(getInterface().getCanonicalName());
sb.append(getInterface().getName());
private String getFilterStringForServiceLookup() { StringBuffer sb = new StringBuffer(); boolean andFilterWithInterfaceName = ((getFilter() != null) || (getBeanName() != null)); if (andFilterWithInterfaceName) { sb.append("(&"); } if (getFilter() != null) { sb.append(getFilter()); } sb.append("("); sb.appe...
this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(classLoaderManagementOption.replace("-", "_"))
this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(classLoaderManagementOption.replace('-', '_'))
public void setContextClassloader(String classLoaderManagementOption) { // transform "-" into "_" (for service-provider) if (classLoaderManagementOption == null) { throw new IllegalArgumentException("non-null argument required"); } this.contextClassloader = REFERENCE_CL_OPTIONS.asNumber(classLoaderManagementOpti...
UserAuthenticatorUtils.getData(authData, UserAuthenticationData.USERNAME, UserAuthenticatorUtils.toChar(rootName.getPassword())),
UserAuthenticatorUtils.getData(authData, UserAuthenticationData.PASSWORD, UserAuthenticatorUtils.toChar(rootName.getPassword())),
protected FileSystem doCreateFileSystem(final FileName name, final FileSystemOptions fileSystemOptions) throws FileSystemException { // Create the file system final GenericFileName rootName = (GenericFileName) name; UserAuthenticationData authData = null; HttpClient httpClient; try { a...
trimmedConceptNum = treeMaker.getTrimmedConceptNum(); DODDLE.getLogger().log(Level.INFO, "剪定クラス数: " + trimmedConceptNum);
public TreeModel getTreeModel(Set<Concept> conceptSet) { Set pathSet = treeMaker.getPathList(conceptSet); TreeModel model = treeMaker.getTrimmedTreeModel(pathSet, project); controlPanel.setDefaultValue(); conceptTreePanel.checkAllMultipleInheritanceNode(model); return model; }
acceltype = pl.getString("acel", acceltype);
acceltype = pl.getString("accel", acceltype);
public boolean update(ParameterList pl, SunflowAPI api) { acceltype = pl.getString("acel", acceltype); // clear up old tesselation if it exists if (tesselatable != null) primitives = null; // clear acceleration structure so it will be rebuilt accel = null; builtA...
synchronized (this)
synchronized (fs)
private void attach() throws FileSystemException { synchronized (this) { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; ...
synchronized (this)
synchronized (fs)
public void createFile() throws FileSystemException { synchronized (this) { try { getOutputStream().close(); endOutput(); } catch (final RuntimeException re) { throw re; } catch...
synchronized (this)
synchronized (fs)
public void createFolder() throws FileSystemException { synchronized (this) { if (getType() == FileType.FOLDER) { // Already exists as correct type return; } if (getType() != FileType.IMAGINARY) { th...
synchronized (this)
synchronized (fs)
private boolean deleteSelf() throws FileSystemException { synchronized (this) { /* Its possible to delete a read-only file if you have write-execute access to the directory if (!isWriteable()) { throw new FileSystemException("vfs.provider/delete-read-...
synchronized (this)
synchronized (fs)
private void detach() throws Exception { synchronized (this) { if (attached) { try { doDetach(); } finally { attached = false; setFileType(null);...
synchronized (this)
synchronized (fs)
public FileObject[] getChildren() throws FileSystemException { synchronized (this) { attach(); if (!type.hasChildren()) { throw new FileSystemException("vfs.provider/list-children-not-folder.error", name); } // Use cached info, i...
synchronized (this)
synchronized (fs)
public FileObject getParent() throws FileSystemException { if (this == fs.getRoot()) { if (fs.getParentLayer() != null) { // Return the parent of the parent layer return fs.getParentLayer().getParent(); } else { ...
synchronized (this)
synchronized (fs)
protected void handleCreate(final FileType newType) throws Exception { synchronized (this) { if (attached) { // Fix up state injectType(newType); removeChildrenCache(); // children = EMPTY_FILE_ARRAY; /...
synchronized (this)
synchronized (fs)
protected void handleDelete() throws Exception { synchronized (this) { if (attached) { // Fix up state injectType(FileType.IMAGINARY); removeChildrenCache(); // children = null; // Notify subclass ...
localMavenArtifact("org.springframework.osgi.samples", "simple-service-bundle",
localMavenArtifact("org.springframework.osgi", "org.springframework.osgi.test.simple.service",
protected String[] getBundleLocations() { return new String[]{ localMavenArtifact("org.springframework.osgi", "aopalliance.osgi", "1.0-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "commons-collections.osgi", "3.2-SNAPSHOT"), localMavenArtifact("org.s...
Bundle simpleServiceBundle = findBundleBySymbolicName("org.springframework.osgi.samples.simpleservice");
Bundle simpleServiceBundle = findBundleBySymbolicName("org.springframework.osgi.test.simpleservice");
public void testServiceListener() throws Exception { assertEquals("Expected initial binding of service", 1, MyListener.BOUND_COUNT); assertEquals("Unexpected initial unbinding of service", 0, MyListener.UNBOUND_COUNT); Bundle simpleServiceBundle = findBundleBySymbolicName("org.springframework.o...
snittWindow = new SnittWindow(frame, personNameTracker, dataManager, searchWindow);
snittWindow = new SnittWindow(frame, personNameTracker, dataManager);
public void actionPerformed(ActionEvent e) { if(e.getSource() == saveToHTML) { if(fileNameHTM == null) { saveAsHTML(); } else { try { boolean doit = true; if(warningHTM) { int val = JOptionPane.showConfirmDialog(frame, "Vill du att webbsidan sparas till filen...
AboutWindow aboutWindow = new AboutWindow(frame);
new AboutWindow(frame);
public void actionPerformed(ActionEvent e) { if(e.getSource() == saveToHTML) { if(fileNameHTM == null) { saveAsHTML(); } else { try { boolean doit = true; if(warningHTM) { int val = JOptionPane.showConfirmDialog(frame, "Vill du att webbsidan sparas till filen...
JPanel buttonpanel = new JPanel();
public SearchWindow() { name = new NameList(); try { name.readNames(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Inlsningen av namnlistan misslyckades", "Varning", JOptionPane.ERROR_MESSAGE); name.sortedNames(); } try { frame = new JFrame("BangolfResultat"); } catch (Exception e) { J...
resultInput = new ResultInputWindow(frame, searchPanel, statusPanel, resBar, personTracker, personNameTracker);
resultInput = new ResultInputWindow(frame, resBar, personTracker, personNameTracker);
public SearchWindow() { name = new NameList(); try { name.readNames(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Inlsningen av namnlistan misslyckades", "Varning", JOptionPane.ERROR_MESSAGE); name.sortedNames(); } try { frame = new JFrame("BangolfResultat"); } catch (Exception e) { J...
searchWindow = this;
public SearchWindow() { name = new NameList(); try { name.readNames(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Inlsningen av namnlistan misslyckades", "Varning", JOptionPane.ERROR_MESSAGE); name.sortedNames(); } try { frame = new JFrame("BangolfResultat"); } catch (Exception e) { J...
SearchWindow window = new SearchWindow();
new SearchWindow();
public static void main(String[] args) { System.setProperty("sun.awt.exception.handler", "gui.SearchWindow$ErrorHandler"); SearchWindow window = new SearchWindow(); }
} else if (!outputStyle[i][0].equals("Bold+")) {
} else if (outputStyle[i][0] == null || !outputStyle[i][0].equals("Bold+")) {
public void outputToHTML(String fileName, ResultList result, String header, int align) throws IOException { ResultList res = result; boolean[] extras = res.getExtras(); String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if (align == AlignmentWindow.CENTER) { alignment = ...
DataManager dataManager, SearchWindow searchWindow) {
DataManager dataManager) {
public SnittWindow(JFrame owner, HashMap personNameTracker, DataManager dataManager, SearchWindow searchWindow) { super("Snittlistshanteraren"); frame = this; this.personNameTracker = personNameTracker; this.dataManager = dataManager; this.searchWindow = searchWindow; setDefaultCloseOperation(JFrame.DO_...
this.searchWindow = searchWindow;
public SnittWindow(JFrame owner, HashMap personNameTracker, DataManager dataManager, SearchWindow searchWindow) { super("Snittlistshanteraren"); frame = this; this.personNameTracker = personNameTracker; this.dataManager = dataManager; this.searchWindow = searchWindow; setDefaultCloseOperation(JFrame.DO_...
String oldIdentity = oldName + ", " + oldClub;
public void updateNameAndClub(String oldName, String oldClub, String newName, String newClub, Integer personID) { String oldIdentity = oldName + ", " + oldClub; String newIdentity = newName + ", " + newClub; RESULTLIST.changeNameAndClub(personID, newName, newClub); BOARD.update(true); if(licenseMap.containsKey(pe...
public ResultInputWindow(JFrame mainFrame, JPanel searchPanel, JPanel statusPanel, JMenuBar resBar, HashMap personTracker, HashMap personNameTracker) {
public ResultInputWindow(JFrame mainFrame, JMenuBar resBar, HashMap personTracker, HashMap personNameTracker) {
public ResultInputWindow(JFrame mainFrame, JPanel searchPanel, JPanel statusPanel, JMenuBar resBar, HashMap personTracker, HashMap personNameTracker) { frame = mainFrame; this.searchPanel = searchPanel; this.statusPanel = statusPanel; bar = resBar; this.personTracker = personTracker; this.personNameTracker = per...
this.searchPanel = searchPanel; this.statusPanel = statusPanel;
public ResultInputWindow(JFrame mainFrame, JPanel searchPanel, JPanel statusPanel, JMenuBar resBar, HashMap personTracker, HashMap personNameTracker) { frame = mainFrame; this.searchPanel = searchPanel; this.statusPanel = statusPanel; bar = resBar; this.personTracker = personTracker; this.personNameTracker = per...
this.nbrRounds = result.getNbrRounds();
public ScoreBoardWindow(ResultList result) { this.cols = result.getNbrCols(); this.nbrRounds = result.getNbrRounds(); board = new JPanel(); label = new JLabel[65][cols]; headerLabel = new JLabel(); this.result = result; this.align = getAlignment(); gridbag = new GridBagLayout(); c = new GridBagConstraints()...
return new VelocityConnection(url, outEnc);
return new VelocityConnection(url, outEnc, connectionParameters);
public Connection connect(ConnectionParameters connectionParameters) { String urlStr = connectionParameters.getUrl(); String outEnc = connectionParameters.getProperty(OUTPUT_ENCODING); URL url; try { url = connectionParameters.getContext().resolve(urlStr); return ne...
public VelocityConnection(URL url, String outputEncoding) { super(Driver.DIALECT);
public VelocityConnection(URL url, String outputEncoding, ConnectionParameters parameters) { super(Driver.DIALECT, parameters);
public VelocityConnection(URL url, String outputEncoding) { super(Driver.DIALECT); this.url = url; engine = new VelocityEngine(); engine.setProperty(VelocityEngine.RUNTIME_LOG_LOGSYSTEM, Driver.LOG_SYSTEM); engine.setProperty("velocimacro.library", "");//unnecessary file in our ca...
public AbstractBundleXmlApplicationContext(BundleContext context, String[] configLocations, ClassLoader classLoader, NamespacePlugins namespacePlugins) { this(null, context, configLocations, classLoader, namespacePlugins);
public AbstractBundleXmlApplicationContext(BundleContext context, String[] configLocations) { this(context, configLocations, null, null);
public AbstractBundleXmlApplicationContext(BundleContext context, String[] configLocations, ClassLoader classLoader, NamespacePlugins namespacePlugins) { this(null, context, configLocations, classLoader, namespacePlugins); }
if (userName != null && userName.length() != 0) { UriParser.appendEncoded(buffer, userName, USERNAME_RESERVED); if (password != null && password.length() != 0) { buffer.append(':'); UriParser.appendEncoded(buffer, password, PASSWORD_RESERVED); } buffer.append('@'); }
appendCredentials(buffer);
protected void appendRootUri(final StringBuffer buffer) { buffer.append(getScheme()); buffer.append("://"); if (userName != null && userName.length() != 0) { UriParser.appendEncoded(buffer, userName, USERNAME_RESERVED); if (password != null && password.length() !...
parent = createZipFileObject( parentName, null, null );
parent = createZipFileObject( parentName, null, zipFile );
public ZipFileSystem( final DefaultFileName rootName, final FileObject parentLayer ) throws FileSystemException { super( rootName, parentLayer ); // Make a local copy of the file final File file = parentLayer.replicateFile( FileConstants.SELECT_SELF ); ...
if (concept == null) { return "該当なし"; }
if (concept == null) { return Translator.getString("DisambiguationPanel.NotAvailable"); }
public String toString() { if (concept == null) { return "該当なし"; } return "[" + evalValue + "]" + "[" + concept.getIdentity() + "]" + "[" + concept.getWord() + "]"; }
super(Driver.DIALECT);
super(Driver.DIALECT, parameters);
public LdapConnection(ConnectionParameters parameters) { super(Driver.DIALECT); Hashtable<String, String> env = new Hashtable<String, String>(); //Put default settings env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); //Put connection settings if...
LOG.fine("Running a query for search filter " + filter);
LOG.fine("Running a query for search filter " + sFilter);
public void execute(final String filter) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Running a query for search filter " + filter); } try { iterate(query(connection, filter)); } catch (NamingException e) { throw new LdapProviderException("Failed to exec...
iterate(query(connection, filter));
iterate(query(connection, sFilter));
public void execute(final String filter) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Running a query for search filter " + filter); } try { iterate(query(connection, filter)); } catch (NamingException e) { throw new LdapProviderException("Failed to exec...
e2.setErrorStatement(filter);
e2.setErrorStatement(sFilter);
public void execute(final String filter) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Running a query for search filter " + filter); } try { iterate(query(connection, filter)); } catch (NamingException e) { throw new LdapProviderException("Failed to exec...
JPanel constructTreeOptionPanel = new JPanel(); constructTreeOptionPanel.setLayout(new GridLayout(1, 2));
constructTreeOptionPanel = new JPanel(); constructTreeOptionPanel.setLayout(new BorderLayout());
public DisambiguationPanel(ConstructClassPanel tp, ConstructPropertyPanel pp, DODDLEProject p) { project = p; constructClassPanel = tp; constructPropertyPanel = pp; inputModule = new InputModule(project); wordCorrespondConceptSetMap = new HashMap<String, Set<Concept>>(); co...
constructTreeOptionPanel.add(addAsSameConceptRadioButton); constructTreeOptionPanel.add(addAsSubConceptRadioButton);
partialMatchedConstructTreeOptionPanel = new JPanel(); partialMatchedConstructTreeOptionPanel.setLayout(new GridLayout(1, 2)); partialMatchedConstructTreeOptionPanel.add(addAsSameConceptRadioButton); partialMatchedConstructTreeOptionPanel.add(addAsSubConceptRadioButton); perfectMatchedConstructTreeOptionPanel = new JP...
public DisambiguationPanel(ConstructClassPanel tp, ConstructPropertyPanel pp, DODDLEProject p) { project = p; constructClassPanel = tp; constructPropertyPanel = pp; inputModule = new InputModule(project); wordCorrespondConceptSetMap = new HashMap<String, Set<Concept>>(); co...
} else if (e.getSource() == replaceSubClassesCheckBox) { saveReplaceSubConceptsOption();
public void actionPerformed(ActionEvent e) { if (e.getSource() == perfectMatchedWordJList || e.getSource() == partialMatchedWordJList) { perfectMatchedWordJList.repaint(); partialMatchedWordJList.repaint(); } else if (e.getSource() == addAsSameConceptRadioButton) { sav...
addAsSameConceptRadioButton.setEnabled(true); addAsSubConceptRadioButton.setEnabled(true);
switchConstructTreeOptionPanel(partialMatchedConstructTreeOptionPanel);
private void selectAmbiguousConcept(JList wordJList) { if (!wordJList.isSelectionEmpty()) { String orgWord = ((InputWordModel) wordJList.getSelectedValue()).getWord(); String selectedWord = ((InputWordModel) wordJList.getSelectedValue()).getMatchedWord(); Set<Concept> concept...
addAsSameConceptRadioButton.setEnabled(false); addAsSubConceptRadioButton.setEnabled(false);
switchConstructTreeOptionPanel(perfectMatchedConstructTreeOptionPanel);
private void selectAmbiguousConcept(JList wordJList) { if (!wordJList.isSelectionEmpty()) { String orgWord = ((InputWordModel) wordJList.getSelectedValue()).getWord(); String selectedWord = ((InputWordModel) wordJList.getSelectedValue()).getMatchedWord(); Set<Concept> concept...
m_manager = new DefaultFileSystemManager(); m_manager.addProvider( "file", new DefaultLocalFileSystemProvider() ); m_manager.setReplicator( new PrivilegedFileReplicator( new DefaultFileReplicator() ) );
manager = new DefaultFileSystemManager(); manager.addProvider( "file", new DefaultLocalFileSystemProvider() ); manager.setReplicator( new PrivilegedFileReplicator( new DefaultFileReplicator() ) );
protected void setUp() throws Exception { // Create the file system manager m_manager = new DefaultFileSystemManager(); m_manager.addProvider( "file", new DefaultLocalFileSystemProvider() ); m_manager.setReplicator( new PrivilegedFileReplicator( new DefaultFileReplicator() ) ); ...
m_baseFolder = getBaseFolder();
baseFolder = getBaseFolder();
protected void setUp() throws Exception { // Create the file system manager m_manager = new DefaultFileSystemManager(); m_manager.addProvider( "file", new DefaultLocalFileSystemProvider() ); m_manager.setReplicator( new PrivilegedFileReplicator( new DefaultFileReplicator() ) ); ...
assertTrue( !m_baseFolder.getName().getPath().equals( "/" ) );
assertTrue( !baseFolder.getName().getPath().equals( "/" ) );
protected void setUp() throws Exception { // Create the file system manager m_manager = new DefaultFileSystemManager(); m_manager.addProvider( "file", new DefaultLocalFileSystemProvider() ); m_manager.setReplicator( new PrivilegedFileReplicator( new DefaultFileReplicator() ) ); ...
m_charContent = "This is a test file." + eol + "With 2 lines in it." + eol;
charContent = "This is a test file." + eol + "With 2 lines in it." + eol;
protected void setUp() throws Exception { // Create the file system manager m_manager = new DefaultFileSystemManager(); m_manager.addProvider( "file", new DefaultLocalFileSystemProvider() ); m_manager.setReplicator( new PrivilegedFileReplicator( new DefaultFileReplicator() ) ); ...
m_manager.close();
manager.close();
protected void tearDown() throws Exception { m_manager.close(); }
final FileName baseName = m_baseFolder.getName();
final FileName baseName = baseFolder.getName();
public void testAbsoluteNameConvert() throws Exception { final FileName baseName = m_baseFolder.getName(); String path = "/test1/test2"; FileName name = baseName.resolveName( path ); assertEquals( path, name.getPath() ); // Try child and descendent names testRelName( nam...
FileName name = m_baseFolder.getName();
FileName name = baseFolder.getName();
public void testAbsoluteNames() throws Exception { // Test against the base folder FileName name = m_baseFolder.getName(); checkAbsoluteNames( name ); // Test against the root name = m_baseFolder.getFileSystem().getRoot().getName(); checkAbsoluteNames( name ); // ...
name = m_baseFolder.getFileSystem().getRoot().getName();
name = baseFolder.getFileSystem().getRoot().getName();
public void testAbsoluteNames() throws Exception { // Test against the base folder FileName name = m_baseFolder.getName(); checkAbsoluteNames( name ); // Test against the root name = m_baseFolder.getFileSystem().getRoot().getName(); checkAbsoluteNames( name ); // ...
final String uri = m_baseFolder.getName().getURI(); final FileObject file = m_manager.resolveFile( uri );
final String uri = baseFolder.getName().getURI(); final FileObject file = manager.resolveFile( uri );
public void testAbsoluteURI() throws Exception { // Try fetching base folder again by its URI final String uri = m_baseFolder.getName().getURI(); final FileObject file = m_manager.resolveFile( uri ); assertSame( "file object", m_baseFolder, file ); }
assertSame( "file object", m_baseFolder, file );
assertSame( "file object", baseFolder, file );
public void testAbsoluteURI() throws Exception { // Try fetching base folder again by its URI final String uri = m_baseFolder.getName().getURI(); final FileObject file = m_manager.resolveFile( uri ); assertSame( "file object", m_baseFolder, file ); }
final FileName baseName = m_baseFolder.getName();
final FileName baseName = baseFolder.getName();
public void testChildName() throws Exception { final FileName baseName = m_baseFolder.getName(); final String basePath = baseName.getPath(); final FileName name = baseName.resolveName( "some-child", NameScope.CHILD ); // Test path is absolute assertTrue( "is absolute", basePath...
FileObject file = m_baseFolder.resolveFile( "file1.txt" );
FileObject file = baseFolder.resolveFile( "file1.txt" );
public void testChildren() throws FileSystemException { // Check for file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); try { file.getChildren(); fail(); } catch( FileSystemException e...
file = m_baseFolder.resolveFile( "unknown-file" );
file = baseFolder.resolveFile( "unknown-file" );
public void testChildren() throws FileSystemException { // Check for file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); try { file.getChildren(); fail(); } catch( FileSystemException e...
FileObject file = m_baseFolder.resolveFile( "file1.txt" );
FileObject file = baseFolder.resolveFile( "file1.txt" );
public void testContent() throws Exception { // Test non-empty file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); FileContent content = file.getContent(); assertSameContent( m_charContent, content ); // Test empty file file = m_baseFolder.resolveFile( "empty...
assertSameContent( m_charContent, content );
assertSameContent( charContent, content );
public void testContent() throws Exception { // Test non-empty file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); FileContent content = file.getContent(); assertSameContent( m_charContent, content ); // Test empty file file = m_baseFolder.resolveFile( "empty...
file = m_baseFolder.resolveFile( "empty.txt" );
file = baseFolder.resolveFile( "empty.txt" );
public void testContent() throws Exception { // Test non-empty file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); FileContent content = file.getContent(); assertSameContent( m_charContent, content ); // Test empty file file = m_baseFolder.resolveFile( "empty...
final FileName baseName = m_baseFolder.getName();
final FileName baseName = baseFolder.getName();
public void testDescendentName() throws Exception { final FileName baseName = m_baseFolder.getName(); // Test direct child String path = baseName.getPath() + "/some-child"; assertSameName( path, baseName, "some-child", NameScope.DESCENDENT ); // Test compound name ...
FileObject file = m_baseFolder.resolveFile( "file1.txt" );
FileObject file = baseFolder.resolveFile( "file1.txt" );
public void testExists() throws Exception { // Test a file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertTrue( "file exists", file.exists() ); // Test a folder file = m_baseFolder.resolveFile( "dir1" ); assertTrue( "folder exists", file.exists() ); ...
file = m_baseFolder.resolveFile( "dir1" );
file = baseFolder.resolveFile( "dir1" );
public void testExists() throws Exception { // Test a file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertTrue( "file exists", file.exists() ); // Test a folder file = m_baseFolder.resolveFile( "dir1" ); assertTrue( "folder exists", file.exists() ); ...
file = m_baseFolder.resolveFile( "unknown-child" );
file = baseFolder.resolveFile( "unknown-child" );
public void testExists() throws Exception { // Test a file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertTrue( "file exists", file.exists() ); // Test a folder file = m_baseFolder.resolveFile( "dir1" ); assertTrue( "folder exists", file.exists() ); ...
file = m_baseFolder.resolveFile( "unknown-folder/unknown-child" );
file = baseFolder.resolveFile( "unknown-folder/unknown-child" );
public void testExists() throws Exception { // Test a file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertTrue( "file exists", file.exists() ); // Test a folder file = m_baseFolder.resolveFile( "dir1" ); assertTrue( "folder exists", file.exists() ); ...
final FileName baseName = m_baseFolder.getName();
final FileName baseName = baseFolder.getName();
public void testNameResolution() throws Exception { final FileName baseName = m_baseFolder.getName(); final String parentPath = baseName.getParent().getPath(); final String path = baseName.getPath(); final String childPath = path + "/some-child"; // Test empty relative path ...